473,327 Members | 1,936 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,327 software developers and data experts.

Why do my programs sometimes work on machines with no .Net installed on them?

15
Hi All,

I'm using Visual Studio 2005 to make various tool for my work. The standard PCs around the office do not have .NET installed on them. Sometimes if I attempt to run my programs on them they work fine and other programs don't as a result of the missing .NET components. Can somebody explain what it is that determines whether they will run without .NET or not.

More specifically, I've made something which uses ADO to shift some data into an Access Database. I get the following error on the machine lacking .NET:

could not load file or assembly 'Interop.ADOBD, Version=2.8.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Is there any way I can make what I have work on these machines without installing .NET?

Would really appreciate any pointers on this issue.

Ash
Aug 1 '07 #1
6 1147
Plater
7,872 Expert 4TB
Are you sure that they don't just have .NET1.1 but not .NET2.0?
Aug 1 '07 #2
TRScheel
638 Expert 512MB
A program written in .NET will only run on a machine that has .NET installed on it.

I'd hate to go through the specifics again (they are on this forum) but basically earlier programs compiled into machine language, where as .NET programs compile into pseudo machine language. Its unreadable by your CPU so it would be unable to run on any machine without the Just In Time (JIT) compiler installed on it (which comes with .NET because it needs those libraries to work).

Long story short, those computers which you think dont have .NET installed on them, really do. Maybe version 1.1. And no, without installing .NET those programs will not work.
Aug 1 '07 #3
ashwah
15
A program written in .NET will only run on a machine that has .NET installed on it.

I'd hate to go through the specifics again (they are on this forum) but basically earlier programs compiled into machine language, where as .NET programs compile into pseudo machine language. Its unreadable by your CPU so it would be unable to run on any machine without the Just In Time (JIT) compiler installed on it (which comes with .NET because it needs those libraries to work).

Long story short, those computers which you think dont have .NET installed on them, really do. Maybe version 1.1. And no, without installing .NET those programs will not work.
OK thanks. I still don't understand tho. Taking the program with ADO as an example, before I added the ADO stuff it worked ok on the PCs w/o .NET. It's only today that they ceased to work. Does this mean they DO have .NET? Theres no 'C:\Program Files\Microsoft.NET' folder on those machines but I guess theres a better way to tell, is there?
Aug 1 '07 #4
Plater
7,872 Expert 4TB
If you check the installed software you will see .NET framework1.x is installed.

The 'C:\Program Files\Microsoft.NET' for me only contains ADO drivers and less then a dozen other dlls, probably part of some special part of .net2.0.
You could either find a way to distribute those ADO directories correctly, force a .net2.0 upgrade, or find a way to compile your programs using only the .net1.x libraries.

OK thanks. I still don't understand tho. Taking the program with ADO as an example, before I added the ADO stuff it worked ok on the PCs w/o .NET. It's only today that they ceased to work. Does this mean they DO have .NET? Theres no 'C:\Program Files\Microsoft.NET' folder on those machines but I guess theres a better way to tell, is there?
Aug 1 '07 #5
ashwah
15
Oh I figured it out now. I was being an idiot.

Thanks for your help...
Aug 2 '07 #6
kenobewan
4,871 Expert 4TB
At least you were clever enough to ask the question :).
Aug 2 '07 #7

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

Similar topics

3
by: Olaf Baeyens | last post by:
I have seen a lot of talk about .NET and C# and stuff, but so far I didn't see any commercial programs yet. Until know, I happen to stumble on some programs that seems to be a .NET program and...
12
by: Frank Hauptlorenz | last post by:
Hello Out there! I have a DB2 V7.2 Database (Fix11) on Win 2000 Professional. It was before a NT 4 based Domain - now it is a Win 2000 Domain. The database server is a domain member. Now...
8
by: Devin | last post by:
I am using Microsoft WebMatrix to write my ASP.NEt pages, and one functionality that that seems to lack is the ability to make these pages look nice. Is there any program out there like Frontpage,...
2
by: Sammy | last post by:
I have a development team working on a web application. I have a development server with VS 2003 installed. Each developer checks out a copy of the source code via source safe and...
6
by: Programatix | last post by:
Hi, I'm trying to distribute my application written using .NET Framework 2.0. It uses a MDB file for it's database. On certain machines with Windows XP (I have also tried updating them to...
17
by: romixnews | last post by:
Hi, I'm facing the problem of analyzing a memory allocation dynamic and object creation dynamics of a very big C++ application with a goal of optimizing its performance and eventually also...
55
by: Steve | last post by:
I have to develop several large and complex C++ hardware test programs that should work under DOS, most likely with 32-bit DOS extender. Development workstation OS would be Microsoft XP. Quite some...
27
by: HKSHK | last post by:
Hello, I have this problem: I wrote some DLLs with VB.Net 2003 which I use with my programs. But I want to avoid that I have to go down to "DLL hell" and to copy all used dlls into each program...
0
by: J.P. | last post by:
Hi, I'm having an issue after IE7 is installed on a work station, programs set to run in full trust over the intranet are crashing. I've tried adding the machines where the programs reside to...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.