473,320 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,320 software developers and data experts.

.NET Application Deployment

Recently i tested an application i was developing on another P.C. with the
same harware. It was a new P.C. though and did not have the .NET framework
installed on it, so i first installed Dotnetfx.exe. When i ran my application
i got a few errors about libraries and J-I-T Debugging. Also, registry
functions and such did not work.

I searched the MSDNKB and google :) and still couldn't find anything that
explained how i would go about finding everything that i needed to distribute
my applications.

I had all the libraries that my app needed in the same directory as it was
and had the .NET Redistributable Framework Installed. What else do i need?
- Joshua Sprague
--
There's a crack in everything... That's how the light gets in.
Jul 21 '05 #1
7 1512
Where you running your .exe from a network share? Code Access Security
(CAS) can trip you up if so.

Greg

"Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
Recently i tested an application i was developing on another P.C. with the
same harware. It was a new P.C. though and did not have the .NET framework
installed on it, so i first installed Dotnetfx.exe. When i ran my
application
i got a few errors about libraries and J-I-T Debugging. Also, registry
functions and such did not work.

I searched the MSDNKB and google :) and still couldn't find anything that
explained how i would go about finding everything that i needed to
distribute
my applications.

I had all the libraries that my app needed in the same directory as it was
and had the .NET Redistributable Framework Installed. What else do i need?
- Joshua Sprague
--
There's a crack in everything... That's how the light gets in.

Jul 21 '05 #2
No, i wasn't running from a net share. I took the entire bin directory and
transfered that to the new P.C. and ran it from that computer with no network
involved. Although the networking part of my application worked, I was not
running from a network share.

"Greg Burns" wrote:
Where you running your .exe from a network share? Code Access Security
(CAS) can trip you up if so.

Greg

"Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
Recently i tested an application i was developing on another P.C. with the
same harware. It was a new P.C. though and did not have the .NET framework
installed on it, so i first installed Dotnetfx.exe. When i ran my
application
i got a few errors about libraries and J-I-T Debugging. Also, registry
functions and such did not work.

I searched the MSDNKB and google :) and still couldn't find anything that
explained how i would go about finding everything that i needed to
distribute
my applications.

I had all the libraries that my app needed in the same directory as it was
and had the .NET Redistributable Framework Installed. What else do i need?
- Joshua Sprague
--
There's a crack in everything... That's how the light gets in.


Jul 21 '05 #3
If your program is using data access you may have a problem with computers
that are missing MDAC...

http://www.microsoft.com/downloads/d...DisplayLang=en

You may want to create a global error handler, that way you can see what is
causing the error.

http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Greg

"Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in message
news:C6**********************************@microsof t.com...
No, i wasn't running from a net share. I took the entire bin directory and
transfered that to the new P.C. and ran it from that computer with no
network
involved. Although the networking part of my application worked, I was not
running from a network share.

"Greg Burns" wrote:
Where you running your .exe from a network share? Code Access Security
(CAS) can trip you up if so.

Greg

"Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in
message
news:19**********************************@microsof t.com...
> Recently i tested an application i was developing on another P.C. with
> the
> same harware. It was a new P.C. though and did not have the .NET
> framework
> installed on it, so i first installed Dotnetfx.exe. When i ran my
> application
> i got a few errors about libraries and J-I-T Debugging. Also, registry
> functions and such did not work.
>
> I searched the MSDNKB and google :) and still couldn't find anything
> that
> explained how i would go about finding everything that i needed to
> distribute
> my applications.
>
> I had all the libraries that my app needed in the same directory as it
> was
> and had the .NET Redistributable Framework Installed. What else do i
> need?
> - Joshua Sprague
> --
> There's a crack in everything... That's how the light gets in.


Jul 21 '05 #4

Why is there still MDAC?

That should all be part of System.Data right ?
Greg Burns wrote:
If your program is using data access you may have a problem with computers
that are missing MDAC...

http://www.microsoft.com/downloads/d...DisplayLang=en
You may want to create a global error handler, that way you can see what
is causing the error.

http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Greg

"Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in
message news:C6**********************************@microsof t.com...
No, i wasn't running from a net share. I took the entire bin directory
and transfered that to the new P.C. and ran it from that computer with no
network
involved. Although the networking part of my application worked, I was
not running from a network share.

