Reputation: 67
I get the following error when i try to save in my lightswitch application. "Object reference not set to an instance of an object"
I have published the application to a different computer.
But when i publish it to the same computer on which it is developed, it works perfectly. I think i am missing something here.
Upvotes: 0
Views: 1520
Reputation: 8971
I got the same error, difference cause apparently, but this article discusses the issue and solution.
Upvotes: 0
Reputation: 2263
The error means you're trying to use something not defined or not initialized at that moment.
If it works in you dev machine but not on the deployed machine; then it's highly possible that you did something wrong with the deployment.
Try to debug and understand the difference between to configurations. If you can't debug on the deployed computer, it would be better to write a log somewhere and understand which variable is giving you the error.
Upvotes: 2