Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to put app.config file with plugin.

Posted on by

Hello All,

I have two class library project .

1. where plugin code is written.

2.where helper classes and one .asmx web reference added.

After building the code i need to register using plugin registration tool.

can anybody help me doing this.

*This post is locked for comments

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: How to put app.config file with plugin.

    We need to add the one section of system.net in the configuration section.

    also we need to add the proxy and bypasslist inside the defaultproxy.

    we can refer below url

    https://msdn.microsoft.com/en-us/library/kd3cf2ex(v=vs.110).aspx

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
    RE: How to put app.config file with plugin.

    Hi

    Could you please tell me what should you change in config file?

  • Verified answer
    EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: How to put app.config file with plugin.

    Hey Guys,

    The issue is resolved .i have changed the web.config file with bypassing the proxy.

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: How to put app.config file with plugin.

    Hello Guys,

    I come to understand this issue is because of the internet proxy.

    can anybody let me know how to bypass the proxy from the CRM server for plugin.

    Do i need to prefer machine.config file or web.config file of CRM .

    any pointer will be helpfull.

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: How to put app.config file with plugin.

    Hello Alagu,

    I understand the point you are talking about.

    I am passing the url from outside i.e. from the plugin unsecure configuration .

    and also dynamically making the endpoint.

    One more thing the same code is working in DEV environment but it's not working on the

    QC environment.

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
    RE: How to put app.config file with plugin.

    Hi

    Because when you run from visual studio your app.config is there so it takes data from appconfig. WHen you register the dll in CRM you are not registering app.config.

    For that only I told use Endpoint address class to build dynamical endpoint instead of referring from app.config file

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: How to put app.config file with plugin.

    Hello Alagu,

    when i am debugging the code by attaching the process using the visual studio we do not get the Endpoint Not found exception but when plugin is running from within the CRM then only the Endpoint Not found exception is coming.

    why ??

    can anybody.

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
    RE: How to put app.config file with plugin.

    Hi

    You have to dynamically create end point address. Please refer below URL

    msdn.microsoft.com/.../ff647110.aspx

    msdn.microsoft.com/.../ms404972(v=vs.110).aspx

    www.codeproject.com/.../dynamically-configure-web-service-endpoint-for-cli

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: How to put app.config file with plugin.

    System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at sub.example.com/sample.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond  (ip address.)

    This is the specific error we are getting from within the plugin.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans