Last post Apr 29, 2020 02:52 AM by YihuiSun
Apr 27, 2020 10:21 PM|unloadble|LINK
hi guys i started make web with asp.net mvc code first
i have a solution and 2 project
Datalayer and web project
now i need to enabled migration but i see this error :
i try to :
Enable-Migrations -ProjectName DataLayer -ContextTypeName MyCMSContext
but non of them is not work
Apr 27, 2020 10:40 PM|PaulTheSmith|LINK
The error message says that you are loading from a network source and gives you a url to explain more about the problem. Have you tried that? What happened?
Apr 27, 2020 10:45 PM|unloadble|LINK
Apr 28, 2020 04:53 AM|PaulTheSmith|LINK
i cant fix this problem with it
Have you checked each of the referenced assemblies as the article that the large purple box links to suggests you do?
What assemblies does 'DataLayer' reference? It would seem that one of them has been downloaded from somewhere.
Make a note of the location of all the referenced assemblies. Close Visual Studio. Use Explorer to get the properties of each of the assemblies that you noted. If they are blocked then click the 'Unblock' button.
I have had this sort of problem in the past and it can be quite a pain because it is not necessarily one of the directly referenced assemblies. It could be one that they, in turn reference. My memory (it was a long time ago and I am old) was that I ended
up installing and running process explorer to see exactly which files are being touched and which one causes the problem.
This tool may also be useful https://docs.microsoft.com/en-us/dotnet/framework/tools/fuslogvw-exe-assembly-binding-log-viewer
Apr 29, 2020 02:52 AM|YihuiSun|LINK
I checked your error message and found this.
Therefore,according to the error message you gave, you can add the following code in the configuration file:
You can refer to this document for more information.