Program Won't Run On Identical Machine?

Apr 17, 2010

I made a program with Visual Studio Express 2008, compiled for .Net Framework 3.5

I transferred the .exe and the other 2 files to my brothers laptop who also uses Windows 7, .Net Framework 3.5.

Every time I run the file it says "Windows Application has stopped working..."

However, I run it fine on my PC and it is also Windows 7, .Net Framework 3.5

Can anyone else think of a reason the program won't work on my brothers laptop?

View 1 Replies


ADVERTISEMENT

Closing Machine After Program Has Run

Feb 3, 2010

is there "rules" as to how to close programs writting in vb.net(2008)? I've migrated to dot net from vb6 and have rewritten some of my programs in the new language, but I've discovered a problem, since using the new programs if you try and close the machine down (Windows XP) the pc just hangs until I use the task manager and kill my programs.

View 1 Replies

Debug Program On A Windows 7 Machine?

Oct 5, 2011

I am trying debug my program on a Windows 7 machine. My program reads a txt file using TextFieldParser

I get an error message when I try to open a file

Could not find file C:UsersBillDesktopprogram name TextFieldParserinDebugFileName.txt.ReadColumns

Code

Dim safeFileName As String = IO.Path.GetFileName(Me.OpenFileDialog1.FileName)
Using myReader As New Microsoft.VisualBasic.FileIO.TextFieldParser(safeFileName)

It doesnt get past the second line, which tells me there is something wrong with the way i am getting the file??

I am not getting the location of the file just the file name

View 27 Replies

Lightswitch Program Runs On One Machine But Not Other

Nov 10, 2011

I loaded a Lightswitch program on an XP machine and after load all of the updates it runs fine. I tried to load it on another XP machine with all of the updates loaded and it looks like it installs and it shows up under programs but it looks like it starts to run but then nothing happens, there are no new processes running.

View 1 Replies

Make A Slot Machine Program?

Dec 9, 2011

I'm trying to make a slot machine program. This procedure that I'm trying to do will assign a name to 3 randomly generated numbers. For some reason I'm getting a conversion error saying that it cant convert the integer to a string. I tried cstr() as well but the problem persisted

[Code]...

View 2 Replies

Program Does Not Work On A Vista Machine

Jan 15, 2010

I made an application to give to my friends as practice for my learning, so the app works fine with XP but not on a Vista 64 bit machine. Will the app need re-coding? The app is used as a game mod, so it writes to process.

View 2 Replies

VB Program Fails To Run On Specific Machine?

Mar 12, 2012

Frustration has officially set in. This is my first post here, and to be very honest, I'll admit that I'm a newbie VB programmer as well. I guess that's why I'm posting here, in hopes you super-porgrammer types might be able to help.

I've written a smallish VB program with 2010 express... the code uses some text files to gather various lists of numbers ( as part of a manufacturing Bill of Material ) that assiciate to PDF files of the same name. The intent was simply to view and print the gathered existing PDF files.

I have the program mostly working the way I want ( at home ), but when I bring it to work, it fails to open.

My home PC is a 32Bit Windows Vista Machine with Adobe 10.1 viewer installed.My Work PC is a 64 Bit Windows 7 Machine also with Adobe 10.1. I've sent the .sln and code to a buddy who is also running a 64bit Win 7 machine very similar to what I have... he is able to run the program. I've sent the same thing to my work pc and tried to run it. I get some crazy HRESULT error I can't make heads or tails out of... remember I'm a newbie.

I will happily post code if you guys are interested, but I believe that it isn't code related. What kind of things MIGHT i try to look for on my work pc that would cause this simple program Not to function? I've brought other programs I've written to work without problem. But this one has me stumped.

Other things I've tried:
1) uninstall and re-install Adobe... ( no change )
2) written a super small adobe viewer program at work... ( works )
3) tried to comple as "any CPU", "x86", and "x64"... ( does not work )
4) bring .sln & code files to compile and run at work... ( does not work, HRESULT err )

View 4 Replies

Program Express Does Not Run On A Machine With Windows XP Dutch Version

Jun 5, 2009

I wrote a program using VB 2005 Express edition using a computer with windows xp us edition. the program run fine on al machines here in San Diego but it gets a .net framework error on a computer in the Netherlands with a windows Xp Dutch edition.

View 14 Replies

Running 32bit Compiled Program/DLL On 64bit Machine?

May 20, 2011

I have some programs written in VB2010 using functions from a DLL. I have compiled and run these programs on a 32bit XP computer and a 32bit Win7 computer and have had no problems accessing the DLL.I have published an installation of these programs and tried running the install on a 64bit Win7 machine and the installation is performed correctly. It installs the programs and copies the required DLL into the same folder. the problem is that whenever I run the software and try to access the DLL I get errors.

