473,320 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Windows authentication setting in web.config

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...

Nov 18 '05 #1
4 3287
one
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

ht

----- Matt wrote: ----

The ASP.NET application connects to MS-SQL database, and I already disable
Anonymous access in IIS, and add ASPNET user in it. When I run th
application, it throws the following error on windows authentication

Server Error in '/' Application

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

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

Source Error

Line 46: by Microsoft that offers a single logon and core profil
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'
the problem here

<configuration><appSettings><add key="connString" value="Data Source=127.0.0.1;Integrate
Security=SSPI;Network Library=DBMSSOCN;Initial Catalog=studentdb;"></add></appSettings><system.web><identity impersonate="true" /
//etc..


Nov 18 '05 #2
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" <on***********@online.nospam> wrote in message
news:9E**********************************@microsof t.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...

Nov 18 '05 #3
one
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 virtua
directory is the boundary for asp.net application. Not the root directory a
it once was." Can u explain it more? Thanks!

"one" <on***********@online.nospam> wrote in messag
news:9E**********************************@microsof t.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 director
is the boundary for asp.net application. Not the root directory as it onc
was
ht
----- Matt wrote: ----
The ASP.NET application connects to MS-SQL database, and I alread disable Anonymous access in IIS, and add ASPNET user in it. When I run th
application, it throws the following error on windows authentication
Server Error in '/' Application
Configuration Erro Description: An error occurred during the processing of

configuration fil required to service this request. Please review the specific erro detail below and modify your configuration file appropriately
Parser Error Message: It is an error to use a section registered a allowDefinition='MachineToApplication' beyond application level. Thi

erro can be caused by a virtual directory not being configured as a applicatio in IIS
Source Error
Line 46: by Microsoft that offers a single logon and cor
profil 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 idea what'
the problem here
<configuration><appSettings><add key="connString" value="Dat
Source=127.0.0.1;Integrate Security=SSPI;Network Library=DBMSSOCN;Initia

Catalog=studentdb;"></add></appSettings><system.web><identit
impersonate="true" />> //etc..

Nov 18 '05 #4
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" <on***********@online.nospam> wrote in message
news:3B**********************************@microsof t.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" <on***********@online.nospam> wrote in message
news:9E**********************************@microsof t.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... >>>>

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mark | last post by:
When our staff are logged into a computer on our domain, they're still prompted for their domain login and password to get into our ASP.NET application in Internet Explorer when using Windows...
4
by: Matt | last post by:
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...
5
by: Gavin Stevens | last post by:
I'm trying to figure out the ASP.NET Forms Auth I have 3 or 4 pages i want to allow anonymous access to.. Then I have 5 or 6 pages I placed in another directory in the webproject. These I want...
4
by: Nick | last post by:
I'm developing an intranet app, and want to get the current user name for logging purposes. I've turned off anonymous access, and turned on windows authentication in the IIS config. The apps...
3
by: Rich Miller | last post by:
I have a strange situation IIS. Take a sample web site which contains only Index.htm. If I choose anonymous access and go to the site, the page loads fine. If instead of Index.htm I use...
2
by: Joergen Bech | last post by:
(trying again with a shorter message - hope anyone has any ideas)... Trying to get my aspx application to run on a remote server beyond my control (except ftp access). First time I access an...
3
by: Doug Bailey | last post by:
I am trying to control a Windows Service via a Web Service interface. (I am developing in .NET2003) I am using the ServiceController object which allows me to read the state of the services with...
0
by: CESAR DE LA TORRE [MVP] | last post by:
I am using WSE 3.0 with Visual Studio 2005, specifically I'm using Kerberos authentication and passing Kerberos ticket from Presentation Tier (VSTO.2005 client) to Server Tier through our Web...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
2
by: WT | last post by:
Hello, I tryed to fix a variable with the current authentication mode, I tryed to use Request.LogonUserIdentity AuthenticationType for this but when I traced with this code if...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.