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. Parser Error Could Not load Type (HELP ME)

Parser Error Could Not load Type (HELP ME)

Scheduled Pinned Locked Moved ASP.NET
helpcsharpdesignsysadminsecurity
5 Posts 3 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.
  • K Offline
    K Offline
    kourvoisier
    wrote on last edited by
    #1

    The following is the error i keep getting: ------------------------------------------------------- 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 'upload'. Source Error: Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %> Line 2: Line 3: Source File: d:\webs\omixad\upload.aspx Line: 1 --------------------------------------------------------- I have a simple upload.aspx file that has a fileupload object on it and actually uploads files to the server. ---------------------------------------------------------------------------------------------- <code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %> <script> Untitled Page

    ------------------------------------------------------------------------------------------- The code behind file is upload.aspx.cs ----------------------------------------------------------------------- using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class upload : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void UploadBtn_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { //FileUpload1.SaveAs(@"C:\temp\" + FileUpload1.FileName);

    G M 2 Replies Last reply
    0
    • K kourvoisier

      The following is the error i keep getting: ------------------------------------------------------- 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 'upload'. Source Error: Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %> Line 2: Line 3: Source File: d:\webs\omixad\upload.aspx Line: 1 --------------------------------------------------------- I have a simple upload.aspx file that has a fileupload object on it and actually uploads files to the server. ---------------------------------------------------------------------------------------------- <code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %> <script> Untitled Page

      ------------------------------------------------------------------------------------------- The code behind file is upload.aspx.cs ----------------------------------------------------------------------- using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class upload : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void UploadBtn_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { //FileUpload1.SaveAs(@"C:\temp\" + FileUpload1.FileName);

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      The bin folder is located in the root folder of the application, e.g. /bin. If the root folder is at d:\webs\omixad then the bin folder is d:\webs\omixad\bin. Upload the dll files from the folder to a bin folder on the server located in the web root. --- b { font-weight: normal; }

      K 1 Reply Last reply
      0
      • G Guffa

        The bin folder is located in the root folder of the application, e.g. /bin. If the root folder is at d:\webs\omixad then the bin folder is d:\webs\omixad\bin. Upload the dll files from the folder to a bin folder on the server located in the web root. --- b { font-weight: normal; }

        K Offline
        K Offline
        kourvoisier
        wrote on last edited by
        #3

        again... there is no folder called bin in root folder of the application. I do not have a folder called bin and there are no .dll files. Someone help!

        1 Reply Last reply
        0
        • K kourvoisier

          The following is the error i keep getting: ------------------------------------------------------- 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 'upload'. Source Error: Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %> Line 2: Line 3: Source File: d:\webs\omixad\upload.aspx Line: 1 --------------------------------------------------------- I have a simple upload.aspx file that has a fileupload object on it and actually uploads files to the server. ---------------------------------------------------------------------------------------------- <code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %> <script> Untitled Page

          ------------------------------------------------------------------------------------------- The code behind file is upload.aspx.cs ----------------------------------------------------------------------- using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class upload : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void UploadBtn_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { //FileUpload1.SaveAs(@"C:\temp\" + FileUpload1.FileName);

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          Hi there, In fact, with the ASP.NET 2.0 you can deploy your web pages with the source code .cs without having to compile it to the assembly and put it in the bin folder. In this case, i would double check if the ASP.NET version 2.0 is used with the application on the remote server.

          K 1 Reply Last reply
          0
          • M minhpc_bk

            Hi there, In fact, with the ASP.NET 2.0 you can deploy your web pages with the source code .cs without having to compile it to the assembly and put it in the bin folder. In this case, i would double check if the ASP.NET version 2.0 is used with the application on the remote server.

            K Offline
            K Offline
            kourvoisier
            wrote on last edited by
            #5

            It is not used the vendor is still using asp.net 1.0. How do i get this to work with asp.net 1.0 thanks

            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