[Mono-list] Unable to deploy an ASP.NET application
PBradley at uwic.ac.uk
Sat Feb 18 09:53:02 EST 2006
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 22.214.171.124.
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
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
Line 1: using System;
Line 2: using System.Collections;
Line 3: using System.ComponentModel;
Line 4: using System.Data;
Line 5: using System.Drawing;
Line 6: using System.Web;
Line 7: using System.Web.SessionState;
Line 8: using System.Web.UI;
Line 9: using System.Web.UI.WebControls;
Line 10: using System.Web.UI.HtmlControls;
Line 11: using System.Web.Security;
Line 12: using System.Security.Permissions;
Line 13: using System.Threading;
Line 14: using MscBusinessLogic;
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
protected void Application_Start(Object sender, EventArgs e)
The file MSc.config is in the application folder and contains the
<?xml version="1.0" encoding="utf-8" ?>
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list