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... 4 3292
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..
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...
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..
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... >>>> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |