• 0

C# Error: Exception from HRESULT: 0x80131047


Question

Any idea whats going on here. When I try to debug and run the program the above mentioned error code pops up. The only thing that I figure out is that it was unable to load a dependence, and the assembly or codebase was invalidly named. ??? Any help would be greatly appreciated. Thanks in advance.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

I repaired the installation of MS C# Express. Just to make sure there wasn't something wrong with a file or something. Anyways, no luck so far. I ran an old program, and it runs fine with no error messages. It has to be something in the code.

Link to comment
Share on other sites

  • 0

Is it a web app or a WinForms app?

If it's a web app make sure you don't have any references to the namespace or any compiled dlls within your Register statements.

If it's a WinForms app make sure you haven't 'Referenced' or 'Using' any references to your namespace / any compiled versions in dlls.

From a past experience with this, I believe that the problem can be interpreted as 'recursive code inclusion', although someone correct me if I'm wrong.

Chris

edit: sorry, just realised the first part repeats the steps in the linked post.

Link to comment
Share on other sites

  • 0

Thanks for the help. :) There aren't any .dll files in the project yet. It's a Windows Forum Application.

I created a brand new project with no spaces in the name, and it works fine. It has to do with something about the name of the project with spaces in it. In fact, I used underscores instead of spaces to remedy the situation, and it gave me the same error. I'm sure there some logical explanation for it. It's working now.

Thanks for the help. :)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.