“Could not load file or assembly or one of its dependencies”. You come across this error message a lot if you are .net developer.
Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format.
Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format
There are two solution’s for this problem
1 – Make sure you are referencing the correct dll and its there.
2 – if the above solution doesn’t work, You need to enable 32 bit application in your IIS application pool. Attached is the screen shot of where you’ll get that configuration.
Application Pool Advance Settings
Enable 32-bit Applications
Many a time while developing a web application you may come accross “Server application unavailable”
When you get this error in Windows XP make sure you have given ASPNET user sufficient rights on your physical application folder, it mainly requires read permission.
When you get this error in Windows 2003 server you can right click your virtual directory – permission – grant aspnet user sufficient rights there.
If the above solution doesn’t work here is another alternative,
You could try editing the Machine.config (located in
Look for a key userName=”machine”. If you set it to “SYSTEM”
instead the aspnet_wp.exe runs with a different user (with
Hope this helps