By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,241 Members | 799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,241 IT Pros & Developers. It's quick & easy.

.NET Application Deployment

P: n/a
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
Share this Question
Share on Google+
7 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a

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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.