"Greg Burns" wrote:
Where you running your .exe from a network share? Code Access Security
(CAS) can trip you up if so.

Greg

"Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in
message
news:19**********************************@microsof t.com...
> Recently i tested an application i was developing on another P.C. with
> the
> same harware. It was a new P.C. though and did not have the .NET
> framework
> installed on it, so i first installed Dotnetfx.exe. When i ran my
> application
> i got a few errors about libraries and J-I-T Debugging. Also, registry
> functions and such did not work.
>
> I searched the MSDNKB and google :) and still couldn't find anything
> that
> explained how i would go about finding everything that i needed to
> distribute
> my applications.
>
> I had all the libraries that my app needed in the same directory as it
> was
> and had the .NET Redistributable Framework Installed. What else do i
> need?
> - Joshua Sprague
> --
> There's a crack in everything... That's how the light gets in.


--

Being born is like being kidnapped. And then sold into slavery.

a.warhol
Jul 21 '05 #5
http://msdn2.microsoft.com/library/xxzfbaw2.aspx

Getting the 'The .NET Data SQL Provider (System.Data.SqlClient) requires
Microsoft Data Access Components (MDAC) version 2.6 or later' Error

The Microsoft .NET Framework SDK and the .NET Framework redistributable
package do not include the MDAC installation. All .NET applications that use
data-access functionality require MDAC 2.6 or later (MDAC 2.7 is
recommended). The latest version of MDAC is available as a download from the
Microsoft Web site (http://www.microsoft.com).

Because Visual Studio .NET installs MDAC 2.7 by default, this error is most
likely to occur when deploying to a machine that does not have Visual Studio
..NET installed.
Not sure how System.Data is implemented under the covers.

Greg

"Brumarhindi Chicopella" <bc@__acraz_.deapusi> wrote in message
news:mw****************@newsread3.news.pas.earthli nk.net...

Why is there still MDAC?

That should all be part of System.Data right ?

Jul 21 '05 #6
ok ill try a global error handler to see what is causing the errors, but i
also want to know what things to include when i distribute my application.

For Example, i want to know, what libraries to ship with it, what
redistributable pacckages to ship with it, what system components are needed
to run it, etc.. is there a guide on finding requirements for deployment of
..NET applications.

Theoretically all i need is the .NET framework installed and the libraries
that are generated in my bin directory right? but whenn i copy the bin
directory to another pc many things dont work, like registry which is a major
in my application. i dont think i am using MDAC cause i dont even know
exactly what it is. I dont use Jet, SQL, ODBC or things in that nature.

"Greg Burns" wrote:
If your program is using data access you may have a problem with computers
that are missing MDAC...

http://www.microsoft.com/downloads/d...DisplayLang=en

You may want to create a global error handler, that way you can see what is
causing the error.

http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Greg

"Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in message
news:C6**********************************@microsof t.com...
No, i wasn't running from a net share. I took the entire bin directory and
transfered that to the new P.C. and ran it from that computer with no
network
involved. Although the networking part of my application worked, I was not
running from a network share.

"Greg Burns" wrote:
Where you running your .exe from a network share? Code Access Security
(CAS) can trip you up if so.

Greg

"Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in
message
news:19**********************************@microsof t.com...
> Recently i tested an application i was developing on another P.C. with
> the
> same harware. It was a new P.C. though and did not have the .NET
> framework
> installed on it, so i first installed Dotnetfx.exe. When i ran my
> application
> i got a few errors about libraries and J-I-T Debugging. Also, registry
> functions and such did not work.
>
> I searched the MSDNKB and google :) and still couldn't find anything
> that
> explained how i would go about finding everything that i needed to
> distribute
> my applications.
>
> I had all the libraries that my app needed in the same directory as it
> was
> and had the .NET Redistributable Framework Installed. What else do i
> need?
> - Joshua Sprague
> --
> There's a crack in everything... That's how the light gets in.


Jul 21 '05 #7
Well, all that matters is what type of database you're using, not that you
are specifically using a database API like Jet or ODBC.

There are .Net API calls that depend on native libraries. Some parts of the
API are just wrappers around them. So even if you are just using the .Net
API objects and calls, you will need the libraries those parts of the API
use. For example, GDI+ in fact uses a native library, though this
particular one is installed with the .Net redistributable.