The error says something like:

An unhandled exception has occurred in your application. An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x8007000B)

If I click past it the software runs and all of the forms are loaded properly, but anytime in the software if I try to access the DLL I get the same error.I am declaring functions in the DLL like this:

Public Declare Function OpenDriver Lib "OP815M.DLL" (ByVal handle_Renamed As Integer) As Integer

I have also tried placing the DLL in the system32 directory and also the sysWOW64 directory and that did not help as well.I do recall that hardware drivers need to be properly signed and pass the Microsoft Logo testing. Must I get the DLLs I am using properly signed?

Edit: Also it might be fair to mention that I have used the DLL with another program written in C, which would run in the DOS command line in Windows and it correctly accesses the DLL on a 64bit machine, but just when run from the DOS command line in windows.

View 4 Replies

UDPClient Class - Tie The Program To A Specific IP On The Local Machine?

Nov 28, 2011

Say a machine has two seperate IP's. I am running a little test program that connects to an outside piece of hardware that has it's own IP. I receive data from that hardware. I want the same little program assigned to the two seperate IPs on my local machine to get the same data from the hardware. How can this be done?I am receiving data just fine but I am not seeing how to tie the program to a specific IP on the local machine. As soon as I run another instance of my program, not data is received on the second instance.For example: I have a program running on a machine. I want two instances of that program, each on it's own ip

Instance 1: 192.168.1.240

Instance 2: 192.168.1.241

I want both instances to listen for data coming from 192.168.1.50

This is a generic example of what needs to happen. I need to know how to define the local IP's the UDPClient is running on.

View 4 Replies

VS 2008 - How To Deploy A SQL Server Database Program To A Machine

Mar 22, 2010

how do I deploy a SQL server database program to a machine thats I don't know the name of the machine. tried using "server (local)" but still.

View 6 Replies

Chat Program - Target Machine Actively Refused Connection

Jun 4, 2011

How to make a chat program. Well I just copied code in and the program worked. I can send a message to the server and it sends it back just fine. But I can only send a message once. If I try to send another message I get an error and it says this "A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll" then it "No connection could be made because the target machine actively refused it 127.0.0.1:500".
Here is the link to the tutorial and code: [URL]

View 1 Replies

Execute A Program On A Remote Machine - Psexec Doesn't Work

Jan 29, 2009

I'm trying to execute a program on a remote machine using this code

Dim objProcess As New System.Diagnostics.Process
objProcess.StartInfo.FileName = "cmd.exe"
objProcess.StartInfo.Arguments = " /c PSExec /accepteula \NTAPPMTMIGL01 -u $AdminUsrLocal -p tjdsi44 c:winntMicrosoft.NETFrameworkv2.0.50727gacutil.exe"

[code]....

If I use it, it works since I'm an admin but if someone else use it, I got "The system cannot find the file specified."Is there any other program I can use that can impersonate, I've already tried xcmd.exe but it doesm't work either.

View 2 Replies

Make Installation Wizard So That Program Would Work On Client Machine

Jul 13, 2009

how do i make an installation wizard so that the program would work on the client machine ( pc or laptop not server ) so that the client doesn't need to download .net framework separetly ?

View 3 Replies

Cannot Access The Database From Server Machine To Client Machine Using .net 3.5?

Dec 9, 2010

I develop an application using vb.net.application will run on client server architecture.when we try to execute the program in client side then it will give me an error which is related to sqlclientexception.how can i handle this situation.i used vb.net 3.5 as front end and sql server 2000 as back end.i have done total coding with system.data.sqlclient namespace.

View 6 Replies

.Net Software Behaves Differently From Machine To Machine?

Dec 21, 2010

I've inherited a lot of custom made software for an office, and, while managing it, I've found it performs differently from machine to machine.I mean, some controls get painted in weird ways in some machines but well in another, or just work differently, like in some machines clicking something selects it, and in the next machine clicking the same thing makes it editable.I suspect, o course, of the myriad of DLL the software loads

View 2 Replies

Blocking A Particular Machine From Accessing A Machine On LAN?

Jan 21, 2008

I want to block a perticular machine from accessing my machine..Both the machines are in LAN..I dont want a perticular machine to access my computer How can i achieve this...I want to do this using VB.NetAny idea....

View 9 Replies

Two Identical Check Boxes But They Don't Look Same

Aug 15, 2010

Most of my check boxes look like these (on the left of the picture) (ignore the checked check box in the upper left corner , I am not talking about tat one) :However , ONLY on tab 2 the check boxes look differently in both cases the check boxes are Disabled , but they don't look the same . Why is that ? I even tried copying the check boxes from tab 3 to tab 2 but to my surprise they once again looked differently ! This only happens on tab 2 . How is this possible ?

