Results 1 to 13 of 13

Thread: [RESOLVED] App runs on my computer, but now others

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2010
    Posts
    24

    Resolved [RESOLVED] App runs on my computer, but now others

    Okay, so here is a strange one. I've been working on this application for a few days now, and have had people beta testing it day by day. well last night I did a pretty big update on it, and release the beta to a few people, all with different architectures and other devices, and now it wont run on any of there computers. It begins to load, and then just closes. No errors, hanging, or overflow. the max it gets at in ram usage is 27k. No windows load either. They only thing that is a reference is the itunes sdk, which hasnt changed since I started making this app. I've checked the form load, and nothing there is causing it to end. I even commented out all the code I added last night, and still nothing. Any ideas? If anyone needs to see the source code, I'll PM it to you.

  2. #2
    PowerPoster boops boops's Avatar
    Join Date
    Nov 2008
    Location
    Holland/France
    Posts
    3,201

    Re: App runs on my computer, but now others

    Have you just changed to VS2010? Maybe your program now targets Net Framework 4 but the other computers don't have it installed. You can change the target framework in Project/Properties/Advanced Compile Options. BB

  3. #3

    Re: App runs on my computer, but now others

    It should still raise an error if that were the case.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Apr 2010
    Posts
    24

    Re: App runs on my computer, but now others

    i've been using 2010, and .net 4. which is installed on all the beta testers computers

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Apr 2010
    Posts
    24

    Re: App runs on my computer, but now others

    here is a little update. I decided to just re write the program so that I could clean up the code and label things properly. I had one of my other computers running next to me, and was testing the program on that computer. It suddenly wont run either, except it gives an error stating the the program has stopped working. But no description. Right now, all this other program is, is a very simple web browser. I have no clue as to what is going on. I have changed nothing in compiling since I originally started on this project.

    EDIT: One more thing I just found out. I changed the startup form on the original project to the about box, and it opened. So I assumed that there was a problem in form1, in the coding. I took all of the code out of the class and built it. Ran on my computer, still wont run on any others.
    Last edited by dapallox1; May 1st, 2010 at 02:50 PM. Reason: update

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Apr 2010
    Posts
    24

    Re: App runs on my computer, but now others

    Okay, SO I finally got an error to produce. I added a button (form1.show()) in the about box, changed the properties to make the about box the start up form. That worked. I clicked on the button to load form1, and I get the follow error:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    at WindowsApplication1.Form1.InitializeComponent()
    at WindowsApplication1.Form1..ctor()
    --- End of inner exception stack trace ---
    at WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T Instance)
    at WindowsApplication1.AboutBox1.OKButton_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: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    Social Vibe
    Assembly Version: 4.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Users/Nick/Desktop/Social%20Vibe.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.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.


  7. #7

    Re: App runs on my computer, but now others

    The error is: Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs
    Install Visual Basic PowerPacks

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Apr 2010
    Posts
    24

    Re: App runs on my computer, but now others

    Why though. Why do I all of a sudden have to add this? and is there anyway to include the needed .dll's with my application so that the users dont have to install?

  9. #9

    Re: App runs on my computer, but now others

    Uh yeah, you deploy them together. In your references, make sure Copy Local is set to True for the PowerPack. Not every user has it because it's an optional installation.
    As for why you have to have them, your application is obviously referencing the DLL in some way.

  10. #10
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: App runs on my computer, but now others

    I had the same problem long time ago.
    Jmc Helped "This is his post not my"

    Quote Originally Posted by Jmc
    The VB PowerPacks are not part of the .NET Framework proper. As such, if your app uses them, you have to provide them separately. You would do this in one of two ways, depending on how you're deploying your app:

    1. If you're using ClickOnce publishing or Windows Installer via a Setup project to deploy your app, open the Prerequisites dialogue from the appropriate place and check the box next to the VB PowerPacks redistributable. When the user runs your installer, the VB PowerPacks will be installed to the GAC if and only if they are not already installed, just as the Framework is.

    2. If you're using XCOPY deployment, i.e. simply copying your EXE and its dependencies to the target machine, you need to copy the VB PowerPacks library as one of those dependencies. First, open the References page of the project properties and set the Copy Local property of the VB PowerPacks reference to True. When you build, the VB PowerPacks DLL will be copied to the output folder along with your EXE, ready for deployment.
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Apr 2010
    Posts
    24

    Re: App runs on my computer, but now others

    well I got everything working now. I appreciate all of the help. mods can close this now if they'd like

  12. #12
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    403

    Re: [RESOLVED] App runs on my computer, but now others

    dapollox1 : The original poster of a thread should close it as resolved, preferably first placing a final post explaining how it was resolved (for others to learn from). It is also courtesy to rate the helpful reply posts which people have provided to you, which in turn adds to their reputation and standing in the forum.

    To mark your thread as resolved, open the thread and, at the top, go to THREAD TOOLS.

    It is always most pleasing to see a problem resolved here, as have been so many of my own in recent years.

  13. #13
    Addicted Member
    Join Date
    Jul 2012
    Location
    Wiltshire, England
    Posts
    211

    Re: [RESOLVED] App runs on my computer, but now others

    I had same problem on VS 2008.
    Worked fine on my machine ,but came up with powerpack error on other machines.
    Problem was caused by a form that had a rectangle control in it which was from the powerpack.
    I removed the rectangle and it now works on all machines.

    Kristian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width