1
我的global.asax文件。好像asp.net global.asax.cs和global.asax的区别
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
namespace xxxx
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
}
}
}
,但是当我看到别人Global.asax文件似乎
<%@ Application Language="C#" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Diagnostics" %>
<script runat="server">
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
}
</script>
为什么我的Global.asax文件是从他们有什么不同?我使用4.0框架。当我尝试路由时,我的项目不能看到我的路由规则。
谢谢,但我有关于路由的问题。我的网页无法访问我的路由器,并显示此消息“在路由集合中找不到名为'xxx'的路由”..我认为它有关它。可能吗? – serdar 2013-04-21 00:41:27
您应该用您的完整路线Global.asax/RegisterRoutes和完整堆栈跟踪更新您收到的错误的问题。 – 2013-04-21 09:28:48