Permalink to object Not set error with [No matching source strings]

I am happy to develop an MVC / Sitecore application and everything was fine.

However, all of a sudden I got an error saying what I have Object reference not set to the instance of an Object

. The error page was pointing to a line that had nothing else than a closing parenthesis.

I tried to remove lines of code in the view that might throw the error, but the error remained at the same closing parenthesis.

So I have commented out the entire block, including the final shape. Now I am getting the following error:

Server error in application "/".

An object reference is not set on an object instance.

Description: An unhandled exception occurred.

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

Source error:

[No matching source lines]

Source File: c: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET Files \ root \ 1a47b3ff \ 21a05ef3 \ App_Web_kieomnc4.1.cs Line: 0

[NullReferenceException: Object reference not set to instance object.]
ASP._Page_Views_MyCompany_Common_AddressEdit_cshtml.Execute () at c: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET Files \ root \ 1a47b3ff \ 21a05ef3 \ App_Web_pjrqnchq.1.cs: 0
System.Web.WebPages.WebPageBase.ExecutePageHierarchy () +279
System.Web.Mvc.WebViewPage.ExecutePageHierarchy () +124
System.Web.WebPages.WebPageBase.Execudering startPage) +109
System.Web.Mvc.ViewResultBase.ExecuteResult (ControllerContext context) +379 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive (IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +108
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList


1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive (IList 1 filter, ActionResult actionResult) +97 System.Web.Mvc.ControllerActionInvoker.InvokeAction (ControllerContext controllerContext, String actionName) +8791 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList



I turned off the WWW service completely, closed Visual Studio, deleted all temp files from the ASP.NET temp folder, restarted the service, rebooted Visual Studio, but still remains.

Can anyone make any suggestions?

+4


source to share


2 answers


In case anyone else stumbled upon this, I deleted the website in IIS and then recreated it and the error went away. The same files in one place, only IIS.



+1


source


  1. Open IIS
  2. Stopped IIS server
  3. Delete the folders in the following directory: c: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ ASP.NET Temporary Files \ root
  4. Run a backup of the IIS server.
  5. Try loading your page again.


0


source







All Articles