Guest herewegoagain Posted September 23, 2002 Posted September 23, 2002 I deployed my vb.net windows app. I then went to open one of the apps forms in visual studio and it indicated that "An error ocurred while loading the document. Fix the error and then try loading the document again. Ther error message follows: Specified cast is not valid." I set it back to debug and still the same result. Please help...If I import one of the forms into another project they work fine. Quote
*Gurus* Thinker Posted September 23, 2002 *Gurus* Posted September 23, 2002 Did you change any of the Imports or References for the project? Did you turn on Option Explicit? Sounds like the problem is either in the .vbproj or AssemblyInfo.vb file, but that is just a guess. Maybe open them in notepad and compare to working versions of those files in another project. Quote Posting Guidelines
Guest herewegoagain Posted September 23, 2002 Posted September 23, 2002 too funny Thinker you are just too ironic. Whenever I figure out the problem you are there with the answer LOL. ANyway I figured out what I did wrong. I was importing code to another project I had that I had previously used and somehow someway the codes got mixed into each other. I fixed it by creating a new project, importing the previously createcd project items into the new one and all was well. Hope the guy in that other thread sees this. Quote
*Gurus* Thinker Posted September 23, 2002 *Gurus* Posted September 23, 2002 Well, glad you figured it out. Until something like this happens to me, it is all just guessing. Sounds like you did the right thing. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.