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 / .NET Framework / CLR / December 2004

Tip: Looking for answers? Try searching our database.

running net application from a shared drive

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rodrigue - 06 Dec 2004 15:43 GMT
I as a developer have an application that I can run from my box or from a
shared drive, but I cannot get anybody else to run it. They do have the same
version of the framework on their boxes, yet they are unable to run the
application. What do I need to do. The error is not a security exception
Richard Blewett [DevelopMentor] - 07 Dec 2004 01:47 GMT
So what *is* the error then?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

  I as a developer have an application that I can run from my box or from a
shared drive, but I cannot get anybody else to run it. They do have the same
version of the framework on their boxes, yet they are unable to run the
application. What do I need to do. The error is not a security exception
Rodrigue - 07 Dec 2004 12:37 GMT
Tracing through the application I think the error happens in the following
code when opening the database (SQLServer 2000)

Module UpgradeSupport
   Friend DAODBEngine_definst As New DAO.DBEngine
   Friend WordGlobal_definst As New Word.Global
End Module

> So what *is* the error then?
>
[quoted text clipped - 8 lines]
>  version of the framework on their boxes, yet they are unable to run the
>  application. What do I need to do. The error is not a security exception
Richard Blewett [DevelopMentor] - 07 Dec 2004 12:47 GMT
OK, so it looks like you are doing COM interop. But how does the error manifest itself? is it an exception? If so, what is the exception and the stacktrace. How about putting some tracing code in there to see which of those lines fails.

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

  Tracing through the application I think the error happens in the following
code when opening the database (SQLServer 2000)


Module UpgradeSupport
Friend DAODBEngine_definst As New DAO.DBEngine
Friend WordGlobal_definst As New Word.Global
End Module

"Richard Blewett [DevelopMentor]" wrote:

> So what *is* the error then?
Rodrigue - 07 Dec 2004 13:01 GMT
here is the statement where it fails
       gsnapshotdb = DAODBEngine_definst.OpenDatabase(gstDatabase, False,
False, gstdbconnect)
the error states "type initializer for Myapp.UpgradeSupport threw an
exception.
I want to thank you for trying to help me

> OK, so it looks like you are doing COM interop. But how does the error manifest itself? is it an exception? If so, what is the exception and the stacktrace. How about putting some tracing code in there to see which of those lines fails.
>
[quoted text clipped - 16 lines]
>  
>  > So what *is* the error then?
Richard Blewett [DevelopMentor] - 07 Dec 2004 13:20 GMT
So is gstDatabase a string to the .mdb file location? is it correct for a network based client?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

  here is the statement where it fails
gsnapshotdb = DAODBEngine_definst.OpenDatabase(gstDatabase, False,
False, gstdbconnect)
the error states "type initializer for Myapp.UpgradeSupport threw an
exception.
I want to thank you for trying to help me

"Richard Blewett [DevelopMentor]" wrote:
Rodrigue - 07 Dec 2004 15:29 GMT
Yes it is correct for a network based client. Again I can run the code on the
server and on my box without any problem

> So is gstDatabase a string to the .mdb file location? is it correct for a network based client?
>
[quoted text clipped - 12 lines]
>  
>  "Richard Blewett [DevelopMentor]" wrote:
Ravichandran J.V. - 17 Dec 2004 10:02 GMT
What are you using? Remoting?

with regards,

J.V.Ravichandran
Signature

- http://www.geocities.com/
 jvravichandran
- http://www.411asp.net/func/search?
 qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com 
- http://www.MSDNAA.Net 
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
 display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
 at http://www.Google.com


Rate this thread:







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.