C # console application failed to start

I am using Visual Studio 2008 Express and I tried to create a simple console application to test it. When I try to compile it it compiles fine, but when I try to run it it complains about the lack of a manifest file. As far as I know, VStudio should automatically create a manifest file, but since this is a simple console application without any dependencies, I asked VS to create an application without a manifest. It didn't change anything. It kept asking for a manifest file that said the application should have it. I remembered old errors from the vshost process from previous versions of VS Express, so I tried to disable it. When I did this, the error message changed to say that the application failed to load correctly and would close, as with the option to generate a manifest.and without it. I'm pretty sure this is some misconfiguration on VS Express on my part, but I couldn't find it. Has anyone had similar problems?

0


source to share


1 answer


I think you need to just create a manifest file. It seems like 30 seconds to set up and I'm sure you spent a lot more time googling and trying to fix the problem.

Here's the MSDN article on assembly manifests (in .NET 3.5):



http://msdn.microsoft.com/en-us/library/1w45z383.aspx

EDIT and note the person who rejected this answer: This is a helpful answer and I am telling you why. When implementing software projects, sometimes we all make mistakes and spend a lot of time trying to do something in a way that just doesn't make sense. This is a very important engineering skill to understand "I'm doing it wrong" as early as possible, and not trying to force an inappropriate solution.

+1


source







All Articles