Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

system.InvalidOperationException

Status
Not open for further replies.

furjaw

Programmer
Mar 27, 2006
49
US
Visual Studio 2005 Professional Edition:
My app runs fine on my development computer, but, bombs out on the 3 other computers that I installed it on (all 3 were running Windows XP Pro). It installs OK, but, upon execution, it immediately aborts with a System.InvalidOperationException.

I inserted a MsgBox(" " command at the very beginning of the Form1_Load Subroutine, so I know that the program itself never executes.

The installs were all from CD.

Error signature

EventType: clr20r3 P1 : ortholabrx.exe P2 :1.0.0.0 P3: 447753H

P4 : ortholabrx P5:1.0.0.0 P6: 47753f1 P7 :1 f P8: c6

P9 : system.invalidoperationexception

========================================================



The following information about your process will be reported:

Exception Information

Code: Oxe0434f4d Flags: 0x00000001

Record: 0x0000000000000000 Address: Ox000000007c81eb33

System Information

Windows NT 5.I Build: 2600

CPU Vendor Code: 756E6547 - 49656E69 - 6C65746E

CPU Version: 00000681 CPU Feature Code: Q383F9FF

Module 1
OrthoLabRx.exe
Image Ease: 0x00400000 Image Size: 0x00000000
Checksum: 0x00000000 Time Stamp: Ox447753fl
 
This is kind of a stab in the dark, but do the other machines your trying to deploy on contain V2 of the framework? Can you run ANY application you create on them -- even a simple "hello world"?
 
The other possibility is that those machines are missing a dependency. Did you install all the assemblies that your app depends on?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
OK, you are right, here is the problem:

My.Computer.Audio.Play("C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\OrthoLabRx\OrthoLabRx\Resources\clickerx.wav")

I have 5 statements like this in my program. They play different clicks when the user clicks on 'next', 'back', 'print', etc.

I added the 5 .wav files to Resources, but, I can't play them from there.

The following command works, but, half of the time, I get a PFFFFFFFFT instead of a CLICK!

My.Computer.Audio.Play(My.Resources.clickerx, AudioPlayMode.Background)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top