Open new project from web not compiling

G

Guest

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
 
S

Scott Allen

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.
 
G

Guest

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 said:
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.
 
G

Guest

It is a virtual directory of a site. I'm not sure what you mean by
application virtual....
 
S

Scott Allen

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?
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top