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

Discussion in 'ASP .Net Web Services' started by Matthew Kane, May 15, 2006.

  1. Matthew Kane

    Matthew Kane Guest

    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

    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.
    Matthew Kane, May 15, 2006
    1. Advertisements

  2. 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 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.


    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!
    (This posting is provided "AS IS", with no warranties, and confers no
    Steven Cheng[MSFT], May 16, 2006
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. BH
    Kevin Spencer
    Aug 5, 2003
  2. =?Utf-8?B?Sm9obiBIIENsYXJr?=

    Use global assembly cache for referenced assemblies

    =?Utf-8?B?Sm9obiBIIENsYXJr?=, Aug 22, 2006, in forum: ASP .Net
    Steven Cheng[MSFT]
    Aug 23, 2006
  3. Rahul
    John Saunders [MVP]
    Mar 1, 2008
  4. Ken Varn
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    May 30, 2007
  5. Ray Stevens
    Josh Twist
    Feb 4, 2006

Share This Page