Joris Vanhecke
Joris Vanhecke

Reputation: 21

ASP.NET Parser Error:Could not load type (LINE 1)

I'm a newb to ASP.NET and I made an app in VS2010 using NET 4.0 (Working all fine in debug mode) I tried to host my app @ aspspider and I'm getting the following error:

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 'AuthStealerPanel._Default'.

Source Error:

Line 1:  <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="AuthStealerPanel._Default" %>

I also tried to rebuild the .dll and upload it to the /bin/ and application's root. Any help? :>

Upvotes: 2

Views: 6636

Answers (2)

MikeTeeVee
MikeTeeVee

Reputation: 19402

If you're seeing this error, then you haven't set up your site in IIS yet. IIS is short for "Internet Information Services" and it's basically your webserver for .net web apps, like Apache would be for php. Every hosting provider is different, but you will always have a folder you publish your website to. You have to configure IIS to recognize this folder as a virtual directory and allow your applications to run in there.

For example:

With GoDaddy, you have to go to "IIS Managment", click "Create" to create the virtual directory in IIS (doesn't matter if the directory already exists in the folder structure), and check the box that says "Set Application Root" - this tells IIS you'll be running asp.net code in there.

With DiscountAsp.net you would go to the "Web Application Tool", select the folder you've published to and click on "Install Application". This will associate the directory with a new virtual directory in IIS and set it up to run asp.net code.

I haven't used other hosting providers, so these two are all I know.

Upvotes: 0

Harsh Baid
Harsh Baid

Reputation: 7249

When you make any changes in page-behind code file then you also have to upload the .aspx file and if your project have User Controls then upload Masterpage and UserControls files also

Upvotes: 1

Related Questions