473,378 Members | 1,504 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,378 software developers and data experts.

Authentication mode in web.config causing crash.

Hi there,
I am having serious problems with my web.config file. When the authentication lines are added below my application crashes. When they are removed it works fine. Is there syntax error below or is there something more sinister going on.

Any help greatly appreciated.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<customErrors mode="Off" />
* <authentication mode="Forms">
* <forms name="AuthCookie" loginUrl="login.aspx" />
* </authentication>
</system.web>

<location path="MyMobile.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>

Thanks,
John Lynagh

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>S0zRyqi0VEKZKYfouj3IgA==</Id>
Nov 19 '05 #1
6 1930
John Lynagh via .NET 247 wrote:
Hi there,
I am having serious problems with my web.config file. When the authentication lines are added below my application crashes. When they are removed it works fine. Is there syntax error below or is there something more sinister going on.

Any help greatly appreciated.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<customErrors mode="Off" />
* <authentication mode="Forms">
* <forms name="AuthCookie" loginUrl="login.aspx" />
* </authentication>
</system.web>

<location path="MyMobile.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>

Thanks,
John Lynagh

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>S0zRyqi0VEKZKYfouj3IgA==</Id>


My tag looks like this
<forms name=".blahblah" loginUrl="/login.aspx" protection="All"
timeout="20" path="/"></forms>

--
Curt Christianson
site: www.darkfalz.com
blog: blog.darkfalz.com
Nov 19 '05 #2
You have *two* <system.web> sections in your web.config.
Consolidate all your settings in *one* <system.web> section.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"John Lynagh via .NET 247" <an*******@dotnet247.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi there,
I am having serious problems with my web.config file. When the authentication lines are
added below my application crashes. When they are removed it works fine. Is there syntax
error below or is there something more sinister going on.

Any help greatly appreciated.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<customErrors mode="Off" />
* <authentication mode="Forms">
* <forms name="AuthCookie" loginUrl="login.aspx" />
* </authentication>
</system.web>

<location path="MyMobile.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>

Thanks,
John Lynagh

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>S0zRyqi0VEKZKYfouj3IgA==</Id>

Nov 19 '05 #3
> You have *two* <system.web> sections in your web.config. Consolidate
all your settings in *one* <system.web> section.
He does?
<configuration>
<system.web>
<customErrors mode="Off" />
* <authentication mode="Forms">
* <forms name="AuthCookie" loginUrl="login.aspx" />
* </authentication>
</system.web>
<location path="MyMobile.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>


He's got a second <system.web> under the <location> element, which is fine.
I am having serious problems with my web.config file. When the
authentication lines are added below my application crashes.


What's the exception thrown?

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #4
Hmmm...you're right.

I should go out and have a few beers on this Friday afternoon.

Thanks!

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:87**********************@msnews.microsoft.com ...
You have *two* <system.web> sections in your web.config. Consolidate
all your settings in *one* <system.web> section.


He does?
<configuration>
<system.web>
<customErrors mode="Off" />
* <authentication mode="Forms">
* <forms name="AuthCookie" loginUrl="login.aspx" />
* </authentication>
</system.web>
<location path="MyMobile.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>


He's got a second <system.web> under the <location> element, which is fine.
I am having serious problems with my web.config file. When the
authentication lines are added below my application crashes.


What's the exception thrown?

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #5
> Hmmm...you're right.

I should go out and have a few beers on this Friday afternoon.


I'll join you :)

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #6
Nobody invited me :(

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 10 Jun 2005 13:53:56 -0700, Brock Allen
<ba****@NOSPAMdevelop.com> wrote:
Hmmm...you're right.

I should go out and have a few beers on this Friday afternoon.


I'll join you :)

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #7

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

Similar topics

0
by: Atul | last post by:
I have a .Net Managed C++ wrapper control for a MFC control. When using the ..Net control in a Visual Studio 2005 Beta 2 C# project and running in Debug mode, I get a crash saying something like...
1
by: Reza | last post by:
Trying this again Here is the situation, I am using the <authentication mode="Windows" / for webforms not windows, but I don't want to specify the list of users in the web.config, but have the...
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...
1
by: Joe | last post by:
What I want to do is make only one page require a login. The application itself works fine. I'm getting the following error: Parser Error Message: It is an error to use a section registered as...
2
by: wiktor.dzierzecki | last post by:
I try to build a simple web aplication in ASP.NET in Visual Studio 5. When I run finished web aplication from inside VS5: localhost:1675/test2/Default.aspx everything is OK, works good. But when...
0
by: DaBrain | last post by:
I am new to ASP.NET (Was doing ASP) I am even newer to Visual Studio. Every time I "Publish Web Site" (doing so on a local networked drive) after the publish is complete I get "Web.config was...
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...
1
by: inungh | last post by:
I tried to place a grid view on my design view and connect to new data source to local SQL Express server Northwind database. I got error message on line 80 <authentication mode="Windows"/> ...
1
sanjib65
by: sanjib65 | last post by:
I want to understand about this part of web.config file: <!-- The <authentication> section enables configuration of the security authentication mode used by ...
1
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...
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...
0
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,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
0
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...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.