[Mono-list] Re: CodeBehind tag from VS.NET
Gavin Hamill
gdh at acentral.co.uk
Wed Jul 6 04:26:59 EDT 2005
On Wednesday 06 July 2005 07:52, Robert Jordan wrote:
Hi Robert,
> You don't need to change the file containing the codebehind attribute.
> What you have to do is: compile the codebehind file and put the assembly
> into the bin folder of the ASP app.
I thought I did.. e.g.
apachectl stop; killall mono; rm -r /tmp/.wapi; (wait for apache to really
stop); apachectl start
I then copied the whole contents from the Windows XP localhost IIS install to
qax, the Mono machine (all except for the _vti FrontPage dirs)
qax:/usr/share/asp.net-demos/asp/WebApplication1# find
.
./bin
./bin/WebApplication1.dll
./bin/WebApplication1.pdb
./AssemblyInfo.cs
./Global.asax
./Global.asax.cs
./Global.asax.resx
./Web.config
./WebApplication1.csproj
./WebApplication1.csproj.webinfo
./WebForm1.aspx
./WebForm1.aspx.cs
./WebForm1.aspx.resx
So as you can see, the .dll is already there in the bin directory, yet running
the WebForm1.aspx from a browser just comes back with:
Server Error in '/samples' Application
Parser Error
Description: Error parsing a resource required to service this request. Review
your source file and modify it to fix this error.
Error message: Cannot find type WebApplication1.WebForm1
File name: /usr/share/asp.net-demos/asp/WebApplication1/WebForm1.aspx
Line: 1
Source Error:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false"
Inherits="WebApplication1.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
Cheers,
Gavin.
More information about the Mono-list
mailing list