View 20 Replies

.net - Identical If() And If Yield Different Results

Dec 22, 2010

What is the difference in the two blocks of code below? I expected them to return the same result, but they don't.

In the case where xml.@Type = "null", I want PatientMetricTypeID (a nullable Integer) to end up being Nothing.

Block #1: If()

In this case, it ends up as 0. It looks like Nothing is being treated as an Integer and converted to 0. I can sort of see why this might happen but not fully... I would like to understand exactly how this works, and if there is a workaround.

Dim PatientMetricTypeID As Integer? = If(xml.@Type = "null",
Nothing,
CType([Enum].Parse(GetType(PatientMetricTypes), xml.@Type), Integer))

Block #2: If

In this case, it ends up as Nothing -- expected behavior.

Dim PatientMetricTypeID As Integer?

If xml.@Type = "null" Then

[CODE]...

View 3 Replies

Are These Two Vb Methods Identical In Function

Feb 2, 2010

Are these two vb methods identical in function

[Code]....

View 2 Replies

Contents In All Four Tabs Will Be Identical

May 25, 2011

1. This is probably really easy and I'm just missing it. I have 4 tabs in a controller. The contents in all four tabs will be identical (pictures, text boxes etc.) the end user would then add whatever to it. Whenever I try to copy the contents from tab 1 to any other tabs using ctrl+c and ctrl+v they get all out of alignment. Is there a way to duplicate a tab in the editor so that when flipping through the tabs all the text and pictures are in the exact same spot? I'm going out of mind on something that seams so simple.I don't want to have to write down the location of a couple of hundred controls and then retype them all 3 more times.

2. I can also only select text boxes, labels, and pictures at the same time. It will not let me select text boxes, labels, pictures and drawn lines all at the same time. So I can't really copy and paste everything at the same time I have to do it twice which makes the alignment get even more screwed up.

View 2 Replies

How To Consolidate Identical Strings

Mar 1, 2012

i have n-Strings. Something about 100. But most of them are identical. How could i remove these multiple string and have only each string one time?

View 7 Replies

ListIndex Or Identical Property?

Jun 20, 2012

is there any listindex property is available like vb6 in vs.net ? .because i want in the combo box .when it loads at least very first item needs to be selected .so let me know any way to do it

View 3 Replies

Compare 2 Datasets That Aren't Identical?

Jun 5, 2011

I've just about scrambled my brain on this, searching and trying things, so I'm hoping someone sees something that I'm missing or can explain it to me. I'm new to .NET, used to do a lot of programming in VB but that was many years ago.

[Code]...

View 1 Replies

Copy Form And Make Identical?

Jan 24, 2012

How can I copy form and make identical form

say want to copy the style of one form & coding and make identicel form 2

View 4 Replies

Have 8 ComboBoxes And 8 Identical Items In Each ComboBox?

Apr 19, 2012

I have 8 comboBoxes and 8 identical items in each comboBox.If I select one of the items in comboBox1, how can make this item to disappear from all other comboBoxes ?

View 8 Replies

Identical Code - One Works One Doesn't

Jan 19, 2012

I'm on Windows Vista Home Premium, using Visual Express 2010, working on a visual basic program.

View 2 Replies

Identical Usercontrols With Different Resize Behavior?

Jan 15, 2012

I have an application which has a tabcontrol that contains two tabpages. I have a custom made usercontrol docked to fill up each of those tabs. When I resize my main form to the minimum size allowed one tab resizes accordingly while the other seems to overflow the area and a couple ui items slip out of access/view.

One usercontrol was quite literally copied from the other and renamed and fields adjusted. The usercontrol size is the same between the two. Within the usercontrols there is a datagridview and a large panel full of textboxes and they have identical sizes and identical anchoring properties and even the same location coordinates.

I'm struggling to find a difference between the two but I really would like the resize behavior to match between the two usercontrols. I was wondering if anyone would have ideas of other things to check I did not mention here?

View 2 Replies

Inserting Multiple Identical Records Into Sql?

Jan 24, 2012

I wish to insert a row into an SQL table a multiple number of times. The only field that will change is the Primary key ID which will update automatically.

To enter the INSERT into a loop seems very inefficient (time). The only other way I can find to do this is build up an array of values and do a multiple INSERT but again this seems very inefficient (memory) when the values will all be identical.

Is there a way of saying insert this row a variable number of times?

View 1 Replies

Searching Identical Images In Database

Nov 16, 2010

is it possible to search and retrieve identical photos in a database using VB.NET platform

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved