e_FAIL 0x80004005

Whenever I try to create a new project in visual studio I get e_FAIL 0x80004005. I have no idea whats wrong.

Has anyone encountered this?

Thanks.

You appear to be running into a bug in Visual Studio…

   https://connect.microsoft.com/VisualStudio/feedback/details/810573/exception-from-hresult-0x80004005-e-fail

I’ve never ran into this before.  Developers reporting the issue in the link above think this is happening because their “Documents” directory is encrypted.  Once they remove encryption from that folder, then the problem is solved.  If in fact that is what’s happening to you.

When you click “New Project”, are you able to create a normal WP8 C# project?

I haven’t gotten it working yet but it looks like I didn’t have the windows phone sdk (nor the 64bit version) of windows installed. Once I correct these things I’ll post if that was the fix.

Just curious.  Which version of Visual Studio are you using?

I tried all of them, none worked. I’ll probably use pro once I reinstall. 

I’m concerned that you’re running into a different problem because our WP8 CoronaCards extension (the *.vsix file) should refuse to install if none of your Visual Studio applications include the WP8 tools.  So, if it is installing, then something else must be going wrong with Visual Studio.  Perhaps something got corrupted?  I’m not sure because I haven’t heard of any other Corona developers running into this problem before.  But from the link I posted above, native Windows developers sometimes run into this.

If your company makes less than $1 million a year, then you qualify for Microsoft’s free Visual Studio Community 2013 product.  At this point, we’re recommending that version of Visual Studio over the free Express editions to indie developers.  And as far as I can tell, the Community edition provides the same feature set as the Pro edition.  Just make sure to tick the WP8 tools checkbox at the beginning of the Visual Studio installation, which applies to the Pro edition as well.

I got it, it was the wrong version of (32bit) of windows. We would quality for the community product. Thanks.

So I was able to get it running but whenever I pasted my app’s files into the corona directory I couldn’t get visual studio to recognize them. Am I missing a step?

Thanks.

I think some of your asset files’s “Build Action” are not being set to “Content”.  This tells Visual Studio to include your asset files within the app bundle.  Have a look at steps 5 and 6 here…

   http://docs.coronalabs.com/daily/coronacards/wp8/portapp.html#copying-project-files

Note that you have to copy your files into your Visual Studio project’s “Assets\Corona” folder within the “Solution Explorer” panel, as documented above.  You can’t simply copy them to the folder within your project’s folder in Windows Explorer.  This is because you have to configure your Visual Studio project to explicitly include each of your files.

I missed that part. Thanks!

Great!  Happy to help!

You appear to be running into a bug in Visual Studio…

   https://connect.microsoft.com/VisualStudio/feedback/details/810573/exception-from-hresult-0x80004005-e-fail

I’ve never ran into this before.  Developers reporting the issue in the link above think this is happening because their “Documents” directory is encrypted.  Once they remove encryption from that folder, then the problem is solved.  If in fact that is what’s happening to you.

When you click “New Project”, are you able to create a normal WP8 C# project?

I haven’t gotten it working yet but it looks like I didn’t have the windows phone sdk (nor the 64bit version) of windows installed. Once I correct these things I’ll post if that was the fix.

Just curious.  Which version of Visual Studio are you using?

I tried all of them, none worked. I’ll probably use pro once I reinstall. 

I’m concerned that you’re running into a different problem because our WP8 CoronaCards extension (the *.vsix file) should refuse to install if none of your Visual Studio applications include the WP8 tools.  So, if it is installing, then something else must be going wrong with Visual Studio.  Perhaps something got corrupted?  I’m not sure because I haven’t heard of any other Corona developers running into this problem before.  But from the link I posted above, native Windows developers sometimes run into this.

If your company makes less than $1 million a year, then you qualify for Microsoft’s free Visual Studio Community 2013 product.  At this point, we’re recommending that version of Visual Studio over the free Express editions to indie developers.  And as far as I can tell, the Community edition provides the same feature set as the Pro edition.  Just make sure to tick the WP8 tools checkbox at the beginning of the Visual Studio installation, which applies to the Pro edition as well.

I got it, it was the wrong version of (32bit) of windows. We would quality for the community product. Thanks.

So I was able to get it running but whenever I pasted my app’s files into the corona directory I couldn’t get visual studio to recognize them. Am I missing a step?

Thanks.

I think some of your asset files’s “Build Action” are not being set to “Content”.  This tells Visual Studio to include your asset files within the app bundle.  Have a look at steps 5 and 6 here…

   http://docs.coronalabs.com/daily/coronacards/wp8/portapp.html#copying-project-files

Note that you have to copy your files into your Visual Studio project’s “Assets\Corona” folder within the “Solution Explorer” panel, as documented above.  You can’t simply copy them to the folder within your project’s folder in Windows Explorer.  This is because you have to configure your Visual Studio project to explicitly include each of your files.

I missed that part. Thanks!