1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Net framework problem

Discussion in 'Windows 7' started by octaberg, 2011/02/01.

  1. 2011/02/01
    octaberg

    octaberg Inactive Thread Starter

    Joined:
    2011/02/01
    Messages:
    2
    Likes Received:
    0
    Hi there!

    I have a problem with my RAC time card program. Every time when i try to open the sofware i recieve this warning:

    microsoft.NET Framework

    The sistem cannot find the file specified

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.ComponentModel.Win32Exception: The system cannot find the file specified
    at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
    at RacTimeCardLauncher.Form1.Form1_Load(Object sender, EventArgs e)
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(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.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    RacTimeCardLauncher
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/octa/AppData/Local/Exhedra/RacTimeCard/RacTimeCardLauncher.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
    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.4927 (NetFXspW7.050727-4900)
    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.4927 (NetFXspW7.050727-4900)
    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.4927 (NetFXspW7.050727-4900)
    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.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.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>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.


    Can help me someone please? It's very important to me to fix this issue.
     
  2. 2011/02/01
    Capt. Jack Sparrow

    Capt. Jack Sparrow Inactive

    Joined:
    2010/08/04
    Messages:
    60
    Likes Received:
    3
    Hello,

    Lets us know what version of RAC Time scanner, what OS etc.
     

  3. to hide this advert.

  4. 2011/02/01
    octaberg

    octaberg Inactive Thread Starter

    Joined:
    2011/02/01
    Messages:
    2
    Likes Received:
    0
    hello

    I using windows 7 untouched 64 bit, and rac time card version: 0.01.04(is the latest version). And i have installed net framework version 4.
     
  5. 2011/02/24
    djProduct

    djProduct Inactive

    Joined:
    2011/02/24
    Messages:
    2
    Likes Received:
    0
    I had the same issue so I took the timecard application into .net reflector to see what the issue is.

    Here's the form_load code where the exception occurs...

    private void Form1_Load(object sender, EventArgs e)
    {
    this.Visible = false;
    StringBuilder builder = new StringBuilder();
    builder.Append( "-classpath ");
    builder.Append( ".; ");
    builder.Append(@ "resources\jars\axis.jar; ");
    builder.Append(@ "resources\jars\commons-discovery-0.2.jar; ");
    builder.Append(@ "resources\jars\forms-1.1.0.jar; ");
    builder.Append(@ "resources\jars\jaxrpc.jar; ");
    builder.Append(@ "resources\jars\JMF2_1_1e\lib\jmf.jar; ");
    builder.Append(@ "resources\jars\org.apache.commons.logging_1.0.4.v200706111724.jar; ");
    builder.Append(@ "resources\jars\saaj.jar; ");
    builder.Append(@ "resources\jars\wsdl4j-1.5.1.jar ");
    builder.Append( "RacTimeCard ");
    string arguments = builder.ToString();
    Process.Start( "javaw.exe ", arguments);
    this.Close();
    }

    The offending line for me was

    Process.Start( "javaw.exe ", arguments);

    due to the fact that the Java Runtime Environment wasn't in my path variable.
    I added C:\Program Files (x86)\Java\jre1.6.0_13\bin (in my case) to my path variable and poof, problem solved.

    Hope that helps someone.
     
  6. 2011/02/24
    djProduct

    djProduct Inactive

    Joined:
    2011/02/24
    Messages:
    2
    Likes Received:
    0

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.