user741685
user741685

Reputation: 1

Object reference not set to an instance of an object

I have a .NET project (windows forms) created in .net 3.5.

I added Error log code to this project and I deployed it in VS2010 with .NET 4.0 platform.

It successfully builds and creates the installer, but when I install this msi installer it shows the error "error:1001 ->Object reference not set to an instance of an object." and the installation gets rolled back.

If any one knows about this error please help me.

Upvotes: 0

Views: 5702

Answers (2)

Baljinder Singh
Baljinder Singh

Reputation: 41

One of the resons could be that Custom Actions data is missing. Make sure the variables/properties/data you are accessing in the installer's code(ProjectInstaller.cs) file is there in the custom actions data in Install section.

  1. Click SetupProject
  2. on top of solution explorer click Custom Actions
  3. select Install->Primary output from project
  4. Select properties.
  5. check CustomActionData.(the variables used in the installer code file should be there in the property).

Hope this will solve your problem.

Upvotes: 4

Andreas Grech
Andreas Grech

Reputation: 108050

Make sure the installer is actually copying all the dlls and other files to the installation directory.

Upvotes: 0

Related Questions