Namespace specified in Global.asax.cs is not found !

May 9 2010 6:19 AM
Hi All,

I am making a website using MVC design pattern by browsing couple of forms I came to know to use WSCF I need to include Global.asax file and need to put some methods in the same.

The issue is that the solution is giving a compile time error stating the namespace could not be loaded.

Here is the global.asx entry :

<%@ Application Language="C#" Inherits="Test.web.Global">
the code is asax.cs file is :

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using Microsoft.Practices.CompositeWeb;
using Microsoft.Practices.CompositeWeb.Interfaces;

namespace Test.web
{
public class Global : WebClientApplication
{

protected void Application_End(object sender, EventArgs e)
{
}
private void Application_Error(object sender, EventArgs e)
{
}

}
}


This Test.web.Global namespace is not recognized in the global file !

Also some times .. while creating Global.asax file it doe snot create code behind file !

Thanks in advance.

Thanks
Divya

Answers (1)