FriendlyUrls do not work for me in hosting

1

I have a web application that works perfectly on my computer, but when I upload it to the hosting, it does not work showing the message below.

My team has Visual Studio 2017, in Windows 10 with IISExpress.    The FriendlyUrls version is 1.0.2 (so the message gives me) if I change the package to the FriendlyUrls version to 1.0.0 it does not send the message, but the redirect does not work.

ERROR MESSAGE

  

Server Error in '/' Application. Object reference not set to an   instance of an object. Description: An unhandled exception occurred   during the execution of the current web request. Please review the   stack trace for more information about the error and where it   originated in the code.

     

Exception Details: System.NullReferenceException: Object reference not   set to an instance of an object.

     

Source Error:

     

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

     

Stack Trace:

     

[NullReferenceException: Object reference not set to an instance of an   object.]
  Microsoft.AspNet.FriendlyUrls.FriendlyUrlsModule.RedirectToFriendlyUrl (HttpContextBase   httpContext, IFriendlyUrlRoute route, IVirtualPathUtility   virtualPathUtility) +373
  Microsoft.AspNet.FriendlyUrls.FriendlyUrlsModule.b__0 (Object   sender, EventArgs e) +171
  System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute ()   +141 System.Web.HttpApplication.ExecuteStepImpl (IExecutionStep step) +48 System.Web.HttpApplication.ExecuteStep (IExecutionStep   step, Boolean & completedSynchronously) +71

     

Version Information: Microsoft .NET Framework Version: 4.0.30319;   ASP.NET Version: 4.7.3130.0

    
asked by user96060 06.08.2018 в 14:17
source

0 answers