Precompiling with a non-updatable view is not a precompiled exception

So, I created a new MVC 4 intranet project in VS 2013. I didn't make any changes to the project and published it to Azure with the following settings:
- Deleting additional files at destination
- Pre-compilation at publish time -> unchecked Allow pre-compiled site to update
- Exclude files from App_Data folder p>

And then when I go to the site, I got "File / Views / Home / Index.cshtml" was not precompiled and could not be requested. "

Please note that if I leave to allow the precompiled site to be updated then I have no problem. Is this function broken or something?

+3


source to share


2 answers


I got this problem when I had a third party DLL installed in the GAC (Global Assembly Cache). The publication did not copy the dll to the bin. The exception was a bit overlooked and only happened on pages that referenced dlls (controls in markup). It did work with the ability to check for the updated version.



Now I have removed the external dll from the GAC and I have no problem with publishing settings.

0


source


Repeat this process one more time if unsuccessful.



  • Republish the code again.
  • Before copying any files to the destination, delete only the root / bin folder .
  • Copy only bin folder from local folder to destination folder.

    Copying other files to the destination will be west of the time if you already did.

0


source







All Articles