473,327 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Deploy All Dependent Files

I have a Visual Studio.Net solution that has several projects, one of which
is a web service project. I has a reference set to a DLL which is in the
same solution, but is a separate project. When I go to publish the web
service, there does not seem to be an option that would automatically
determine what references there are in the DLL, so dependencies for that DLL
do not publish for the web service project. Do I have to do an InstallShield
build or similar to make this happen?

Derek
Jul 14 '08 #1
4 2358
Is this a Web Site project (File->New->Web Site) or a Web Application
project (File->New->Project)? If the latter, then there should be no
problem; the dependency should get copied to the bin folder and deployed
from there.

If the former, then I don't know since I never use Web Site projects. Your
issue is one of the reasons I don't.

--
John Saunders | MVP - Connected System Developer
Jul 14 '08 #2
Actually, it is a new project (File-New-Project), and it is a new ASP.NET
Web Service Application - I understand that references in this project will
populate, but I have another project in the same solution, which is a set of
VB.Net classes (so another project, another DLL, but in the same solution).
I was hoping to figure out the best way to have the references in the VB.Net
application get published. I guess it is not enough that the web service
project is in the same solution, nor can the publishing component figure out
that the web service is dependent on the vb.net dll, and to look for
references in the vb.net project. Should I simply add all the same
references that are in the VB.Net project into the Web Service project?

Derek

"John Saunders" <no@dont.do.that.comwrote in message
news:uO**************@TK2MSFTNGP02.phx.gbl...
Is this a Web Site project (File->New->Web Site) or a Web Application
project (File->New->Project)? If the latter, then there should be no
problem; the dependency should get copied to the bin folder and deployed
from there.

If the former, then I don't know since I never use Web Site projects. Your
issue is one of the reasons I don't.

--
John Saunders | MVP - Connected System Developer


Jul 14 '08 #3
Actually, it is a new project (File-New-Project), and it is a new ASP.NET
Web Service Application - I understand that references in this project will
populate, but I have another project in the same solution, which is a set of
VB.Net classes (so another project, another DLL, but in the same solution).
I was hoping to figure out the best way to have the references in the VB.Net
application get published. I guess it is not enough that the web service
project is in the same solution, nor can the publishing component figure out
that the web service is dependent on the vb.net dll, and to look for
references in the vb.net project. Should I simply add all the same
references that are in the VB.Net project into the Web Service project?

Derek

"John Saunders" <no@dont.do.that.comwrote in message
news:uO**************@TK2MSFTNGP02.phx.gbl...
Is this a Web Site project (File->New->Web Site) or a Web Application
project (File->New->Project)? If the latter, then there should be no
problem; the dependency should get copied to the bin folder and deployed
from there.

If the former, then I don't know since I never use Web Site projects. Your
issue is one of the reasons I don't.

--
John Saunders | MVP - Connected System Developer


Jul 14 '08 #4
Ok, so it sounds like your web service project _does_ reference the class
library, so you are getting the class library DLL deployed. But you are not
getting the dependencies of the class library deployed. Is that correct?

Yes, one workaround would be to duplicate the references. A simple setup
project would also work. To learn why Publish isn't getting all the
second-level references would require study of the MSBUILD output, and I
doubt I'll have enough time this week. If you want to do it yourself, I
suggest you use the Tools->Options and set the MSBUILD output level to
verbose; do the publish, then look at the output in the Output window.
You'll want to save it to a file first, it will be large.

In particular, there are places where MSBUILD will call project B from the
project A build, sort of like a subroutine. Gathering references is one
example of where this is done. Look in the output from the build of your web
service project for calls to your VB project and see if you can see a step
being skipped, or some other reason why not all of the references are
gathered or copied.

And if you find out what's wrong, please post the answer here.

--
John Saunders | MVP - Connected System Developer

"Derek Hart" <de********@yahoo.comwrote in message
news:es**************@TK2MSFTNGP04.phx.gbl...
Actually, it is a new project (File-New-Project), and it is a new ASP.NET
Web Service Application - I understand that references in this project
will populate, but I have another project in the same solution, which is a
set of VB.Net classes (so another project, another DLL, but in the same
solution). I was hoping to figure out the best way to have the references
in the VB.Net application get published. I guess it is not enough that the
web service project is in the same solution, nor can the publishing
component figure out that the web service is dependent on the vb.net dll,
and to look for references in the vb.net project. Should I simply add all
the same references that are in the VB.Net project into the Web Service
project?

Derek

"John Saunders" <no@dont.do.that.comwrote in message
news:uO**************@TK2MSFTNGP02.phx.gbl...
>Is this a Web Site project (File->New->Web Site) or a Web Application
project (File->New->Project)? If the latter, then there should be no
problem; the dependency should get copied to the bin folder and deployed
from there.

If the former, then I don't know since I never use Web Site projects.
Your issue is one of the reasons I don't.

--
John Saunders | MVP - Connected System Developer


Jul 14 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wilson Ricardo Passos Oliveira | last post by:
Hi fellows, I have two simple questions regarding the Framework's deploy and the Setup and Deploy Projects: 1. As I've read in another posts and newsgroups (and as I can imagine), VS.NET...
3
by: Nus Pieds | last post by:
Hi, I create and develop my ASP.NET apps locally on my PC, which is running IIS. Now I want to deploy those apps on another web server (application run-time only), so what exactly are the...
2
by: Marcus | last post by:
I have seen many posts of people with the same problem as me (attached below), but I have yet to see any solutions posted. Has anyone figured out how to deploy an Asp.net web site to the webserver...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
0
by: Mircea Pleteriu | last post by:
Hi, I will present you a virtual scenario. Here it is. Say, we develop a web app consisting in one page only. The page displays a culture-dependent text and a switch (as a dropdown list) to...
6
by: AGP | last post by:
I resisted for many years but I've just written my first app in .NET2005 and am looking to deploy my app with a third-party installer. ClickOnce and the VS Installer do not meed my needs and I am...
6
by: =?Utf-8?B?QW5kcmV3X2QxMjM=?= | last post by:
Here is my problem. I have an app that has over 9 web services. For years I had not issues with clickonce but now it looks like the build is missing XmlSerializers.dll.deploy. I did have this...
4
by: Amirallia | last post by:
Hi, How can I deploy my Web service on IIS 6.0 ? I create a web service with VS 2005 on the local IIS, now I must deploy it on an intranet with IIS 6.0. But I can access this intranet, and I...
0
by: stephen | last post by:
Hi, I am using Click Once Deploy to deploy an application.(this application has an .exe, .config, .xml files) and after deployment to a location, I checked for the files and all the files are...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.