473,505 Members | 16,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

parser errors loading class

For an application root i use a web.config file and specify this authentication and authorization scheme:

<authentication mode="Forms"><forms loginUrl = "AdminLogin.aspx" name = "FORMSAUTHCOOKIE" path="/" timeout="10"></forms></authentication><authorization><deny users="*"/></authorization>

The result when browsing to the application root (under which are sensitive .aspx pages), is that AdminLogin.aspx is found, but not loaded. There is a parser error loading the code behind class.

What is the likely solution to this issue? Why?
Nov 18 '05 #1
3 971
<authorization><allow users="*" /><!-- Allow all users --></authorization
Tommy's suggestion, given below, yields the same inability to load the class in the C# codebehind file

Now, for folders that you want to restrict access, create a Web.Confi
that contains only the "Authorization" section, and deny anonymou
access

<authorization><deny users="?" /><allow users="*" /><!-- Allow all users --></authorization>
Nov 18 '05 #2
David Coe's suggestion, given below, also does not allow the codebehind class to load

In the root web.config file, specify a location for certain configuration, like this

<location path="AdminPages"><system.web><authentication mode="Forms"><forms loginUrl = "AdminLogin.aspx" name = "FORMSAUTHCOOKIE" path="/" timeout="30"></forms></authentication><authorization><deny users="*"/><!--allow users="*"/--></authorization></system.web></location>
Nov 18 '05 #3
The answer is to first make the subfolder an application root using iis properties. Then create a bin folder in the subfolder and copy the application's .dll into it.
Nov 18 '05 #4

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

Similar topics

4
4248
by: annoyingmouse2002 | last post by:
Hi there, sorry if this a long post but I'm really just starting out. I've been using MSXML to parse an OWL but would like to use a different solution. Basically it reads the OWL (Based on XML)...
7
3631
by: majid | last post by:
I want write a program with c# to pars a html file how ccan i do this with system.mshtml? or there is other way to do it p;ease help me?
25
12735
by: Ali-R | last post by:
Hi, Is there a parser which parses CSV files? Thanks for your help. Reza
12
12386
by: Janiek Buysrogge | last post by:
Hello, Does anyone know if there is a library or a sample project that can parse strings with mathematical expressions inside ? eg. string math = "(23 + 48) ^ 2 - (7.76 * 3.14)"; parser...
6
3861
by: ST | last post by:
Hi, I keep getting the parser error, and I have no idea why. I've tried a number of things including: 1)building/rebuilding about 100x 2)making sure all dll's are in the bin folder in the root...
5
9574
by: Kenneth P | last post by:
Hi, I get a Parser Error message when I try to start my asp.net app. Parser Error Message: Could not load type 'DiskoWeb.dLogin'. I have a code behind file and it's class name is dLogin. ...
2
2648
by: David Virgil Hobbs | last post by:
Loading text strings containing HTML code into an HTML parser in a Javascript/Jscript I would like to know, how one would go about loading a text string containing HTML code, so as to be able to...
2
2001
by: Cari Elf | last post by:
I wrote a template class that inherits from the PUG xml_tree_walker class so that I can load data from any XML file without having to write a parser for each one. template <class T> class...
1
1540
by: Torsten Bronger | last post by:
Hallöchen! I have a module parser.py in the same directory as the main module. In the main module, I import "parser". On Linux, this works as expected, however on Windows, it imports the stdlib...
0
7218
marktang
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,...
0
7370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5614
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,...
1
5035
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...
0
4701
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
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...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
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 ...
0
409
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...

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.