Home > Net >  Failed to load file or assembly "Microsoft. CodeDom. Will. DotNetCompilerPlatform
Failed to load file or assembly "Microsoft. CodeDom. Will. DotNetCompilerPlatform

Time:09-21

Project in two ways
First: the project generated to bin file, and then the bin copy issued to the IIS folder to replace, accessed through the IIS sure
The second: the project published to the bin file, and then directly using IIS access, then submitted to the following error:



Now I don't know what went wrong?

CodePudding user response:

In your local find the DLL in the bin folder, copy to release folder can

But you'd better check the reference item reference model, best to copy to local mode

CodePudding user response:

reference 1st floor fonee response:
in your local bin folder to find the DLL, copy to the released folder can

But you'd better check the reference item reference model, best to copy to the local mode


Correction, I the environment here is the server, I this machine whether release or generate all no problem, and I give the correct server release folder copy down, deployed to my local is OK, I just tried the way you said, no, I can't copy the entire file in the past,

CodePudding user response:

O god!!!!!!

CodePudding user response:

Yarn of the great god, do you know what is the release folder?

Know why website released?

"The second: the project published to the bin file, and then directly with IIS access" this sentence several means, you explain!

CodePudding user response:

reference 4 floor fonee response:
o yarn of the great god, and do you know what is the release folder?

Know why website released?

"The second: the project published to the bin file, and then directly with IIS access" this sentence several means, you explain!


I mean, I choose a right click on the project, and then to release this folder by IIS release out, so you can't

CodePudding user response:

reference 5 floor boey_xuan reply:
I mean, I choose a right click on the project, and then to release this folder by IIS release out, thus no

If you don't have operation mistake, there is no question that how to do,
Take a closer look at your iis, pointing to the folder, folder released with you, whether peer

CodePudding user response:

refer to 6th floor fonee response:
Quote: refer to the fifth floor boey_xuan reply:

I mean, I choose a right click on the project, and then to release this folder by IIS release out, thus no

If you don't have operation mistake, there is no question that how to do,
Take a closer look at your iis, pointing to the folder, release folder with you, whether peer



The above is released folder
Below is the IIS browse folders

CodePudding user response:

refer to 7th floor boey_xuan response:
Quote: refer to the sixth floor fonee response:

Quote: refer to the fifth floor boey_xuan reply:

I mean, I choose a right click on the project, and then to release this folder by IIS release out, thus no

If you don't have operation mistake, there is no question that how to do,
Take a closer look at your iis, pointing to the folder, release folder with you, whether peer



The above is released folder
Below is the IIS browse folder

Then check your folder permissions, whether allocated iis access

CodePudding user response:

refer to the eighth floor fonee response:
Quote: refer to 7th floor boey_xuan response:

Quote: refer to the sixth floor fonee response:

Quote: refer to the fifth floor boey_xuan reply:

I mean, I choose a right click on the project, and then to release this folder by IIS release out, thus no

If you don't have operation mistake, there is no question that how to do,
Take a closer look at your iis, pointing to the folder, release folder with you, whether peer



The above is released folder
Below is the IIS browse folder

Then check your folder permissions, whether allocated iis access


This access is some, has been no problem before, was recently appeared this question,

CodePudding user response:

It's a surprise,,,
Try the nuget tidy your reference the package

CodePudding user response:

The
references to the tenth floor fonee response:
that is really strange,,,
Try the nuget tidy your reference bag


Please comment, this problem with the machine did not submit code? For example, I added a page, controller, add the table, but I don't have to submit, this should be no relationship?

CodePudding user response:

No, submitted to submit to the code management server, has nothing to do with your native compilation

CodePudding user response:

The
refer to 12 floor fonee reply:
no, submitted to submit to code management server, has nothing to do with your local compile


What reason can lead to this situation? Is the feeling

CodePudding user response:

That is likely to be on the server.net version does not support, there is no Microsoft. CodeDom. Will. DotNetCompilerPlatform 1.0.0.3, it was useless to upload directly, because it may also refer to the other DLLS, a lack of can't load,

CodePudding user response:

This morning, I back down a project down, and then release deployment in a new folder, there is no problem, after the test, found that was originally published IIS folder permissions issues, I've added a everyone permissions, and then to visit, is really very strange, a folder, released two different directories under IIS in the same folder, one does not have everyone permission is no problem, is another originally is normal, but it doesn't add everyone permissions appears the question,
I think everyone permissions should be inherited administrator authority? Why have an administrator authority also add everyone access?

CodePudding user response:

I mean, I choose a right click on the project, and then to release this folder by IIS release out, thus no


If you don't have operation mistake, there is no question that how to do,
Take a closer look at your iis, pointing to the folder, folder released with you, whether peer

CodePudding user response:

Although do not know how, I will reply to reply,,

CodePudding user response:

Find web. The configuration section under the config system. Codedom/compilers, this configuration version not 1.0.3.0 as a result, in many cases is webconfig server directly copied from other places, but the development environment with you, as a result, different

CodePudding user response:

Release folder properties - security - user permissions search EVERYONE all permissions to EVERYONEnullnullnull
  • Related