Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Parse error

Parse error

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netvisual-studiosysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    codycaillet
    wrote on last edited by
    #1

    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

    T 1 Reply Last reply
    0
    • C codycaillet

      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

      T Offline
      T Offline
      The Limey
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups