Click here to Skip to main content
15,944,390 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
hi,
i have one windows based application developed in Visual studio 2005 in c#. i have used microsoft enterprise library for database operations and crystal reports also.To deploy it on differebt machine i tried in twop ways but faild.

1. i have build this application and copied all files from DEBUG filder on installation machine (Just for testing) and it worked fine but when i open one crystal report then i get error
"Un handeleed exception has occured... Lenght can not be less than zero. PArameter name length"


2. I tried to make setup from microsoft setup project for this application. i added there .exe file and app.config file in project and merge module for crystal report also. after instaling this applciation from thsi setup my first form (Login) is opened but when i click on "login" button to get login then i get "Object reference not set to an instance of an object" (i think while creating connection to SQL server dB).


So from both sides im stuck up with this issue.
Any guide lines to resolve this problem.?
thnx and regards
Posted

1 solution

I have used the ClickOnce deployment, there aren't alot of options for a really customized instal.
I have been using the Setup Project for a while now. It allows you to deploy your app with an .msi file which is pretty sweet.
If you search code projects for either of these you should find a few good answers.

ClickOnce - Quick steps to Deploy, Install and Update Windows Based Client Applications[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900