Issues with assemblies referenced by a managed C++ web service

M

Matthew Kane

I created a VC++ ASP.NET web service project that references several C#
library projects in the same solution.

1. How can I get rid of the warnings that it won't import types from the
assemblies that are under the bin trees because it has already imported them
from the assemblies under the obj trees?

2. How do I get vcdeploy to copy the referenced assemblies to the bin
directory of the website? I added $(References) to the "Additional Files"
under web deployment, but this has two problems:
a. It gives me a warning about not copying the referenced .NET assemblies.
b. It copies the other assemblies to the virtual root and not the bin
subdirectory.

I can live with the warnings (though it does screw up any "no warning"
policy we would try to implement) but if the references don't get deployed to
the bin directory, the web service won't work.
 
S

Steven Cheng[MSFT]

Hi mkane,

Thank you for posting.

As for the private assembly reference's deployment issue in VC ++ ASP.NET
webservice project, I've also performed some tests on my local side and did
found the same behavior (I'm using vs 2005). Actually, I think this is
somewhat due to the particular structure and compilation model of c++
project(though it is managed one) which is quite different those vb.net or
c# ASP.NET web project. Actually the main assembly is being copied at build
time(rather than deploy time when we click deploy button, we can get this
through output command line). Also, as for the "additional files" you
mentioned, it is provided against those non-assembly files, for example,
some static document or resource files( txt , html files....) so that's not
useful to our scenario. So far what I can get is use the project's
Post-Build Event to do the other private assemblies' copy task, e.g:

xcopy /Y $(OutDir)\*.dll $(WebDeployRoot)\$(WebDeployPath)

The above postbuild script copy all the asesmblies from the project's
output dir to the deployment web folder(in IIS)'s private bin subdir.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top