Viewing an ASPX page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I just took an extensive ASP.NET course and copied my projects to my wwwroot
folder and tried opening my default page which consumes some web service. It
worked ok at the course but now I get this error:

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.

Source Error:


Line 39: by Microsoft that offers a single logon and core profile
services for member sites.
Line 40: -->
Line 41: <authentication mode="Windows" />
Line 42:
Line 43:

Source File: c:\inetpub\wwwroot\PorterWeb\web.config Line: 41

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


Other pages open up ok in bowser.
 
You need to configure an Application in IIS.

Go to IIS Admin.

Right click on your root www website.

On the property sheet there is an Application Button.

Click on it, and give it a name.

Set the security level to medium.

What would be better is if you put your files in a sub folder under the
wwwroot...and then did the above, but gave it a name the same as the
folder.
 
Thanks C.E.O. Gargantua. I did copy my project folder "ProjectName" into
wwwroot folder if that's what you meant.

I'm sorry to belabour(sp?) the point, but in terms of IIS admin, do you mean
the IIS icon under Administrative Tools in control panel? I went in there,
could see all my webs, right clicked on "Default Web Site" icon, and get a
dialog box with all tabs; Web Site, ISAPI filters, Home Directory, Documents
etc. no "Application" button though.

I'm sure I'm just misunderstanding what you're referring to, I am a quick
study but these configs I'm really green about.

The instructor said I'd be able to just copy the files from the course
computer into the same wwwroot, project name folder on my laptop??
 
Ok, but what you want to do is first select your project folder.

Then right click.

The property sheet that appears should have a Create Application button in
the lower right hand side.

When you click it, it should turn your virtual website into a "web
application". By default it will give it the same name as the folder and
set it to Medium or Low protection level.
 
Back
Top