Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / March 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
V.Chockalingam. - 04 Mar 2008 11:58 GMT
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
kimiraikkonen - 04 Mar 2008 19:19 GMT
On Mar 4, 1:58 pm, V.Chockalingam.
<V.Chockaling...@discussions.microsoft.com> wrote:
> IDE : VS .NET 2003,
> Platform : .NET 2.0,
[quoted text clipped - 19 lines]
> 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.
Chocks - 05 Mar 2008 08:06 GMT
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.

> On Mar 4, 1:58 pm, V.Chockalingam.
>
[quoted text clipped - 28 lines]
>
> - Show quoted text -
Phill W. - 05 Mar 2008 12:49 GMT
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.