Whenever I click debug on any project it gives me this error message, even with projects with no code! Any help is appreciated!
Code:
Error while trying to run project: Could not load file or assembly '"Project name"' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
VS 2012
Windows 8
x64
------
It worked fine yesterday, I don't know what's happened.
Thanks. @Jorndel @Horror
Please help
Please help me.
Without seeing your code that fails, not much anyone can do to help. Your error refers to an assembly failing to load properly. This could due to you using the Assembly namespace and trying to invoke something like Assembly.Load, Assembly.LoadFrom, etc. Without code, not much anyone can do but tell you to make sure you are properly calling the functions that are being used to load the assembly that is failing.
Without seeing your code that fails, not much anyone can do to help. Your error refers to an assembly failing to load properly. This could due to you using the Assembly namespace and trying to invoke something like Assembly.Load, Assembly.LoadFrom, etc. Without code, not much anyone can do but tell you to make sure you are properly calling the functions that are being used to load the assembly that is failing.
That's the thing, there isn't any code! I'd open a brand new project, debug a black form and it'd do it.
Reinstall Vb...
Originally Posted by timiostimio
Reinstall Vb...
The last thing I want to do. But I guess I will.
Just a standard project or did you add some theme shit to it? If is just a normal project with nothing added then yea you probably need to reinstall or run the repair thing from Add/Remote programs for VS.
I have had this problem, its cause your using vs 2012, if u ever loaded old resources from vb 8, 6, or 5 then it makes the files corrupted and then u have to either repair or replace it.
EDIT : if this isn't the problem, then it could be that you'r using visual studio which i have heard gives many problems, i would have just d+installed everything seperate
Try edit the project name..
I got the same problem and i changed the project name as the error says and the problem solved
Try it
Check the configuration and designer code for inconsistencies with the project name and the rootname space, as well as the project's assembly information, ensure there are no incompatible symbols are characters. Also, make sure there is no built instance of the application running while you debug/build it.