If you are using an Access database in your application, you'll need MDAC
all the same. If you aren't using System.Data.OleDb or some other data
access technology under System.Data, then you probably won't need MDAC.

Unfortunately, just from taking a cursory look at the .Net documentation, it
doesn't seem to say what underlying library it uses for System.Drawing or
System.Data.OleDb, and the like.

Hope this helps a little. If you could give the text of the actual errors
some of us might be able to help you more. Are you developing a Windows
Forms app.?

---Mark
mm******@comcast.net

"Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in message
news:04**********************************@microsof t.com...
ok ill try a global error handler to see what is causing the errors, but i
also want to know what things to include when i distribute my application.

For Example, i want to know, what libraries to ship with it, what
redistributable pacckages to ship with it, what system components are
needed
to run it, etc.. is there a guide on finding requirements for deployment
of
.NET applications.

Theoretically all i need is the .NET framework installed and the libraries
that are generated in my bin directory right? but whenn i copy the bin
directory to another pc many things dont work, like registry which is a
major
in my application. i dont think i am using MDAC cause i dont even know
exactly what it is. I dont use Jet, SQL, ODBC or things in that nature.

"Greg Burns" wrote:
If your program is using data access you may have a problem with
computers
that are missing MDAC...

http://www.microsoft.com/downloads/d...DisplayLang=en

You may want to create a global error handler, that way you can see what
is
causing the error.

http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Greg

"Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in
message
news:C6**********************************@microsof t.com...
> No, i wasn't running from a net share. I took the entire bin directory
> and
> transfered that to the new P.C. and ran it from that computer with no
> network
> involved. Although the networking part of my application worked, I was
> not
> running from a network share.
>
> "Greg Burns" wrote:
>
>> Where you running your .exe from a network share? Code Access
>> Security
>> (CAS) can trip you up if so.
>>
>> Greg
>>
>> "Joshua Sprague" <Jo***********@discussions.microsoft.com> wrote in
>> message
>> news:19**********************************@microsof t.com...
>> > Recently i tested an application i was developing on another P.C.
>> > with
>> > the
>> > same harware. It was a new P.C. though and did not have the .NET
>> > framework
>> > installed on it, so i first installed Dotnetfx.exe. When i ran my
>> > application
>> > i got a few errors about libraries and J-I-T Debugging. Also,
>> > registry
>> > functions and such did not work.
>> >
>> > I searched the MSDNKB and google :) and still couldn't find
>> > anything
>> > that
>> > explained how i would go about finding everything that i needed to
>> > distribute
>> > my applications.
>> >
>> > I had all the libraries that my app needed in the same directory as
>> > it
>> > was
>> > and had the .NET Redistributable Framework Installed. What else do i
>> > need?
>> > - Joshua Sprague
>> > --
>> > There's a crack in everything... That's how the light gets in.
>>
>>
>>


Jul 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Marek | last post by:
Hi there, my WinForm application has to be installed in "no-touch-deployment" mode, so users can run it from the web. I need to read application's .config file but it does not work in ...
0
by: Mart | last post by:
Hi, I have just written (my first) VB.net app using MS Visual Basic 2005 Express Edition Beta. It is fairly simple, it reads some configuration data from an XML file then opens a new window...
0
by: Uma | last post by:
Dear all, I have a problem while running a smart client application which was installed through CD-ROM. After installing the smart client setup the application is running properly. When running...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
8
by: Ryan | last post by:
I've created and deployed a VB.Net 2005 Application. I have it set as a FullTrust (ClickOnce) application. The install point is on a network server. I did not run into this issue at all while...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
0
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
0
by: coopdog | last post by:
This is a new issue as of an install to sp1 on vb express 2005. When I publish the application to my drive then I try to install it is wants to be installed from the same location as it was...
0
by: Andrus | last post by:
I created .NET 3.5 SP1 Winforms application setup by pressing publish button in VCSE 2008 SP1 Running created setup.exe in same computer causes error below "Reference in the manifest does not...
1
by: Bhrionn | last post by:
Hello World, I am working on implementing a build for my companies application. The scenario implemeted is producing the error: ‘Class does not support automation or does not support expected...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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
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.