Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 22nd, 2008, 01:18 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: West Palm Beach, Florida, USA.
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default Reference not found on published application

I have a windows application that uses some references. I add the refernces using the 'Add Reference' and under the .Net tab I find the reference. I add it to my application. The application works fine.

Now I publish it to a web server. Then when I run the application from another PC it errors off on one of my added references that points to 'C:\Program Files\.....'. Error is:

Unable to run application. The application requires that assembly Advantage.Data.Provider Version 8.10.2.18 be installed in global Assembly Cache first.

What I am doing wrong?

Reply With Quote
  #2 (permalink)  
Old February 22nd, 2008, 01:37 PM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

You can't install applications into the GAC using ClickOnce technologies. You'll need to write a standard setup.exe and do it that way instead.

However once the DLL is in the GAC you could use ClickOnce to deploy the rest of the application.

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
  #3 (permalink)  
Old February 22nd, 2008, 03:23 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: West Palm Beach, Florida, USA.
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Do you have any litterature reference or exmaples, remember, you are dealing with a "beginner" here. It sounds very complicated. If I published to a File Share location would same apply? Thank you.

Reply With Quote
  #4 (permalink)  
Old February 22nd, 2008, 03:53 PM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Yes, the same would happen. Try adding a Setup project to your solution instead (found under "Other Project Types" or "Setup and Deployment" I forget which in VS 2005).

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
  #5 (permalink)  
Old February 22nd, 2008, 04:49 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: West Palm Beach, Florida, USA.
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default

So by using a SetUp project I would bypass anything that has to do with "web", correct? I thought any "web" application had a \bin directory where I could place reference to my Data Provider (and don't have to use GAC)? This would limit the use of these references to this application only.

Reply With Quote
  #6 (permalink)  
Old February 22nd, 2008, 05:02 PM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

You said you where developing a Windows application, not a web site.

I suspect even if you where developing a web site you would still have to place the DLL in the GAC (there is a tool for doing this by the way, called gacutil.exe).

As to WHY that is I wouldn't know - only the developers would be able to tell you why they added that restriction.

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
  #7 (permalink)  
Old February 22nd, 2008, 05:09 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: West Palm Beach, Florida, USA.
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Yes, this is a windows application that I publish (click once) to a web site. I could create a set-up project and use the msi installer and that would work. But I this case they want the app to be published to a web site.

Reply With Quote
  #8 (permalink)  
Old February 22nd, 2008, 06:15 PM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

You can still upload the .msi or .exe to a web site for download (thats basically all the ClickOnce does really, it just makes it look nicer).

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Error in '/' Application - Method not found Jan_Ma ASP.NET 1.0 and 1.1 Professional 1 October 27th, 2003 03:27 PM
Server Error in '/' Application - Method not found Jan_Ma Classic ASP Databases 1 October 17th, 2003 09:01 AM
Server Error in '/' Application - Method not found Jan_Ma Classic ASP Professional 0 October 16th, 2003 08:07 PM



All times are GMT -4. The time now is 12:13 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.