Mobile.Master проблемы, не могу получить доступ к сайту на мобильном телефоне - PullRequest
0 голосов
/ 03 мая 2019

В настоящее время я пытаюсь запрограммировать форум: Все отлично работает на компьютере, который использует Admin.Master, но Я не могу получить к нему доступ с моего мобильного, который использует Admin.Mobile.Master

Ошибка сервера в приложении '/'.

Относительный виртуальный путь «Admin.Mobile.Master» здесь не разрешен.

Описание: во время выполнения текущего веб-запроса произошло необработанное исключение. Пожалуйста, просмотрите трассировку стека для получения дополнительной информации об ошибке и о том, где она возникла в коде.

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

С уважением, Адриан

...