Web.config issue

B

Bonzol

..net 2005, 2.0 Web application

They there, I have a program that works fine when I run it in the IDE,
however when I go to deploy it in the www root,, to make it a website I
get this error message


visual basic
code:--------------------------------------------------------------------------------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 24: ASP.NET to identify an incoming user.
Line 25: -->
Line 26: <authentication mode="Forms" >
Line 27: <forms name ="bgr" loginUrl="Login.aspx"/>
Line 28: </authentication>
 
A

Andrew Morton

Bonzol said:
.net 2005, 2.0 Web application

They there, I have a program that works fine when I run it in the IDE,
however when I go to deploy it in the www root,, to make it a website
I get this error message
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.

In IIS Manager, right-click on the web site (probably Default Web Site), go
to the Home Directory tab and click on the button to the right of the
Application name box. Make sure the "Execute permissions" is set to "Scripts
only".

Or it's something pretty much like that.

Andrew
 
B

Bonzol

Hey thanx for the reply,, the button next to the application name box
is remove,, I removed the application name and it just didnt work at
all. I also tried creating a new name and I got the same error again
 
A

Andrew Morton

Bonzol said:
actually now I fixed it.

Glad to hear it.

For the benefit of anyone who may happen across this thread in the future,
what was the step that made it work?

Andrew
 

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