Compilation Error - Azure - CS0103

Asked

Viewed 69 times

1

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

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 appropriate code.

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

Then I thought it might be something with the RoutUrl, only when trying to manually access another link appears the same error with the same code only 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 the assemblies are up to date and everything works on localhost, I cannot reproduce this error.

I have already tested on two different servers and are giving the same error. I am currently using AZURE where deploy makes everything much simpler....

Would anyone know why? I imagine it’s some reference. Being that some time ago I had already done a test in Azure also and everything worked. Now after some updates that began to give this error in a new registration that I did to be the definitive.

1 answer

0

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.