.NET Application Deployment

G

Guest

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
 
G

Greg Burns

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

Greg
 
G

Guest

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.
 
B

Brumarhindi Chicopella

Why is there still MDAC?

That should all be part of System.Data right ?
 
G

Greg Burns

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
 
G

Guest

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.
 
M

Mark Miller

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
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top