Getting Started with ASP.NET MVC - Part 5: How to do programming with razor syntax
First Time? You can support us by signing up. It takes only 5 seconds. Click here to sign up. If you already have an account, click here to login.
Loading

Ask in the public forum

Ask your questions in a public forum

My Blog Posts

  • Issues with Library.dll, Library.dll.config with outlook addin and ClickOnce

    1. I have a MyServiceLibrary that talks to a WebService. So when i added service reference it automatically created app.config with following lines.

      client> endpoint address="https://xxxxxx/aal.asmx" binding="basicHttpBinding" bindingConfiguration="AALSoap" contract="ActivationService.AALSoap" name="AALSoap" /> /client>

    so application executes this line it automatically reads endpoints from config.

    ActivationService.AALSoapClient c = new ActivationService.AALSoapClient();

    1. I have an Windows Application WinApp.exe that adds reference to this library. That is where i learned that even my manually copying MyServiceLibrary.dll.config into WinApp.exe folder the Library does not read from it. it will only read WinApp.exe.config file. So i copied entries from MyServiceLibrary.dll.config into WinApp.exe.config and things did worked.

    2. But now i have a real trouble with my OutLook Addin application. This application itself is a DLL and not EXE. Which means here i do not have any chance to copy config entries like in point #2. So here is where i need a solution

    a. How do i make MyServiceLibrary.dll to read MyServiceLibrary.dll.config file, such that it works for WinApp as well as outlook Addin apps, (Possibly without changing any lines of code in MyServiceLibrary.dll or minimum lines).

    b. While compiling along with latest MyServiceLibrary.dll , even MyServiceLibrary.dll.config should be copied into output directory in respective projects, where ever this library is referenced.

    c. I am using Clickonce Deployment for WinApps as well as for OutLook Addin apps. so MyServiceLibrary.dll.config also should automatically be a part of respective Clickonce deployment for both.

    Environment : .NET 4.0, VS2010. (Please advice solutions using .net 4.0 and not of older versions. )

    Regards

    Jignesh Desai
    428 · 0% · 55

Your Reply


Sign Up or Login to post an answer.

Managed Windows Shared Hosting by OrcsWeb

Copyright © Beyondrelational.com