Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7049623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:02:31+00:00 2026-05-28T03:02:31+00:00

When i try to view MDIParent screen in designer mode I’m getting below exception…

  • 0

When i try to view MDIParent screen in designer mode I’m getting below exception…

`Could not find endpoint element with name ‘NetTcpBinding_IMyService’ and contract ‘ClientProxy.IMyService’ in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.’

Little background to understand my question more clearly…

I’ve a WCF server which I’m trying to consume in my Winform application. So i’ve created a separate class library in which i added service reference and created a proxy. I’ve copied the client endpoint info from app.config in class library to UI app.config file.

When i run the application everything is working fine but when i try to open MDIParent screen in designer mode its throwing above exception.

Note: I think i’m getting error because i’m trying to create a proxy object on NEW method (form constractor) if i comment that line – i’m able to view designer screen.

Please help 🙂

  • Venky
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:02:32+00:00Added an answer on May 28, 2026 at 3:02 am

    If you instantiate the service in the form’s constructor, this could be the source of your problem.

    If this is the case, wrap the service initialization in a test for DesignMode:

        If Not Me.DesignMode Then
           ' Initialize service
        End If
    

    Update

    It turns out that DesignMode is not supported in the constructor.

    There are a couple of workarounds to choose from:

    1) Use the following instead of the designmode test:

    If System.ComponentModel.LicenseManager.UsageMode <> System.ComponentModel.LicenseUsageMode.Designtime Then`
    

    2) Move your initialization code from the constructor into the Form’s _load event and then use the DesignMode test.

    Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load
    
        If Not Me.DesignMode Then
            ' Initialize service
        End If
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im getting this exception when the view try to renders, im using the icefaces
I keep getting this error when I try and view my register user page
I'm getting the following error whenever I try to view JSF pages that contain
I'm getting the following ugly warning when I try to view my website on
I try to change the dimensions of the view in interface builder from the
When I try to execute a view that includes tables from different schemas an
When we try to create a view within a funcion we get ERROR: there
When I try to cick on cell in my table view rather than take
I try to set the anchorPoint property, in order to rotate a view by
I have this problem when i try to synchronize a observable list with listbox/view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.