473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

c# works on one pc not another

77
Ive been developing a program for a while nwo and am wanting to release the version ive been working on. now before i do i need to test on a few other machines than my own. So at my work we have a pc with vmwar eon thats helpful for testing.

so i ran it in release mode and then went and copied the needed files into another folder and transfered them to the other pc. I ran teh confgiuration setup just to make sure the database was available etc.

My application gets almost to the end and then fails on a certain page/process. Its the page which gathers the information. i thought it was odd how ti works on my devlopment pc and not on the vmware.

So i transfered it back just to make sure and it works fine from my pc. runs perfect. I managed to get an error from it ealier saying null refereance occured but i havent been able to reproduce this error nor find any others. Ive been sitting here doing try catchs 4 lines at a time trying to find it and ive not found anything wrong.

Its starting to get extremly frustrating now. Has anyone got any ideas what i can do to try get this working? or tips to debugging a problem like this?

To say the vmware session im installing on had a older version installed which worked fine.. so i dont think its a .net version error.


Any ideas before i go and find a sledge hammer lol ?


Thanks,
Piercy
Jan 11 '08 #1
4 1461
RedSon
5,000 Expert 4TB
Ive been developing a program for a while nwo and am wanting to release the version ive been working on. now before i do i need to test on a few other machines than my own. So at my work we have a pc with vmwar eon thats helpful for testing.

so i ran it in release mode and then went and copied the needed files into another folder and transfered them to the other pc. I ran teh confgiuration setup just to make sure the database was available etc.

My application gets almost to the end and then fails on a certain page/process. Its the page which gathers the information. i thought it was odd how ti works on my devlopment pc and not on the vmware.

So i transfered it back just to make sure and it works fine from my pc. runs perfect. I managed to get an error from it ealier saying null refereance occured but i havent been able to reproduce this error nor find any others. Ive been sitting here doing try catchs 4 lines at a time trying to find it and ive not found anything wrong.

Its starting to get extremly frustrating now. Has anyone got any ideas what i can do to try get this working? or tips to debugging a problem like this?

To say the vmware session im installing on had a older version installed which worked fine.. so i dont think its a .net version error.


Any ideas before i go and find a sledge hammer lol ?


Thanks,
Piercy
You got some error messages? Code snips? Call stacks? Anything concrete for us to help you with?
Jan 11 '08 #2
Plater
7,872 Expert 4TB
Do both the machines have the same version of .net?
Sometimes if you use a .net2.0 function in a .net1.1 environment you get funky results.
Jan 11 '08 #3
piercy
77
Do both the machines have the same version of .net?
Sometimes if you use a .net2.0 function in a .net1.1 environment you get funky results.
its only coded in 1.1 :) and yes there both the same .net version.

You got some error messages? Code snips? Call stacks? Anything concrete for us to help you with?

No, Im cant seem to get an error message. So the call stacks i presume you can only get if it errors? As for code, I cant find where it is and i dont really want to post that whole form. my collegue devlopers are back in today im going to see if they can help me. If i get anywhere ill post back some code or the solution.

Thanks,
Piercy
Jan 14 '08 #4
piercy
77
Ok, i found the problem. I partially blame VS2003 but it was my fault in the first place. There was a line that checked the length of a string however there wasnt one check if ti was null. Thus, it was erroring there. i dont quite know why vs2003 didnt return and errors for this. Usually you would get an exception. It now works on both machines. I think the main reason why it didnt work on the other one is because the databases where different. So on my machine there was more data there, Less likely to fail. Where as the other machine had hardly any data.

Not sure why VS didnt help me.

Thanks for your help :)
Piercy
Jan 14 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: skiz | last post by:
I have an application written in ms access 97. Just recently certain queries have been giving various errors -- one of which is "there was an error executing the command". When I ran the...
1
by: John | last post by:
Hi, I have an asp.net page with some validation. On one machine the button click event works fine, whilst on another the button click event does not fire at all Any suggestions welcome! Thanks...
2
by: Cindy | last post by:
I have an Access 2003 database with a query that works fine on my PC but does not work on another PC. My PC has older versions of Access installed as well as 2003 - the other PC only has Access...
13
by: Stever1975 | last post by:
I'm working on something similiar to a shopping cart item page. There is a table of items. Each item has an image, a textbox for the qty and an image for the add button. When the add image is...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.