Compilation Error - Azure - CS0103

1

I'm having a problem hosting a MVC 5 website, in my VS2013 it works on localhost usually everything 100%, but when uploading to a server this error appears:

  

Compilation Error Description: An error occurred during the   compilation of a resource required to service this request. Please   review the following specific error details and modify your source   code appropriately.

     

Compiler Error Message: CS0103: The name 'Url' does not exist in the   current context

I thought it might be something with RoutUrl , but when trying to manually access another link, the same error appears with the same code, but different situation:

  

CS0103: The name 'TempData' does not exist in the current context

or

  

CS0103: The name 'model' does not exist in the current context

All assemblies are up to date and everything works on localhost , I can not reproduce this error.

I have already tested on two different servers and are giving the same error. At the moment I'm using AZURE where deploy leaves everything much simpler ....

Would anyone know why? I guess it's some reference. Being that some time ago I had already done a test in the Azure also and everything worked. Now after some updates that started to give this error in a new register that I made to be the definitive one.

    
asked by anonymous 13.11.2015 / 15:17

1 answer

0

@William, see if in the project references, the System.Web dll is like Copy Local: True. Also, in your website / webapp settings if the version of the .NET Framework is the same as you are uploading.

    
25.11.2015 / 12:12