Hello,
I created a data portal for use via remoting and a client app that accesses it. The data portal works fine on my dev machine and if I copy the files into a virtual folder on our dev server, reconfigure my client config files and it works fine there as well.
When I copy the same data portal to our live server though I experience problems.... the address to the dataportal with "/dataporta.rem?wsdl" returns the wsdl fine, so it appears to me that the site is correctly set up in iis, but when my client tries to access the server via the remoting portal I get this error....
"Server encountered an internal error. For more information, turn on customErrors in the server's .config file."
I tried setting the customErrors in my data portal site to "On" but I just got the same message.
The stack trace is:
Server stack trace:
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at CSLA.Server.DataPortal.Fetch(Object Criteria, DataPortalContext context)
at CSLA.DataPortal.Fetch(Object Criteria)
at Hexagon.BusinessObjects.Context.User.Login.Authenticate(CredentialBase credentials)
at Hexagon.BusinessObjects.Context.User.UserPrincipal..ctor(CredentialBase credentials)
at Hexagon.BusinessObjects.Context.User.UserPrincipal.Login(CredentialBase credentials)
at Hexagon.Shell.HexagonShellFolder.Login(String userName, String passWord) in c:\hexagon\hexagon.shell\hexagon.shellfolder.cs:line 554; SOURCE: mscorlib
Do you have both the .Net framework 1.1 and 2.0 installed on your live server? Is yes, set your virtual directory to use 2.0 - it uses 1.1 by default.
This may not solve you issue but it's worth trying it.
Thanks for the response Guy....
This is one of my barriers, I don't have access to the live server.
It is actually a v1.1 dataportal, but I will double check the version of the iis is configured accordingly. Would the wsdl file be generated even if the incorrect version of .net was configured in iis?
Cheers,
Phil
Copyright (c) Marimer LLC