Parse error
-
Okay..I've had some strange problems. To summarize, here's whats happening. Here is the steps I go through. 1. Create new web on server (win 2K) 2. Make it an application using IIS 3. Give ASPNET account access to folder 4. Create new project in VS.NET in that location 5. Add Response.Write statement for the heck of it 6. Build 7. When I run the page, I get the famous error: Parser Error Parser Error Message: Could not load type 'CodyASPNETTest.WebForm1'. Source Error: Line 1: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="CodyASPNETTest.WebForm1" %> Line 2: Line 3: What in the world could be happening here? When I run it on my local machine, it works fine. All the IIS / Security settings are the same. The web folder is an applicaiton. The answer most people give in the forums is to compile but I obviously wouldn't POST here for something that trivial. Someone help please! Cody
-
Okay..I've had some strange problems. To summarize, here's whats happening. Here is the steps I go through. 1. Create new web on server (win 2K) 2. Make it an application using IIS 3. Give ASPNET account access to folder 4. Create new project in VS.NET in that location 5. Add Response.Write statement for the heck of it 6. Build 7. When I run the page, I get the famous error: Parser Error Parser Error Message: Could not load type 'CodyASPNETTest.WebForm1'. Source Error: Line 1: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="CodyASPNETTest.WebForm1" %> Line 2: Line 3: What in the world could be happening here? When I run it on my local machine, it works fine. All the IIS / Security settings are the same. The web folder is an applicaiton. The answer most people give in the forums is to compile but I obviously wouldn't POST here for something that trivial. Someone help please! Cody
It appears to be in your code behind somewhere as it can't load the "type". The aspx page is obviously trying to get the dll. is it a namespace thing or different class naming. should be namespace CodyASPNETTest { public class WebForm1 : System.Web.UI.Page { etc. etc. or You have published the dll to the bin folder? Hope this helps Steve He who laughs last thinks slowest.