Home All Groups Group Topic Archive Search About
Author
19 Sep 2006 7:46 AM
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>
--------------------------------------------------------------------------------

This is for redirecting anyone who is not secure to the login page,,,
this works fine when I run it in VS,, but not when I put it in WWW
root,, anyone got any sugggestions?

Author
19 Sep 2006 7:59 AM
Andrew Morton
Bonzol wrote:
> .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
<snip>
> 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
Author
19 Sep 2006 8:14 AM
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
Andrew Morton wrote:
Show quoteHide quote
> Bonzol wrote:
> > .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
> <snip>
> > 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
Author
19 Sep 2006 8:16 AM
Bonzol
actually now I fixed it.

cheers
Author
19 Sep 2006 9:42 AM
Andrew Morton
Bonzol wrote:
> 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