473,757 Members | 9,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

eror authentication mode = ....

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 I just navigate in my browser to:
localhost/test2/Default.aspx
i get Configuration Error:

Server Error in '/' Application.
Source Error:
Line 56: <authenticati on mode="Forms"/>
or sometimes:
Line 56: <authenticati on mode="Windows" />
(depends of my blind play with "ASP.NET Configuration")

I'm lame but I just want to made web aplication that may be available
to see
by other people on internet, not only by me :-) I don't want any
authentificatio n.
Help.

Oct 12 '06 #1
2 2381
>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 I just navigate in my browser to:
localhost/test2/Default.aspx
i get Configuration Error:

Server Error in '/' Application.
Source Error:
Line 56: <authenticati on mode="Forms"/>
or sometimes:
Line 56: <authenticati on mode="Windows" />
(depends of my blind play with "ASP.NET Configuration")

I'm lame but I just want to made web aplication that may be available
to see
by other people on internet, not only by me :-) I don't want any
authentificatio n.
Help.
Well, you should provide full error description, not only this short
excerpt.

I guess you could have syntax error in web.config file (Parser error?).
If you have really simple application, you don't need the web.config file -
try to rename it to web.config.bak and try the application again.

Robert Haken [MVP ASP/ASP.NET]
HAVIT, s.r.o., www.havit.cz
http://knowledge-base.havit.cz
Oct 12 '06 #2
Robert Haken [MVP] napisal(a):
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 I just navigate in my browser to:
localhost/test2/Default.aspx
i get Configuration Error:

Server Error in '/' Application.
Source Error:
Line 56: <authenticati on mode="Forms"/>
or sometimes:
Line 56: <authenticati on mode="Windows" />
(depends of my blind play with "ASP.NET Configuration")

I'm lame but I just want to made web aplication that may be available
to see
by other people on internet, not only by me :-) I don't want any
authentificatio n.
Help.

Well, you should provide full error description, not only this short
excerpt.
OK:

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 ='MachineToAppl ication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.
Source Error:
Line 52: ASP.NET to identify an incoming user.
Line 53: -->
Line 54: <authenticati on mode="Windows" />
Line 55: <!--
Line 56: The <customErrorsse ction enables configuration
Source File: c:\inetpub\wwwr oot\test\web.co nfig Line: 54
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.210

I guess you could have syntax error in web.config file (Parser error?).
If you have really simple application, you don't need the web.config file -
try to rename it to web.config.bak and try the application again.
But if I delete web.config I get other error:
Server Error in '/test' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.NullRefe renceException: Object reference not
set to an instance of an object.
Source Error:
The source code that generated this unhandled exception can only be
shown when compiled in debug mode. To enable this, please follow one of
the below steps, then request the URL:
1. Add a "Debug=true " directive at the top of the file that generated
the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your
application:
<configuratio n>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given
application to be compiled in debug mode. The first technique will
cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a
memory/performance overhead. You should make sure that an application
has debugging disabled before deploying into production scenario.
Stack Trace:
[NullReferenceEx ception: Object reference not set to an instance of an
object.]
DataSet1TableAd apters.RokUrodz eniaTableAdapte r.InitConnectio n() +58

DataSet1TableAd apters.RokUrodz eniaTableAdapte r.InitCommandCo llection()
+84
DataSet1TableAd apters.RokUrodz eniaTableAdapte r.GetYearBorn() +41
[TargetInvocatio nException: Exception has been thrown by the target of
an invocation.]
System.RuntimeM ethodHandle._In vokeMethodFast( Object target, Object[]
arguments, SignatureStruct & sig, MethodAttribute s methodAttribute s,
RuntimeTypeHand le typeOwner) +0
System.RuntimeM ethodHandle.Inv okeMethodFast(O bject target, Object[]
arguments, Signature sig, MethodAttribute s methodAttribute s,
RuntimeTypeHand le typeOwner) +72
System.Reflecti on.RuntimeMetho dInfo.Invoke(Ob ject obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture,
Boolean skipVisibilityC hecks) +296
System.Reflecti on.RuntimeMetho dInfo.Invoke(Ob ject obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+29

System.Web.UI.W ebControls.Obje ctDataSourceVie w.InvokeMethod( ObjectDataSourc eMethod
method, Boolean disposeInstance , Object& instance) +482
System.Web.UI.W ebControls.Obje ctDataSourceVie w.ExecuteSelect (DataSourceSele ctArguments
arguments) +1869
System.Web.UI.W ebControls.List Control.OnDataB inding(EventArg s e) +86
System.Web.UI.W ebControls.List Control.Perform Select() +18
System.Web.UI.W ebControls.Base DataBoundContro l.DataBind() +68
System.Web.UI.W ebControls.Base DataBoundContro l.EnsureDataBou nd() +61
System.Web.UI.W ebControls.List Control.OnPreRe nder(EventArgs e) +26
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +88
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +171
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +171
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
+5729
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.210

What is wrong?

Oct 12 '06 #3

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

Similar topics

6
4839
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms Authentication set up and it worked just fine. Then I realized that I needed to have some pages unsecure. I then created 2 directories. One named Secure and the other named Public. I placed my web.config file in my
1
2520
by: MJ | last post by:
I'm building an application that has a file structure similar to the following: /myapp/user_login.aspx /myapp/user_page_1.aspx /myapp/user_page_2.aspx /myapp/user_page_3.aspx /myapp/admin/admin_login.aspx /myapp/admin/admin_page_1.aspx /myapp/admin/admin_page_2.aspx
4
5566
by: Jay | last post by:
I have authentication set for my site but I need one page to be an exception case. Namely my forgot password page. How do I tell the webconfig file to authenciate all pages except one page? Thank You for any input on this matter!
10
3608
by: See Sharp | last post by:
Hello all, I have a set of admin pages which are put in a subfolder called admin inside my application folder. I want to limit access to these admin pages. How can I do this? In Linux, I can password protect the directory, so that whenever a page within the admin subfolder is accessed for the first time, an authentication window pops up asking for username-password. How can I implement the same
3
4870
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be protected by forms authentication. When I create forms authentication at root level it works but when I move my code up to the subfolder I get this error: Server Error in '/TestProjects/FormsAuthenticationTestingArea' Application.
4
1957
by: Paul M | last post by:
hi there, i've got a website i created, that i've put onto my test server on the web. I have a login page, that when the user comes to it, it first pops up a windows authentication dialog box, and i dont know why? i click cancel on it and the page still works as normal. How can i remove this, and why is it appearing? i am also not using any .NET authentication methods or anything..
1
7750
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 allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error:
3
4697
by: Adam J Knight | last post by:
Hi all, I have an app that mostly requires authentication. However there are a couple of pages that don't require authentication.. What do i need in my web.config, to specify these pages don't require authentication.. thus the user is not redirected to my default login url..when they ('pages') are requested.
6
4757
by: Eng.Rana | last post by:
Hello All, i was wondering what is the main difference between the windows authentication and mixed mode authentication?? according to security recommendations, we should enable windows authentication, rather than mixed one, i don get the point why do we refuse the mixed mode authentication, although it includes windows authentication together with an extra layer of defense by the aid of an extra authentication mechanism, sql...
0
9298
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10072
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7286
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5172
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3829
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2698
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.