James_fl
asked on
ASP.Net Create New Web Application Error
I want to create a new ASP.Net web project. After I clicked OK in the new project window, Visual Studio asked to provide a share path to open the project. However, after I clicked OK, it displays an error message saying:
"The item 'Webform1.aspx' does not exist in the project directory. It may have been moved, renamed, or deleted."
The project itself is created, but when I double-click Webform1.aspx or when I add a new web form, Visual Studio won't display the webform and shows the same error message.
I suspect it has something to do with NTFS/IIS Permission. I'm new in ASP.Net so I don't know much about it.
I run IIS 5.1 with .Net framework 1.1. In IIS, my project folder exists as a Server Extension.
It has Script Source Access, Read, Write, and Directory Browsing permissions. The execute permission is: Scripts only and the Application Protection is Medium (Pooled).
In Directory Security > Authentication Methods, I disabled Anonymous access as well as digest authentication and basic authentication. Integrated Windows Authentication is still checked.
My NTFS permission:
Adminstrators > Full Control
ASPNET > Read & Execute + List Folder Contents + Read
CREATOR OWNER > No checbox is checked (everytime I want to add a permission and click OK, XP does not allow since it always unchecks every permission for this username)
My_UserName > Full Control
IWAM_machineName > Read & Execute + List Folder Contents + Read
System > Full Control
I am the administrator of this PC, I want to let everyone view the page but the only person that has Full Control is me.
How can I do this? Thanks experts for your help!
"The item 'Webform1.aspx' does not exist in the project directory. It may have been moved, renamed, or deleted."
The project itself is created, but when I double-click Webform1.aspx or when I add a new web form, Visual Studio won't display the webform and shows the same error message.
I suspect it has something to do with NTFS/IIS Permission. I'm new in ASP.Net so I don't know much about it.
I run IIS 5.1 with .Net framework 1.1. In IIS, my project folder exists as a Server Extension.
It has Script Source Access, Read, Write, and Directory Browsing permissions. The execute permission is: Scripts only and the Application Protection is Medium (Pooled).
In Directory Security > Authentication Methods, I disabled Anonymous access as well as digest authentication and basic authentication. Integrated Windows Authentication is still checked.
My NTFS permission:
Adminstrators > Full Control
ASPNET > Read & Execute + List Folder Contents + Read
CREATOR OWNER > No checbox is checked (everytime I want to add a permission and click OK, XP does not allow since it always unchecks every permission for this username)
My_UserName > Full Control
IWAM_machineName > Read & Execute + List Folder Contents + Read
System > Full Control
I am the administrator of this PC, I want to let everyone view the page but the only person that has Full Control is me.
How can I do this? Thanks experts for your help!
Ok try registering asp.net components again with this
C:\WINDOWS\Microsoft.NET\F ramework\v 1.1.4322\a spnet_regi is.exe
aspnet_regiis.exe -i
The following command installs the script maps pointing to the ASP.NET version associated with Aspnet_regiis.exe to the SampleApp1 application and all its sub-applications.
Aspnet_regiis -s W3SVC/1/ROOT/SampleApp1
lets see if anything works
C:\WINDOWS\Microsoft.NET\F
aspnet_regiis.exe -i
The following command installs the script maps pointing to the ASP.NET version associated with Aspnet_regiis.exe to the SampleApp1 application and all its sub-applications.
Aspnet_regiis -s W3SVC/1/ROOT/SampleApp1
lets see if anything works
ASKER
Ryerras, thanks for the reply. I just created a project named: project, located in: http://localhost/project
These are the files that were created:
project.vbproj
project.vbproj.webinfo
AssemblyInfo.vb
Global.asax
Styles.css
Web.config
Webform1.aspx
(and an empty bin directory)
As you suggested, I have re-registered asp.net components and tried to install script maps: aspnet_regiis.exe -s localhost/project
But, it gave me error message:
Start registering ASP.NET scriptmap (1.1.4322.0) recursively at localhost/project/project. vbproj. Installation stopped because the specified path (localhost/project/project .vbproj) is not a valid web application.
I also tried to open Webform1.aspx in IE, but it gave me error message:
Server Error in '/project' 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 '$INHERITS$'.
Source Error:
Line 1: <%@ Application Codebehind="$FILENAME$.vb" Inherits="$INHERITS$" %>
These are the files that were created:
project.vbproj
project.vbproj.webinfo
AssemblyInfo.vb
Global.asax
Styles.css
Web.config
Webform1.aspx
(and an empty bin directory)
As you suggested, I have re-registered asp.net components and tried to install script maps: aspnet_regiis.exe -s localhost/project
But, it gave me error message:
Start registering ASP.NET scriptmap (1.1.4322.0) recursively at localhost/project/project.
I also tried to open Webform1.aspx in IE, but it gave me error message:
Server Error in '/project' 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 '$INHERITS$'.
Source Error:
Line 1: <%@ Application Codebehind="$FILENAME$.vb"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
BY the way where is this line is in, which file. Did you modify files after you created the proj.
<%@ Application Codebehind="$FILENAME$.vb" Inherits="$INHERITS$" %>
you say you created the project as http://localhost/project, how did u create tht. did u use vs.net . let me know the steps you had taken to create it
<%@ Application Codebehind="$FILENAME$.vb"
you say you created the project as http://localhost/project, how did u create tht. did u use vs.net . let me know the steps you had taken to create it
ASKER
I saw the project name there.
Now now, I don't know what was happening (since I had tried this before), but I removed the folder, then I re-add it and suddenly it works.
Thanks anyways for your service. Point is granted
Now now, I don't know what was happening (since I had tried this before), but I removed the folder, then I re-add it and suddenly it works.
Thanks anyways for your service. Point is granted
ASKER
ryerras: yes I did use VS.Net to create it. Thanks again for your help!
ASKER