0

Publishing a MVC5-Project with VisualStudio2015 works fine, all files are created in a folder and the .dll appears in the subfolder /bin. I set up the project with a new ApplicationPool in my IIS7, connect with the created folder and start it . Now I get the message

file or assembly not found at /MyFolder.

When I look at the temporary files of the application (path is given in the error message), there is none.

Why does the IIS not find the assemblies in the publishing Folder?

The first assembly that is mentioned in the error message is a custom assembly which is added to the References of the MVC5 project.

Should I add the custom assemblies via Web.Release.config? How?

Michael Petch
  • 46,082
  • 8
  • 107
  • 198

1 Answers1

0

solved the problem. Open the ApplicationPool in the IIS7, then right-click on the name of the website -> advanced settings -> Enable-32-bit-Applications = true

[Could not load file or assembly or one of its dependencies. Access is denied. The issue is random, but after it happens once, it continues answered by Fragment