I have just integrated another project pages and its dlls into my existing project\'s Bin/ folder. My project framework is 3.5. When i am trying to build the project or solu
Have got recently the same error when publishing site from debug PC onto the server. Changing option to true solved the issue.
<DeleteExistingFiles>True</DeleteExistingFiles>
file ~\Properties\PublishProfiles\FolderProfile.pubxml
In my case, to solve the problem, I needed to disable the "PrecompileBeforePublish" and delete the bin folder as the image below.
step by step to set
In my case the problem occurred in a virtual application's bin folder. Looking into this bin-folder you will probably see two files (an information I found here):
Removing these resolves the error. The App_global.asax.dll is generated at runtime too which causes the problem. I am however still investigating how these files got there, so comments are definitely welcome!
I suggest you go to the path: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
and clear the all the temporary files of your application, build your solution, and then run it!
My problem was I referenced .net standard project on my .net framework project, not sure where it got conflicted.
In my case, i have added in my folder bin a file with name "App_global.asax.compiled" delete only this files and its work.
View Image