The ASP.NET application connects to MS-SQL database, and I already disabled
Anonymous access in IIS, and add ASPNET user in it. When I run the
application, it throws the following error on windows authentication:
Server Error in '/' Application.
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 46: by Microsoft that offers a single logon and core profile
services for member sites.
Line 47: -->
Line 48: <authentication mode="Windows"/> //<====== ERROR!!
Here's the portion of the web.config file that I modified, any ideas what's
the problem here?
<configuration>
<appSettings>
<add key="connString" value="Data Source=127.0.0.1;Integrated
Security=SSPI;Network Library=DBMSSOCN;Initial Catalog=studentdb;"></add>
</appSettings>
<system.web>
<identity impersonate="true" />
//etc...so , you have checked that the virtual directory has been setup properly? Ha
ve you put all your file under the virtual directory? A virtual directory is
the boundary for asp.net application. Not the root directory as it once was
.
hth
-- Matt wrote: --
The ASP.NET application connects to MS-SQL database, and I already disabled
Anonymous access in IIS, and add ASPNET user in it. When I run the
application, it throws the following error on windows authentication:
Server Error in '/' Application.
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 46: by Microsoft that offers a single logon and core profile
services for member sites.
Line 47: -->
Line 48: <authentication mode="Windows"/> //<====== ERROR!!
Here's the portion of the web.config file that I modified, any ideas what's
the problem here?
<configuration><appSettings><add key="connString" value="Data Source=127.0.0
.1;Integrated
Security=SSPI;Network Library=DBMSSOCN;Initial Catalog=studentdb;"></add></a
ppSettings><system.web><identity impersonate="true" />
//etc...
Yes, I put all files under virtual directory. What do u mean "A virtual
directory is the boundary for asp.net application. Not the root directory as
it once was." Can u explain it more? Thanks!!
"one" <one.microsoft@.online.nospam> wrote in message
news:9EF4FCF0-356F-4656-8B37-C541CD98A5AB@.microsoft.com...
> so , you have checked that the virtual directory has been setup properly?
Have you put all your file under the virtual directory? A virtual directory
is the boundary for asp.net application. Not the root directory as it once
was.
> hth
> -- Matt wrote: --
> The ASP.NET application connects to MS-SQL database, and I already
disabled
> Anonymous access in IIS, and add ASPNET user in it. When I run the
> application, it throws the following error on windows authentication:
> Server Error in '/' Application.
> 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 46: by Microsoft that offers a single logon and core
profile
> services for member sites.
> Line 47: -->
> Line 48: <authentication mode="Windows"/> //<====== ERROR!!
>
> Here's the portion of the web.config file that I modified, any ideas
what's
> the problem here?
> <configuration><appSettings><add key="connString" value="Data
Source=127.0.0.1;Integrated
> Security=SSPI;Network Library=DBMSSOCN;Initial
Catalog=studentdb;"></add></appSettings><system.web><identity
impersonate="true" />
> //etc...
>
>
Thanks you!
I'll try that when I'll get back to work...
Where I can get more info about this web.config file configuration?
Thank you again.
With the best wishes,
Shaul Feldman
"one" <one.microsoft@.online.nospam> wrote in message
news:3BA64470-2596-4338-A269-D254F53E07AF@.microsoft.com...
> What I meant was that when you create a new project, and a new directory
(and web.config) is created. And the user authentication section (and other
contents in that web.config) applies to that directory only.
> But have you tried putting this line:
> <identity impersonate="true" />
> underneath:
> <authentication mode="Windows"/>
> ?
> I think the <identity> element needs to be within the <system.web>
element.
> -- Matt wrote: --
> Yes, I put all files under virtual directory. What do u mean "A
virtual
> directory is the boundary for asp.net application. Not the root
directory as
> it once was." Can u explain it more? Thanks!!
> "one" <one.microsoft@.online.nospam> wrote in message
> news:9EF4FCF0-356F-4656-8B37-C541CD98A5AB@.microsoft.com...
properly?
> Have you put all your file under the virtual directory? A virtual
directory
> is the boundary for asp.net application. Not the root directory as it
once
> was.
already
> disabled
the
authentication:
> configuration file
error
> details
registered as
level. This
> error
an
> application
and core
> profile
mode="Windows"/> //<====== ERROR!!
any ideas
> what's
> Source=127.0.0.1;Integrated
> Catalog=studentdb;"></add></appSettings><system.web><identity
> impersonate="true" />> //etc...
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment