Remoting

Remoting

Old forum URL: forums.lhotka.net/forums/t/5805.aspx


Walt posted on Friday, November 14, 2008

I am using Csla 2.1.4 with a business library named Lynx.Library.  When I try to run with remoting I get the following error:

Unable to find assembly 'Lynx.Library, Version=5.5.0.1, Culture=neutral, PublicKeyToken=36b33b33f2b6545e'

Lynx.Library.dll and Csla.dll are in the Bin directory of the web site.  If I open a browser with http://localhost/LynxRemotePortal/RemotingPortal.rem?wsdl I get the correct xml response returned.

Development environment is VS2008 (VB) and the solution has 3 projects (web app for remoting, business library, and windows application.  Rebuilding the solution does update the remoting web app.

The application runs fine without remoting.  I have searched the forums, but can't find anyone else with this problem.  Any help is appreciated.

Walt

Misled replied on Sunday, November 16, 2008

In your web.config, do you have something that looks like this:

<system.runtime.remoting>

<application>

<service>

<wellknown mode="SingleCall" objectUri="DataPortal.rem" type="CSLA.Server.DataPortal,CSLA.Server.DataPortal"/>

</service>

<channels>

<channel ref="http">

<serverProviders>

<provider ref="wsdl"/>

<!-- TODO: comment the following two lines for .NET 1.0 -->

<formatter ref="soap" typeFilterLevel="Full"/>

<formatter ref="binary" typeFilterLevel="Full"/>

</serverProviders>

</channel>

</channels>

</application>

</system.runtime.remoting>

In your app.config you should have something like this under <AppSettings>:

<add key="CslaDataPortalProxy" value="Csla.DataPortalClient.RemotingProxy, Csla"/>

<add key="CslaDataPortalUrl" value="http://www.YourWebSite.com/RemotingPortal.rem"/>

Walt replied on Monday, November 17, 2008

Thanks for your response.  I do have the <system.runtime.remoting> section in the web config file, and the app config file points to the CslaDataPortalUrl just as described in Rocky's book.  The Csla.dll and object library dll in the web site are both the same as my application.

The strange thing is if I type in the http url for the web site I get the correct xml response.  I believe this means it is getting the Lynx.Library.dll library or I wouldn't get the browser to respond correctly with the wsdl parameter.

I am running development on a Vista Home Premium 64 bit machine.  I wonder if IIS is not configured properly.

Thanks
Walt

Copyright (c) Marimer LLC