Now i can't run my project from the ide...
When i click the start debugging i get this message:
"Error while trying to run project: error loading file or assembly..."
How can i fix it?!
Printable View
Now i can't run my project from the ide...
When i click the start debugging i get this message:
"Error while trying to run project: error loading file or assembly..."
How can i fix it?!
What is causing the error? What line of code?
Do you have Option Strict On set?
none line...
since yesterday in this project i have this message... the file is compiled\builded successufly and i can run the application in the debug folder...
The complete message (the translation maybe isn't the best):
Error while trying to run project: error loading file or assembly 'MyApp' or one of the dependecies. it was expected that the module had a manifest of the assembly.
Have you tried rebuilding the project? I don't mean just building again, I mean selecting the Rebuild option.
yes
and the final result it's the same...
I don't see what's wrong...
I click in the start debugging the build suceeds, but then this error pop up...
I allready, build, rebuild and clean...
The only way that i have to run my project it's using the debug\release folder.
Maybe there is something wrong with the solution file.
Create a new solution and remove the default Form1.
Add your existing forms/modules/etc to the new solution, save it with the same name as the previous one, thus overwriting the existing solution file, and run to see what happens.
I forgot to tell that i all ready done that...
In the begining it works, but after i reboot my pc, the problem came back. Funny that this only happens in this solution. I have others and everything works fine!
is it possible the "running"-project is hanging in memory?
Check the task-manager and end the task if it shouldn't be running.
It only happens if you reboot your PC? :confused:Quote:
Originally Posted by mickey_pt
So, if you don't reboot your PC, it works fine? :confused:
This is an error when you run the executable as you are mentioning that it builds fine but errors right after would suggest its not building completely.
@hack
If i create a new solution and add all the files it works fine, until i reboot my pc, after that the error come back...
@RobDog888
I don't think so, because when i build,rebuild,clean it doesn't return any type of error or warning, and then i run the executable (in the release folder), and everything works fine
I'll try again to create a new solution, what files should i copy... All the form's, modules and classes, i have a dataset, and i have settings...
Thks
I done this again and now some forms have a problem...
The vb, designer.vb and resx are not "related"... See picture...
Solved...
If i copy the vbproj file, the error cames back...
If i don't copy the vbproj file, i can't edit some of the forms...
So i edit the vbproj file and add some dependencies of the forms, and everything is working now.
Thks