Base solution for your next web application
Open Closed

Compilation Error publishing latest version to Azure #801


User avatar
0
terry bentley created

I just upgraded to the latest version of Abp and Abp.Zero 0.8.1.0. This required an upgrade to .Net Framework 4.6.1 The app runs well on my local work station under both Visual studio 2013 and 2015. Unfortunately when I publish to Azure I get the following 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 code appropriately.

Compiler Error Message: CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

When I add this assembly reference entry to the web.config and republish I get just a 500 error with no further information. So I don't know whether it got any further or not as far.

Does anyone have any ideas. I don't like the idea of having to rollback my changes to Abp.

Thanks.


2 Answer(s)
  • User Avatar
    0
    terry bentley created

    I thought I may have missed one or more files in the "include in project" so I published the application to a file system and copied the published file structure to another workstation. I installed the application from scratch and was surprised that it worked right away. Obviously it is not missing files.

  • User Avatar
    0
    terry bentley created

    Was able to solve the problem. I published the web application to another local workstation and discovered that the "compilation" entry that I added to web.config to fix the first error resulted in a duplicate compilation entry (which was causing the 500 error on Azure) . I fixed this error and everything worked!