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 6860663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:26:12+00:00 2026-05-27T02:26:12+00:00

We have a farm with 2 servers. I have applied some changes to the

  • 0

We have a farm with 2 servers.
I have applied some changes to the web.config on both servers. (I have a specific web application i.e. I have applied the changes in the web.config of my sharepoint web application and NOT the default Sharepoint site or the central admin site)
But it seems that Sharepoint does not take into consideration these changes!
For example I added an assembly reference …. but sharepoint was still throwing an assembly reference exception. i had to add the assembly reference to each and every control.
I have also increased the execution timeout but it still gives timeouts.

This happens in the production environment only.

In the test (where there is a single server) I update the web.config and all changes work.

Is it because I should not be updating the web config. I have noticed there is an SPWebConfigModification class. Do I have to use this ? won’t it do the same changes as I would have done manually.

Update ….
I have now used the SPWebConfigModification and also did an iisreset … but the changes were simply ignored!

Update 2…

Some more details on my web.config updates

I had added an assembly reference under assemmblies sectuion, somethign like this:

This did not work as Sharepoint was still throwing an exception that the assembly cannot be found.
This problem only happens in the production environment. In dev and test, I was also receiving the exception but when I added the assembly reference above, the error disappeared.

Another thing which did not work is the executionTimeout. I have added this to the production environment but sharepoint is still giving timeouts an a long request wich we have. Again, this entry solved the problem in the test and development environments.

  • 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-27T02:26:13+00:00Added an answer on May 27, 2026 at 2:26 am

    I wrote this for this for Sharepoint 2007, I think you need to modify the impersonation (RunWithElevatedPrivileges) but the rest should work:

    public override void FeatureActivated(SPFeatureReceiverProperties properties)
    {
    
      SPSecurity.RunWithElevatedPrivileges(delegate() {
    
      try
      {
    
         Trace.WriteLine("Try to modify web.config");
         SPWebApplication myWebApp = ((SPWeb)properties.Feature.Parent).Site.WebApplication;
    
         WebConfigModifier mod = new WebConfigModifier(myWebApp, OwnerString);
    
         mod.AddModification(
            "SafeControl[@Assembly='Elsni.WorldsBestProgram, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7639c2c71f2f003']",
            "configuration/SharePoint/SafeControls",
            "<SafeControl Assembly='Elsni.WorldsBestProgram, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7639c2c71f2f003' Namespace='GFA.UniversalListSyncSolution' TypeName='*' Safe='True' />"
         );
    
         mod.AddModification(
            "add[@key='PropertiesSiteUrl']",
            "configuration/appSettings",
            "<add key=\"PropertiesSiteUrl\" value=\"http://iei-developersy/sites/gfaadmin/\" />"
         );
    
         mod.Update();
         Trace.WriteLine("Done.");
      }
      catch (Exception ex)
      {
         Trace.WriteLine("ERROR while activating feature: " + ex.Message);
      }
    }
    });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Linux web server farm with about 5 web servers, web traffic
I have a 3-node web farm being managed by IIS7 and Application Request Routing.
We have an ASP.NET web application hosted by a web farm of many instances
Say I have a web farm of six IIS 7 web servers, each running
We have 2 web servers in a web farm. We push files to web1
We have three web servers in our web farm that are load balanced using
I have a presentation web farm with four load-balanced servers. I have one web
Our web application is deployed in a web farm (more than 20 servers). The
Description: On a C# ASP.Net web application, we have implemented some timers to periodically
I have a web application hosted by a set of load-balanced servers. I have

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.