Reputation: 115
I am trying to deploy the Asp.net web application using Visual Studio web setup project.Every thing is going fine when trying to access the application from the browser i am getting this error..
Could not load type namespace.global.
Here is my global.asax file ..
<%@ Application Codebehind="Global.asax.cs" Inherits="DCMSWebSetup.Global" Language="C#" %>
And here is my global.asax.cs ..
namespace DCMSWebSetup
{
public class Global : System.Web.HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
}
I searched on the web and tried following suggestions but in vain only..
1.Changed Codebehind to CodeFile
2.Checked Output path to /Bin which was already there only.
3.Changed Copy to output directory to copy always.
All these options are not working in my case.
What else can be wrong?
Upvotes: 1
Views: 1610
Reputation: 11
I used InstallShield to deploy my website on IIS and i got this kind of message. I discovered that my package got the good .dlls but not in the good place. I needed my dlls in /bin subdirectory. InstallShield did not respect that. That's why i had this message about "unable to load type ...global".
Upvotes: 1