We are using Csla 3.8 to stand up a web application with an Application server (with data portal hosted in it) and a web server (with the web.config file pointed to the data portal in the application server).
I seem to have done everything including the following:
1. Copied all the relevant dlls into a bin folder
2. Using IIS to host the data portal
3. Created a web.config file with the following Data Portal settings:
<system.runtime.remoting>
<application>
<service>
<wellknown mode="SingleCall" objectUri="RemotingPortal.rem" type="Csla.Server.Hosts.RemotingPortal, Csla"/>
</service>
<channels>
<channel ref="http">
<serverProviders>
<provider ref="wsdl"/>
<formatter ref="soap" typeFilterLevel="Full"/>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
When I try to access the wsdl by going to the URL
http://localhost/ConnectorService/RemotingPortal.rem?wsdl
I get the following error page:
System.NullReferenceException: Object reference not set to an instance of an object. at System.Runtime.Remoting.MetadataServices.WsdlGenerator.RealSchemaType.PrintMessageWsdl(TextWriter textWriter, StringBuilder sb, String indent, ArrayList refNames) at System.Runtime.Remoting.MetadataServices.WsdlGenerator.PrintWsdl() at System.Runtime.Remoting.MetadataServices.WsdlGenerator.Generate() at System.Runtime.Remoting.MetadataServices.MetaData.ConvertTypesToSchemaToStream(ServiceType[] serviceTypes, SdlType sdlType, Stream outputStream) at System.Runtime.Remoting.MetadataServices.SdlChannelSink.GenerateSdl(SdlType sdlType, IServerResponseChannelSinkStack sinkStack, ITransportHeaders requestHeaders, ITransportHeaders responseHeaders, Stream& outputStream) at System.Runtime.Remoting.MetadataServices.SdlChannelSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream) at System.Runtime.Remoting.Channels.Http.HttpHandlerTransportSink.HandleRequest(HttpContext context) at System.Runtime.Remoting.Channels.Http.HttpRemotingHandler.InternalProcessRequest(HttpContext context)
I am at my wits end on how to resolve this issue. Can someone please chime in and let me know if you see something that I am not doing right?
Thanks,
Sameer
Copyright (c) Marimer LLC