Project works frm VS.Net 2003 & not working whn install setup in v

  • Thread starter V.Chockalingam.
  • Start date
V

V.Chockalingam.

IDE : VS .NET 2003,
Platform : .NET 2.0,

Hi All,

I have my project in VS.Net 2003 (VB.Net). The OS is Vista Ultimate.
In a form's Button_Click() event i call a dll which calls another dll and
returns a DataTable .
The purpose of these dll's are 1. to open a excel file and fetch values 2.
process fetched values and return a DataTable.
When I run project from VB.Net 2003, the project runs fine without any
problem in Vista Ultimate and XP.
I create a setup for my project in Vista and installed in XP, it works fine.
But when i install the same setup in same machine (Vista), its getting
installed but this particular Button_Click which calls the dll's gives the
error "Object reference not set to an instance of an object."

It works when we run in the project from Visual Studio .Net 2003 and not
working when we install the application in Vista.
Thanks for any help.

Thanks,
V.Chock
 
K

kimiraikkonen

IDE : VS .NET 2003,
Platform : .NET 2.0,

Hi All,

I have my project in VS.Net 2003 (VB.Net). The OS is Vista Ultimate.
In a form's Button_Click() event i call a dll which calls another dll and
returns a DataTable .
The purpose of these dll's are 1. to open a excel file and fetch values 2.
process fetched values and return a DataTable.
When I run project from VB.Net 2003, the project runs fine without any
problem in Vista Ultimate and XP.
I create a setup for my project in Vista and installed in XP, it works fine.
But when i install the same setup in same machine (Vista), its getting
installed but this particular Button_Click which calls the dll's gives the
error "Object reference not set to an instance of an object."

It works when we run in the project from Visual Studio .Net 2003 and not
working when we install the application in Vista.
Thanks for any help.

Thanks,
V.Chock

I think that might occur because one of (or more) your DLLs are not
available or registered in Vista. I recommend you to regsvr32 all the
DLLs and place them to their correct locations.
 
C

Chocks

Hi,

First i went to command line and went to C:\Program Files\vstech\Sangh
\. This is the place where the DLL is located after the application is
installed.
I tried to register with the following 2 ways.

C:\Program Files\vstech\Sangh> regsvr32 SanghEngine.DLL
C:\Program Files\vstech\Sangh> regsvr32 /i:[cmdline] SanghEngine.DLL

but i get the same 2 line error for both the statement as follows

The module "SanghEngine.DLL" was loaded but the entry-point
DLLRegisterServer was
not found.
Make sure that "SanghEngine.DLL" is a valid DLL or OCX file and then
try again.


For Your Information. I have the same DLL in my project and when i am
running the project, the same ButtonClick works fine for me. But after
i create the setup and installed, buttonclick is not working in the
application. Thans for your support.

Thanks,
V.Chock.
 
P

Phill W.

V.Chockalingam. said:
IDE : VS .NET 2003,
Platform : .NET 2.0,

VS.Net 2003 targets Framework /1.1/, not Framework 2.0 although anything
built to run on the former /should/ work on the latter.
I have my project in VS.Net 2003 (VB.Net). The OS is Vista Ultimate.
In a form's Button_Click() event i call a dll which calls another dll and
returns a DataTable .

What /sort/ of Dll's?
How do they get [deployed] onto the target machine?
Do they need "registering" (adding to the Global Assembly Cache)?
The purpose of these dll's are 1. to open a excel file and fetch values 2.
process fetched values and return a DataTable.

Is Excel installed on the client machine?
Is that version of Excel the /same/ one that you developed against?
When I run project from VB.Net 2003, the project runs fine without any
problem in Vista Ultimate and XP.
I create a setup for my project in Vista and installed in XP, it works fine.

You should generally build and package on the /lowest/ Operating System
that you intended to support; the installer will then /tend/ to work on
the "higher" versions. Doing it the other way around generally leads to
problems.
But when i install the same setup in same machine (Vista), its getting
installed but this particular Button_Click which calls the dll's gives the
error "Object reference not set to an instance of an object."

I'm a little surprised that you're getting a NullReference Exception.
Usually you'll get FileNotFound, or TypeLoad Exceptions in these cases.

Have a look at the "Assembly Binding Log Viewer" utility (FusLogVw.exe;
ships with VS'); this can tell you /where/ the exe was looking for the
called Dll's when it fails to find them.
It works when we run in the project from Visual Studio .Net 2003 and not
working when we install the application in Vista.

This isn't a Windows Service, by any chance, is it?

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top