Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
|
.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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2008, 01:18 PM
Friend of Wrox
 
Join Date: Mar 2007
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?

 
Old February 22nd, 2008, 01:37 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
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 -/
 
Old February 22nd, 2008, 03:23 PM
Friend of Wrox
 
Join Date: Mar 2007
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.

 
Old February 22nd, 2008, 03:53 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
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 -/
 
Old February 22nd, 2008, 04:49 PM
Friend of Wrox
 
Join Date: Mar 2007
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.

 
Old February 22nd, 2008, 05:02 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
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 -/
 
Old February 22nd, 2008, 05:09 PM
Friend of Wrox
 
Join Date: Mar 2007
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.

 
Old February 22nd, 2008, 06:15 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
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 -/





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.