index > Installing and Registering Visual Studio Express Editions > error when running after compiling....

error when running after compiling....

 

ok i have another question i downloaded the blackjack starter kit and made a few changes and after i compiled it and ran the the program i got this this message... all the pictures are even in order and there!!!

Please Help! asap!

Thanks!

 

unhandled exception has accurred in your aplication

If you click continue the application will ignore this error and attempt to continue.

If you click quit, the application will close Immediately

..\. \images\cards\cardskin.png

 

************** Exception Text **************
System.IO.FileNotFoundException: ..\..\Images\Cards\cardSkin.png
   at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
   at System.Drawing.Image.FromFile(String filename)
   at CardGame.BlackJackForm.LoadCardSkinImages()
   at CardGame.BlackJackForm..ctor()
   at CardGame.StartForm.NewGameBtn_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Deathm8sblackjack
    Assembly Version: 1.0.2425.38471
    Win32 Version: 1.0.2425.38471
    CodeBase: file:///C:/Documents%20and%20Settings/Default/Desktop/New%20Folder%20(7)/Deathm8sblackjack_1_0_0_0/Deathm8sblackjack.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>


nobs411
The exception that you are getting is that the program is not able to find the picture using the path specified. This path is contained in Settings.settings file. You might have done something to change the path so that the program is not able to find the resource. Was the program able to run and compile right after installation?


Remember to mark the best replies as answers!
Weston Hutchins - MSFT

I tried to compile the program without makin any changes

and it was doing the same thing

nobs411
reply 3

You can use google to search for other answers

 

More Articles

• Installation of VB Express fails
• VBexpress download is the wrong size and incomplete
• VB 2005 Express FREE?
• Bug report: Debugging Flag not always set
• Form Designer
• Linker errors when building samples...
• interface language-mix
• Windows Form Designer Generated Code
• Lost Key
• Timer not working in dll called from Web Service
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Bad Advice - Don't use Roxio
• Visual Studio 2005 = very unstable !!!
• Registration process reveals information
• ATTENTION VISUAL STUDIO EXPRESS BETA USERS
• Encrypting text, 15 characters max
• Running Visual Basic 2005 Express editio
• Cannot UNINSTALL Visual Studio 2005 Expr
• Variadic Macros Vs Intellisense
• howcan I install the Document Explorer f
• Changed data saved, however old data ret
• [C++ Express] Add Resource disabled?!
• Limitations on Express Edition
• Free Books with registration of Visual W
• Unable to uninstall Express Edition thor
• Visual J# Express Edition Beta 2.... SWi

Hot Articles

• Free Learning Videos on Express Web Site
• Getting login name
• set up help, PLEASE
• Error when adding a new Content page
• Setup is loading installation components
• Strange behaviour when accessing Excel V
• Do you recommend that I use the free VB
• Uninstalling Visual C# 2005 Express Edit
• Install C# Express Edition?
• Security problems with VB Beta 2
• Visual C# 2005 Express Fails to Install
• Error Installing Visual C# Express
• Solution to download e-book from Microso
• My app only works in computers with VC++
• Cannot install SQL Server 2005 Express E

Recommend Articles

• Can't run Win32 application on Visual C+
• Express Editions and source control
• VS C++ EE won't install
• want Visual Studia .NET 2005 Express
• .NET Framework 1.1
• HTTP Error 403 - Forbidden
• visual studio express and admin rights
• Can't connect to ODBC using VB and SQL 2
• Can't install VB.NET Express (or any oth
• VB 2005 Express Error Message Loading Pr
• Can VC++ Express generate x64 code?
• Ask for login when running in Mozilla Fi
• Installation Error..HELP!!!
• Using VB Express with SQL Server Express
• Trouble with C++ Express Install