webforms-routing

Asp.net 3.5 Sp1 Sub-Domain routing?

我的未来我决定 提交于 2019-12-08 09:53:07
问题 I was wondering is there is a way to introduce sub-domains in Asp.net 3.5 routing All i found as this http://blogs.securancy.com/post/ASPNET-MVC-Subdomain-Routing.aspx But i was looking for something more complex to allow doing wild-card sub-domains Any Help ? 回答1: Should be no problem, even with that sample. In this case, just add a wildcard to your DNS "*.yourdomain" and use the 'default' statement from the switch to handle wildcards. In other words, change the sample for the Global.asax to

Razor view Type does not inherit from 'System.Web.WebPages.WebPage'

做~自己de王妃 提交于 2019-12-07 04:56:22
问题 I have a problem with configuring asp.net mvc application: [HttpException (0x80004005): Type 'ASP._Page_Currency_Index_cshtml' does not inherit from 'System.Web.WebPages.WebPage'.] System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +11454171 System.Web.WebPages.BuildManagerWrapper.CreateInstanceOfType(String virtualPath) +347 System.Web.WebPages.VirtualPathFactoryManager

Razor view Type does not inherit from 'System.Web.WebPages.WebPage'

↘锁芯ラ 提交于 2019-12-05 12:09:40
I have a problem with configuring asp.net mvc application: [HttpException (0x80004005): Type 'ASP._Page_Currency_Index_cshtml' does not inherit from 'System.Web.WebPages.WebPage'.] System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +11454171 System.Web.WebPages.BuildManagerWrapper.CreateInstanceOfType(String virtualPath) +347 System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType(String virtualPath) +239 System.Web.WebPages.WebPageHttpHandler.CreateFromVirtualPath(String