Parser Error Message: Could not load type

  • Thread starter Thread starter Trevor Oakley
  • Start date Start date
T

Trevor Oakley

ASP NET
=======

I am learning ASP.NET, Visual C#, C# via some books; I have shared web
space using Windows, and STANDARD Visual C# (no server option on
SERVER EXPLORER).

ERROR
=====

My examples work offline, but when I FTP them onto the server I get an
error:

Parser Error Message: Could not load type

This is something connected with the "Inherit" in the page directive:

<%@ Page language="c#" Codebehind="Fortune.aspx.cs"
AutoEventWireup="false" Inherits="mywebapp.Fortune" %> <=== error

(this is from a book example).

IIS
===

I cannot control IIS on shared space, I read somewhere applications
must be registered in IIS. This option is not open to me. Also I
deleted the Webconfig file from Visual C# as it stopped everything
running (even the non Visual C# code).

Objects
=======

I want to build objects which can be used in several web pages, and
therefore a few cs modules.

Question
========

Does anyone know how to publish ASP NET Visual C# solutions on sever
space?
 
Hi,

You need to deploy your ASPX, ASAX files and Bin directory to virtual
directory and set the virtual directory as application (from IIS MMC).
It looks like you miss bin directory which contain DLL with all code
behind classes, thus you get could not load type error.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
 
Does this mean I need IIS control?

I find the language of ASPX good, but the Visual C# software is not liked by
me. Microsoft tries to control how an application is written, but most
developers want control over the application and then to code an interface
only to the DBMS, operating system, etc. But the Intellisense is good, but
it needs a different hot key like spacebar which is easier to hit.

I have asked the host (hostway.com) what is posssible for IIS control. The
company offers a dedicated server, which is priced almost the same as my
websites (in total) on shared space.

Trevor
 
Back
Top