vb.net web application on XP Home

  • Thread starter Thread starter Alice Z.
  • Start date Start date
A

Alice Z.

Hi, dear

I have created a vb.net web application on XP Home and expected to run
it on Cassini. Cassini works fine. But When I was trying to access it
using URL as:

http://localhost/WebApplication1/WebForm1.aspx

every time I got error message like:


Server Error in '/' Application.
-----------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse
error details and modify your source file appropriately.

Parser Error Message: Could not load type 'WebApplication1.WebForm1'.

Source Error:

Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>

Source File: c:\inetPub\wwwroot\WebApplication1\WebForm1.aspx Line: 1


-----------------------------------------------------------Version
Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET
Version:1.0.3705.0


Could someone give any idea to fix it?

Thanks in advance.
 
When I used to use WebMatrix I had to include the port number to properly
access the webserver. I would type in my url like this :
http://localhost:80/.......
The other problem I encounter is making sure the folder was setup up for
web sharing and/or being setup as a virtual directory (this is for IIS...
not sure about Cassini)

I'm not good with webserver configuration or troubleshooting but I though
this might help
 
It does not look like a Cassini error, to me.
To me it looks like you need to swap out

Codebehind="WebForm1.aspx.vb"

and insert

Src="WebForm1.aspx.vb"


Codebehind is an attribute that is supported by Visual Studio (not
WebMatrix, and not ASP.NET). It tells VS to pre-compile the "codebehind"
page into a DLL and deploy it. The codebehind attribute is ignored by the
asp.net runtime, and is ignored by Cassini. So the reason you get the error
is you haven't compiled the file and put the resulting DLL into the bin dir.
On the other hand, you can use the Src attribute to avoid the manual
compile-and-deploy step. Src is a page-level attribute that indicates you
want just-in-time compiling, done by ASP.NET.

Here is an article that goes into some further depth on this topic.
http://tinyurl.com/oa0x

ps: For Cassini or ASP.NET requests, there is a newsgroup for aspnet that
may be of more help see
microsoft.public.dotnet.framework.aspnet

also on www.asp.net there are user forums, one of them is dedicated to
Cassini, I believe.


-Dino
 
Back
Top