|
Hi, I’ve built an ASP.NET application using Visual Studio 2003, but
am having trouble deploying it to a Linux box on an Apache Web Server with
mod_mono and Mono 1.1.13.2. It all works fine on my development box using IIS 6. The ASP.NET application connects to a remote object that supplies
business logic and data access services. This object has been installed
on the Linux box and tested using a S.W.F remote client, which calls it
successfully and receives the expected data back. To deploy the ASP.NET application, I have copied all the files and
folders from the application directory on my development (Win2003 Server) box
to the Linux box (including the bin directory). On the Linux box, I then
modified the page directive at the top of each *.aspx page to change
CodeBehind=”…” to Src="" I then
restarted Apache. The first page loads fine, but on attempting to load the second page,
which tries to instantiate the remote object proxy, I get the following error: Compilation
Error Description:
Error compiling a resource required to
service this request. Review your source file and modify it to fix this error. Error message: /usr/lib/xsp/test/MSc/Name.aspx.cs(14,7)
: error CS0246: The type or namespace name `MscBusinessLogic' could not be
found. Are you missing a using directive or an assembly reference?
/usr/lib/xsp/test/MSc/Name.aspx.cs(14,1) : error CS0246: The type or namespace
name `MscBusinessLogic' could not be found. Are you missing a using directive
or an assembly reference? File name: /usr/lib/xsp/test/MSc/Name.aspx.cs
… This suggests to me that perhaps the remoting configuration code has
not run successfully, although I could be wrong. The code that carries
out the remoting configuration is in the Application_Start trigger, as follows: protected void
Application_Start(Object sender, EventArgs e) { RemotingConfiguration.Configure(Server.MapPath("MSc.config")); } The
file MSc.config is in the application folder and contains the following: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <client> <wellknown type="MscBusinessLogic.Msc, MScBusinessLogicProxy" url="tcp://localhost:48486/Msc" /> </client> </application> </system.runtime.remoting> </configuration> You can see that I’ve failed, to my shame, to be at all
consistent in case, but I believe I’ve checked all those pitfalls; and
remember that I do have the remote object being called successfully from a
S.W.F. application. Is there some difficulty with Server.MapPath(), perhaps? I would be very grateful for any help anyone can give me. I’ve
exhausted all the avenues I can think of. Thanks in advance Peter |
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
