By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,669 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,669 IT Pros & Developers. It's quick & easy.

Open new project from web not compiling

P: n/a
LU
I open new project from web (Created from another computer).
I add new web form to project, build/rebuild etc and I get Parse error below.
(If I change codebehind = to src=) it works.
How do I get it to complie ? What setting should I look into?

Server Error in '/census' 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 'census.WebForm2'.

Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="WebForm2.aspx.vb" Inherits="census.WebForm2"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <html>
Source File: C:\Inetpub\census\WebForm2.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Nov 19 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Does webform2.aspx appear in the file list for the project? In
solution explorer, check the "show all files" button and make sure
webform2.aspx and webform2.vb are both listed in the project files.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Mar 2005 08:23:01 -0800, "LU"
<LU@discussions.microsoft.com> wrote:
I open new project from web (Created from another computer).
I add new web form to project, build/rebuild etc and I get Parse error below.
(If I change codebehind = to src=) it works.
How do I get it to complie ? What setting should I look into?

Server Error in '/census' 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 'census.WebForm2'.

Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="WebForm2.aspx.vb" Inherits="census.WebForm2"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <html>
Source File: C:\Inetpub\census\WebForm2.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573


Nov 19 '05 #2

P: n/a
LU
Yes,
Both files are in the project. Also, if I go back to the other computer I
can see the file and when i compile from this other computer it works.

"Scott Allen" wrote:
Does webform2.aspx appear in the file list for the project? In
solution explorer, check the "show all files" button and make sure
webform2.aspx and webform2.vb are both listed in the project files.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Mar 2005 08:23:01 -0800, "LU"
<LU@discussions.microsoft.com> wrote:
I open new project from web (Created from another computer).
I add new web form to project, build/rebuild etc and I get Parse error below.
(If I change codebehind = to src=) it works.
How do I get it to complie ? What setting should I look into?

Server Error in '/census' 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 'census.WebForm2'.

Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="WebForm2.aspx.vb" Inherits="census.WebForm2"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <html>
Source File: C:\Inetpub\census\WebForm2.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573


Nov 19 '05 #3

P: n/a
Is the directory for your project marked as an application virtual
directory in IIS?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Mar 2005 08:59:05 -0800, "LU"
<LU@discussions.microsoft.com> wrote:
Yes,
Both files are in the project. Also, if I go back to the other computer I
can see the file and when i compile from this other computer it works.

"Scott Allen" wrote:
Does webform2.aspx appear in the file list for the project? In
solution explorer, check the "show all files" button and make sure
webform2.aspx and webform2.vb are both listed in the project files.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Mar 2005 08:23:01 -0800, "LU"
<LU@discussions.microsoft.com> wrote:
>I open new project from web (Created from another computer).
>I add new web form to project, build/rebuild etc and I get Parse error below.
>(If I change codebehind = to src=) it works.
>How do I get it to complie ? What setting should I look into?
>
>Server Error in '/census' 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 'census.WebForm2'.
>
>Source Error:
>
>
>Line 1: <%@ Page Language="vb" AutoEventWireup="false"
>CodeBehind="WebForm2.aspx.vb" Inherits="census.WebForm2"%>
>Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>Line 3: <html>
>
>
>Source File: C:\Inetpub\census\WebForm2.aspx Line: 1
>
>
>--------------------------------------------------------------------------------
>Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
>Version:1.1.4322.573



Nov 19 '05 #4

P: n/a
LU
It is a virtual directory of a site. I'm not sure what you mean by
application virtual....

"Scott Allen" wrote:
Is the directory for your project marked as an application virtual
directory in IIS?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Mar 2005 08:59:05 -0800, "LU"
<LU@discussions.microsoft.com> wrote:
Yes,
Both files are in the project. Also, if I go back to the other computer I
can see the file and when i compile from this other computer it works.

"Scott Allen" wrote:
Does webform2.aspx appear in the file list for the project? In
solution explorer, check the "show all files" button and make sure
webform2.aspx and webform2.vb are both listed in the project files.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Mar 2005 08:23:01 -0800, "LU"
<LU@discussions.microsoft.com> wrote:

>I open new project from web (Created from another computer).
>I add new web form to project, build/rebuild etc and I get Parse error below.
>(If I change codebehind = to src=) it works.
>How do I get it to complie ? What setting should I look into?
>
>Server Error in '/census' 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 'census.WebForm2'.
>
>Source Error:
>
>
>Line 1: <%@ Page Language="vb" AutoEventWireup="false"
>CodeBehind="WebForm2.aspx.vb" Inherits="census.WebForm2"%>
>Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>Line 3: <html>
>
>
>Source File: C:\Inetpub\census\WebForm2.aspx Line: 1
>
>
>--------------------------------------------------------------------------------
>Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
>Version:1.1.4322.573


