Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 21st, 2008, 06:27 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default Getting a C# program with a manifest file to run i

Getting a C# program with a manifest file to run in the debugger
----------------------------------------------------------------

How do I declare a manifest file in the Visual Studio IDE for C# so that I can debug the resulting code?

I have been able to add the manifest file, to the exe after I have built the program. But then, when I try to debug my C# code, the program crashes at the point where a function call is made that is used by the DLL that the manifest file calls.

I tried the first in the "How to embed a manifest in an assembly: let me count the ways..." (http://blogs.msdn.com/cheller/archiv...-the-ways.aspx) link and it failed to produce an executable that I could step through the IDE debugger. And I followed the steps carefully and I had no build errors.

I followed the steps outlined here for including a manifest file:
http://support.microsoft.com/kb/944276

The executable runs from the command line after I include the manifest file. But when I open up the debugger and try to run the program through the IDE, it has the same problem as if it does not recognize the manifest file linked to it.

The way I link the manifest file to the executable is by first building the executable and then I close the project. Then I open the executable as a separate file and then I attach the manifest file as a resource to the executable.

The executable can run then, by running it from an explorer window (command line) but if I open the project again, it will not work.

I got the execuatable produced in the "let me count the ways" to work the same way. But I need to step through the code.








Similar Threads
Thread Thread Starter Forum Replies Last Post
run a program with VBA wdepreter Excel VBA 8 February 7th, 2007 08:33 AM
How to run another .exe from my program shivendra C++ Programming 1 July 28th, 2006 04:56 AM
Auto Run Program echovue Visual Basic 2005 Basics 0 February 13th, 2006 06:31 PM
i can not run external program. pumpui VS.NET 2002/2003 0 December 5th, 2004 02:08 PM
Run program from another computer ngthhoang Visual C++ 3 June 27th, 2004 04:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.