Mobile.Master问题,无法通过移动设备访问网站

时间:2019-05-03 16:15:07

标签: c# asp.net friendly-url

无论如何,我目前正在尝试为论坛编程: 在使用Admin.Master的计算机上,一切正常运行,但是 我无法使用使用Admin.Mobile.Master

的手机访问它

“ /”应用程序中的服务器错误。

此处不允许使用相对虚拟路径'Admin.Mobile.Master'。

描述:在执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪,以获取有关错误及其在代码中起源的更多信息。

Exception Details: System.ArgumentException: The relative virtual path 'Admin.Mobile.Master' is not allowed here.

源错误:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

堆栈跟踪:

[ArgumentException: The relative virtual path 'Admin.Mobile.Master' is not allowed here.]
System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +10059939

Microsoft.AspNet.FriendlyUrls.Abstractions.VirtualPathUtilityWrapper.ToAppRelative(String virtualPath) +14
Microsoft.AspNet.FriendlyUrls.Resolvers.WebFormsFriendlyUrlResolver.TrySetMasterPageFile(Page page, String masterPageFile) +49
Microsoft.AspNet.FriendlyUrls.Resolvers.WebFormsFriendlyUrlResolver.TrySetMobileMasterPageImpl(HttpContextBase httpContext, Page page, String mobileSuffix, Func`3 trySetMasterPageFileFunc) +167
Microsoft.AspNet.FriendlyUrls.Resolvers.WebFormsFriendlyUrlResolver.TrySetMobileMasterPage(HttpContextBase httpContext, Page page, String mobileSuffix) +80
Microsoft.AspNet.FriendlyUrls.Resolvers.WebFormsFriendlyUrlResolver.Page_PreInit(Page page, HttpContextBase httpContext) +101
Microsoft.AspNet.FriendlyUrls.Resolvers.<>c__DisplayClass1.<PreprocessRequest>b__0(Object sender, EventArgs e) +20
System.Web.UI.Page.OnPreInit(EventArgs e) +9883870
System.Web.UI.Page.PerformPreInit() +37
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +296

此致, 阿德里安

0 个答案:

没有答案