Runtime_error Posted December 11, 2003 Posted December 11, 2003 Ok this is what i have. I have a web application where any visitor can access pages except pages located in a directory called "SECURE". Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'namespace.Login'. Source Error: Line 1: <%@ Page language="c#" Codebehind="Login.aspx.cs" AutoEventWireup="false" Inherits="namespace.Login" %> Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > Line 3: <HTML> Hi, I am getting the above error when i try to secure a directory in my Web App. I have placed a second web.config file in the SECURE directory and set the authentication and authorisation nodes properly. When i request a page from the Secure folder the application redirects to the login page with the necessary querystring but the above error comes up. I have looked everywhere on the net and changed the settings of the directory to make it a web application but doesn't work :( Please help as this is quite important. Thanks Quote
Moderators Robby Posted December 11, 2003 Moderators Posted December 11, 2003 What is the namespace of this app? Is it called 'namespace' ? Quote Visit...Bassic Software
Runtime_error Posted December 11, 2003 Author Posted December 11, 2003 What is the namespace of this app? Is it called 'namespace' ? Lol no, its the name of the company which i am developing the app for so i couldn't put their name on. I need to figure this out cos i am on internship thingy :( Weird things are happening, The Virtual Directory from the IIS has disapeared but the project still works. When i try to recreate the virtual directory i am told that it needs to be a unique alias. Neways thats isnt the main issue. Quote
Moderators Robby Posted December 11, 2003 Moderators Posted December 11, 2003 Typically an error such as this "Could not load type 'namespace.Login'." is caused by a misspelled namespace or class. Did you create a new virtual directory for the new app? Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.