Problem statement:
I am setting up my project. When I build the project/solution. Project build successfully but I am getting this run time error
Could not load file or assembly 'XXXX' or one of its dependencies. The system cannot find the file specified.
Tried Solutions:
Below are the steps I have tried to resolve the issue:
I am blocked at this moment due to this issue.
Your kind guidance to resolve the issue is highly appreciated.Feel free to tag the developers who has faced and resolved the issues in the past.
Happy coding!
The problem is now addressed.
The root cause of the issue was wrong generation of the virtual directory, I have deleted all the applications from the Default web site and deleted all Application pool from IIS (Internet Information Service) Manager. and created them again.
Diagnosis of issue:
I was able to diagnose this issue after I have enable the Assembly binding logging, Below are the steps to enable the assembly login:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion
Add:
Make sure you include the backslash after the folder name and that the Folder exists .
You need to restart the program that you're running(Visual studio) to force it to read those registry settings. Don't forget to turn off fusion logging when not needed.