PDA

View Full Version : What Am I Doing Wrong?



NewsArchive
11-22-2006, 01:12 AM
Hi All

I really feel stupid. I have a .NET prototype that I copy onto the .NET
server. When I do this the pogram runs and there are no errors. When I use
SB5 to install those same files I get the following .NET:

Object reference not set to an instance of an object

I know that it is a dependency problem but cannot work out why. The exact
same files are delivered to the server, one by simply copying them, the
other with SB5.

Any ideas?

Cheers

Andre

NewsArchive
11-22-2006, 01:13 AM
André,

IMO, it's impossible to answer that question without having more information
available. There are quite a few articles on MSDN with regards to that
error and how to solve it. A quick Google returned 279,000 results, so
unfortunately I can't provide a good standard link.

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

NewsArchive
11-22-2006, 01:13 AM
Hi Friedrich

The problem is not so much the error but that when using SB5 to deliver the
files to the server the error occurs. It does NOT happen when these exact
same files are copied onto the server. It is as if SB5 is doing something
to one or more of the files that simple copying does not do. I will look
further into the SB5 file settings and again make sure that the exact same
files are being delivered. We did some testing yesterday. We will continue
to do so today.

BTW - we have consumed the MSDN articles and a number of other links. This
error occurs mainly when a dependency is absent.

Cheers

Andre

NewsArchive
11-22-2006, 01:13 AM
André,

I don't know what kind of OS the server is running and to what folders you
are copying to. Perhaps in this case, it's similar to fonts copying to the
Fonts folder. If you do it from Explorer, then the fonts are registered
automatically. If you use the CopyFile Windows API or an installer, you
have to explicitly register the font. Perhaps you have to add your
assemblies into the GAC or use COM Interop registration for your assembly?
Both are SetupBuilder Developer Edition built-in features.

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 5