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
All assemblies are up to date and everything works on localhost , I can not reproduce this error.CS0103: The name 'model' does not exist in the current context
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.