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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Could not load type ... Error

Could not load type ... Error

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasesysadmin
2 Posts 2 Posters 1 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hello I am building ASP.NET web application. I have built the application locally and debugged it in Debug mode. After the work is done, i have debugged the same in "Release" mode and am trying to deploy the same on a remote server. It gives me the following error : Parser Error Message: Could not load type 'usro.SuperAdmin.Index'. Source Error: Line 1: <%@ Page language="c#" Codebehind="Index.aspx.cs" AutoEventWireup="false" Inherits="usro.SuperAdmin.Index" %> Line 2: <%@ Register TagPrefix="uc1" TagName="top" Src="../includes/control/top.ascx" %> Line 3: <%@ Register TagPrefix="uc1" TagName="bot" Src="../includes/control/bot.ascx" %> Well ... it seems that it is not getting reference to the Code Behind page. i tried uploading a sample Hello world file on the server with a code behind .... it gave me the same error. I removed the code behind and inherits and put the code in the and it worked. So it seems that the problem is in the codebehind and/or inherits. Now i have deleted the contents of the bin folder and uploaded the dll built in release mode again. Am i missing something?? Please help Regards Sunil Jambekar </x-turndown>

    U 1 Reply Last reply
    0
    • L Lost User

      Hello I am building ASP.NET web application. I have built the application locally and debugged it in Debug mode. After the work is done, i have debugged the same in "Release" mode and am trying to deploy the same on a remote server. It gives me the following error : Parser Error Message: Could not load type 'usro.SuperAdmin.Index'. Source Error: Line 1: <%@ Page language="c#" Codebehind="Index.aspx.cs" AutoEventWireup="false" Inherits="usro.SuperAdmin.Index" %> Line 2: <%@ Register TagPrefix="uc1" TagName="top" Src="../includes/control/top.ascx" %> Line 3: <%@ Register TagPrefix="uc1" TagName="bot" Src="../includes/control/bot.ascx" %> Well ... it seems that it is not getting reference to the Code Behind page. i tried uploading a sample Hello world file on the server with a code behind .... it gave me the same error. I removed the code behind and inherits and put the code in the and it worked. So it seems that the problem is in the codebehind and/or inherits. Now i have deleted the contents of the bin folder and uploaded the dll built in release mode again. Am i missing something?? Please help Regards Sunil Jambekar </x-turndown>

      U Offline
      U Offline
      User 377904
      wrote on last edited by
      #2

      Sunil, It might be reference problem, when you compile using release option, VS.NET creates a dll in the release folder copy those files into bin folder, or check out the reference you are setting in. After you compile it you re reference with the compiled dll which are there in the release folder. Dependency is not proper i feel. let me know this helps you. Regards Sreenath

      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