Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Application deployment

Posted on 2003-10-29
3
Medium Priority
?
418 Views
Last Modified: 2013-11-22
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!
0
Comment
Question by:KjartanM-S
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Expert Comment

by:Z_Beeblebrox
ID: 9650648
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
 

Author Comment

by:KjartanM-S
ID: 9665915
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
 
LVL 7

Accepted Solution

by:
Z_Beeblebrox earned 500 total points
ID: 9675009
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question