Results 1 to 14 of 14

Thread: [RESOLVED] [2005] - Error while trying to run project

  1. #1

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Resolved [RESOLVED] [2005] - Error while trying to run project

    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?!

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] - Error while trying to run project

    What is causing the error? What line of code?

    Do you have Option Strict On set?

  3. #3

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [2005] - Error while trying to run project

    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.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] - Error while trying to run project

    Have you tried rebuilding the project? I don't mean just building again, I mean selecting the Rebuild option.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [2005] - Error while trying to run project

    yes

    and the final result it's the same...

  6. #6

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [2005] - Error while trying to run project

    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.

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] - Error while trying to run project

    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.

  8. #8

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [2005] - Error while trying to run project

    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!

  9. #9
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872

    Re: [2005] - Error while trying to run project

    is it possible the "running"-project is hanging in memory?
    Check the task-manager and end the task if it shouldn't be running.
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

  10. #10
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] - Error while trying to run project

    Quote Originally Posted by mickey_pt
    In the begining it works, but after i reboot my pc,
    It only happens if you reboot your PC?

    So, if you don't reboot your PC, it works fine?

  11. #11
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [2005] - Error while trying to run project

    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  12. #12

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [2005] - Error while trying to run project

    @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

  13. #13

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [2005] - Error while trying to run project

    I done this again and now some forms have a problem...

    The vb, designer.vb and resx are not "related"... See picture...
    Attached Images Attached Images  

  14. #14

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [2005] - Error while trying to run project

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width