Nov 19 '05 #5

P: n/a
When you go to the property tab for the virtual directory in IIS
you'll see an "application settings" area in the bottom half of the
dialog. If there is a "create" button you'll want to click that to
mark the vdir as an application, otherwise its configured properly.

Did you get past the error yet? Do any of the other pages work?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Mar 2005 10:29:02 -0800, "LU"
<LU@discussions.microsoft.com> wrote:
It is a virtual directory of a site. I'm not sure what you mean by
application virtual....

"Scott Allen" wrote:
Is the directory for your project marked as an application virtual
directory in IIS?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Mar 2005 08:59:05 -0800, "LU"
<LU@discussions.microsoft.com> wrote:
>Yes,
>Both files are in the project. Also, if I go back to the other computer I
>can see the file and when i compile from this other computer it works.
>
>"Scott Allen" wrote:
>
>> Does webform2.aspx appear in the file list for the project? In
>> solution explorer, check the "show all files" button and make sure
>> webform2.aspx and webform2.vb are both listed in the project files.
>>
>> --
>> Scott
>> http://www.OdeToCode.com/blogs/scott/
>>
>> On Tue, 22 Mar 2005 08:23:01 -0800, "LU"
>> <LU@discussions.microsoft.com> wrote:
>>
>> >I open new project from web (Created from another computer).
>> >I add new web form to project, build/rebuild etc and I get Parse error below.
>> >(If I change codebehind = to src=) it works.
>> >How do I get it to complie ? What setting should I look into?
>> >
>> >Server Error in '/census' 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 'census.WebForm2'.
>> >
>> >Source Error:
>> >
>> >
>> >Line 1: <%@ Page Language="vb" AutoEventWireup="false"
>> >CodeBehind="WebForm2.aspx.vb" Inherits="census.WebForm2"%>
>> >Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>> >Line 3: <html>
>> >
>> >
>> >Source File: C:\Inetpub\census\WebForm2.aspx Line: 1
>> >
>> >
>> >--------------------------------------------------------------------------------
>> >Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
>> >Version:1.1.4322.573
>>
>>



Nov 19 '05 #6

P: n/a
LU
It is an application. I can add webforms and it says it rebuilds, but I
don't see it saving any thing to the server. So after i rebuild the changes
don't take place. A page will work from here if I chagne the codebehind
attribute to SRC. I'm not sure why its doing this. I tried deleting my
local copy of the .sln file and doing open from web again, but I get the same
results. I'm going to check the versions of visual studio.
"Scott Allen" wrote:
When you go to the property tab for the virtual directory in IIS
you'll see an "application settings" area in the bottom half of the
dialog. If there is a "create" button you'll want to click that to
mark the vdir as an application, otherwise its configured properly.

Did you get past the error yet? Do any of the other pages work?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Mar 2005 10:29:02 -0800, "LU"
<LU@discussions.microsoft.com> wrote:
It is a virtual directory of a site. I'm not sure what you mean by
application virtual....

"Scott Allen" wrote:
Is the directory for your project marked as an application virtual
directory in IIS?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 22 Mar 2005 08:59:05 -0800, "LU"
<LU@discussions.microsoft.com> wrote:

>Yes,
>Both files are in the project. Also, if I go back to the other computer I
>can see the file and when i compile from this other computer it works.
>
>"Scott Allen" wrote:
>
>> Does webform2.aspx appear in the file list for the project? In
>> solution explorer, check the "show all files" button and make sure
>> webform2.aspx and webform2.vb are both listed in the project files.
>>
>> --
>> Scott
>> http://www.OdeToCode.com/blogs/scott/
>>
>> On Tue, 22 Mar 2005 08:23:01 -0800, "LU"
>> <LU@discussions.microsoft.com> wrote:
>>
>> >I open new project from web (Created from another computer).
>> >I add new web form to project, build/rebuild etc and I get Parse error below.
>> >(If I change codebehind = to src=) it works.
>> >How do I get it to complie ? What setting should I look into?
>> >
>> >Server Error in '/census' 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 'census.WebForm2'.
>> >
>> >Source Error:
>> >
>> >
>> >Line 1: <%@ Page Language="vb" AutoEventWireup="false"
>> >CodeBehind="WebForm2.aspx.vb" Inherits="census.WebForm2"%>
>> >Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>> >Line 3: <html>
>> >
>> >
>> >Source File: C:\Inetpub\census\WebForm2.aspx Line: 1
>> >
>> >
>> >--------------------------------------------------------------------------------
>> >Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
>> >Version:1.1.4322.573
>>
>>


Nov 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.