Application deployment

Hi

I've developed an application in VB.NET and i am now trying to deploy this on a different machine not having vb runtime installed or anything really....(more or less a blank win2k or XP)
Following one books instructions i have done the following:
Included a setup & deployment project into my solution.
I checked for set up a Windows application and then to include:
Primary output, localized resources and content files.
Under User's programs menu i included a folder containing the exe file.
When trying to build solution (properties set to release) i get a warning:
WARNING: File 'ProduktBildeRapportering.exe' should not be installed into a User's Profile folder because it may not be available to all users.

and error:
ERROR: 'oledb32.dll' should be excluded because its source file 'C:\Program Files\Common Files\System\Ole DB\oledb32.dll' is under Windows System File Protection.

The build does give a .msi file but it is only 1.5 mb and trying to install the app on a machine without (even with) vb runtime result in an application that does not want to start....just throws a lot of errors or rather:
Exception that cannot be handled.....followed by process and thread ids
Looking at the output of the build it hardly packs any dll files at all....only a few related to crystal reports. I had expected a much larger file, with a lot more dll files for the vb runtime?

Does anyone know what why it does not work or how i should create a deployment program?

Thanks!
KjartanM-SDomain ArchitectAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Z_BeeblebroxCommented:
You need to either separately install the .Net framework, or manually include it in your MSI. Here is a website that explains how you do this.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/redistdeploy.asp

Zaphod.
0
KjartanM-SDomain ArchitectAuthor Commented:
Hi
(sorry about the late answer, had a defect cable modem)

.NET framework is already installed. The setup would not proceed until it was downloaded and installed.
By excluding the oledb32.dll it builds but when installed on a clean machine (XP and .NET framework) it only gives me a error message when trying to run it.
"The application has generated an exception that could not be handled" ....followed by process and thread id.

While installling it on the computer used to develop the app it runs fine (with the exception of using DataLink to set the link to a different DB server)

Any ideas on what could be wrong with the deployment? What could be missing in the deployment?
0
Z_BeeblebroxCommented:
Hi,

Sorry, I don't know much at all about .Net deployments. You might want to make sure that any DLL's that are in your references list are either part of the framework or part of your installation package. Other than that, I can't really be of any help.

Zaphod.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.