Trouble Testing New Web App

F

fripper

I have creqated a VB .Net web application using Visual Studio 2003 but I am
having trouble testing the program. I have installed IIS 5.1 on my machine
[XP Pro SP2] and put the application files in a folder in the
inetpub/wwwroot directory. When I try to execute the program (Debug > Start
Without Debugging) I get the 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.

I don't have a clue how to fix this problem ... and attempts to look at
various help files and on-line documentation have been bewildering..

Thanks.
 
J

Jim Underwood

Open up Internet Services Manager, navigate to the directory containing your
application, rightclick and choose properties.

Then, under the directory tab, click on the "Create" button under
application settings.

This will set the folder up as a virtual directory/application and should
allow your code to run.
 
F

fripper

Thanks very much Jim ... that did the trick. Someday I will understand this
stuff!


Jim Underwood said:
Open up Internet Services Manager, navigate to the directory containing
your
application, rightclick and choose properties.

Then, under the directory tab, click on the "Create" button under
application settings.

This will set the folder up as a virtual directory/application and should
allow your code to run.

fripper said:
I have creqated a VB .Net web application using Visual Studio 2003 but I am
having trouble testing the program. I have installed IIS 5.1 on my machine
[XP Pro SP2] and put the application files in a folder in the
inetpub/wwwroot directory. When I try to execute the program (Debug > Start
Without Debugging) I get the 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.

I don't have a clue how to fix this problem ... and attempts to look at
various help files and on-line documentation have been bewildering..

Thanks.
 

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

Top