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

  • SEARCH
  • Home
  • 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 4330594
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:59:02+00:00 2026-05-21T09:59:02+00:00

I added the following to: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\machine.config <system.net> <connectionManagement> <add address=* maxconnection=192 /> </connectionManagement> </system.net>

  • 0

I added the following to:

C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\machine.config

<system.net>
    <connectionManagement>
        <add address="*" maxconnection="192" />
    </connectionManagement>
</system.net>

After saving the application was running fine. However calls to third party web services/web method (MICROSOFT MAPPOINT, another API unrelated to Microsoft i.e two independent references) failed to work. One of which returned the following error:

--------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an object.]
   WebApp.AddUpdate.LoadWebServiceRecord() +7740
   WebApp.AddUpdate.MessageBox1_YesClicked(Object sender, EventArgs e) +51
   WebApp.webcontrols.MessageBox.Yes_Click(Object sender, EventArgs e) +140
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +114
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +139
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +28
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2980

Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209

i.e exception above appears to have been created as it could no longer contact the service.

Remove the amendment in machine.config i.e remove the maxconnection rows and it all works fine again. Any idea why?

Do i need to declare the third party reference’s in maxconnection?

if so would it be possible to provide and example?

  • 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-21T09:59:03+00:00Added an answer on May 21, 2026 at 9:59 am

    Generally speaking, you shouldn’t have to adjust it manually. ASP.NET 2 sets processModel to auto by default which among other things automatically scales maxconnections for the # of CPUs available (12N).

    As to the error you’re seeing, there must be more than meets than eye; the two are completely unrelated and there is no reason any maxconnection value would trigger a NullReferenceException in your application.

    HTH

    References:

    http://technet.microsoft.com/en-us/magazine/2006.11.insidemscom.aspx

    http://msdn.microsoft.com/en-us/library/7w2sway1.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to encrypt my web.config file on my dev machine (Windows XP SP-3)
Short version: i've added <system.web> <system.diagnostics> <trace> <listeners> <add name=WebPageTraceListener type=System.Web.WebPageTraceListener, System.Web, Version=2.0.3600.0, Culture=neutral,
I added following command to Sessions -> Startup program but it didn't work. I'm
I added following line of code in .vimrc let g:jslint_status = 'enabled' if exists(jslint_status)
For my project I have added following line of code in applicaiton.ini resources.layout.layoutPath =
I added the following function so I could iterate backwards over some collections: jQuery.reverseEach
I have added the following method in my User Domain class String getNameAttribute(){ return
I have added the following fine function to my status bar to show which
I have two models Artist and Painting . I added the following migration and
I'm trying to build my application for GoogleAppEngine using maven. I've added the following

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.