473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

vb.net web application on XP Home


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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #1
2 2769
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

"Alice Z." <al***********@yahoo.com> wrote in message
news:ek**************@TK2MSFTNGP09.phx.gbl...

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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #2
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
"Gerry" <gd*****@msn.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
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

"Alice Z." <al***********@yahoo.com> wrote in message
news:ek**************@TK2MSFTNGP09.phx.gbl...

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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Marco Aschwanden | last post by:
I want to store a file in the application directory. What is the easiest way to figure out, where my application is situated? sys.argv does not work for my purposes... do you have any other...
1
by: Praveen | last post by:
Hi All, I'm new to DB2, I have installed DB2 UDB V8 on Solaris machine. And i tried to create a stored proc.But, gives the following error.. -- LOG FILE P2093405.log FOR PROCEDURE...
11
by: Steve Franks | last post by:
I'm using VS.NET 2005 Beta 2. I have a helper C# class I wrote that I placed in my /App_Code directory. Everything runs fine locally. However when I use the "Copy Web" function to upload the site...
2
by: rjbr | last post by:
ASP.NET problem I have ASP.NET 1.1 application installed on 3 server Win2003/IIS6 Relative paths are being resolved in 2 of those but not on one dir structire /app/ /import
9
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.