locked
Microsoft.ApplicationServer.Caching.AzureClientHelper.dll in Caching 2.3.1.0 can not be copied locally RRS feed

  • Question

  • There is a problem with Microsoft.ApplicationServer.Caching.AzureClientHelper.dl.

    Here is the problem :
    I have Web assembly which does not use caching. Caching is used by other assembly and it is in another assembly. But the config is in web. Caching nuget package is added in Services assembly and all the implementations and usages go there.

    At the end everything must be copied to Web/bin for the app to load all of its dependencies. The problem is here - Settings CopyLocal = True for Microsoft.ApplicationServer.Caching.AzureClientHelper.dll in Service assembly copies it locally to the Service/bin/Debug but not in Web/bin because I do not reference it in Web assembly.

    The problem could be solved easily with a type variable somewhere but the problem is that all the types of this assembly are internal.

    Any proposal to solve this?

    Thanks.

    Wednesday, April 23, 2014 12:20 PM

Answers

  • We can not because the dll will not arrive in the package for deployment if it is not copied to the web/bin folder before the build therefore it will not be there in the cloud deployment.

    The solution is to use copy task after build for the Service module and to copy it with relative path to the web/bin.

    • Marked as answer by Ognyan Friday, April 25, 2014 7:03 AM
    Friday, April 25, 2014 7:02 AM

All replies

  • Hi,

    From my experience, we could use startup task to do this, startup tasks are actions that are taken before your roles begin, we could copy the dll file to the folder where we want to. see more details at: http://msdn.microsoft.com/en-us/library/hh180155.aspx

    Best Regards

    Jambor


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, April 24, 2014 8:08 AM
  • We can not because the dll will not arrive in the package for deployment if it is not copied to the web/bin folder before the build therefore it will not be there in the cloud deployment.

    The solution is to use copy task after build for the Service module and to copy it with relative path to the web/bin.

    • Marked as answer by Ognyan Friday, April 25, 2014 7:03 AM
    Friday, April 25, 2014 7:02 AM