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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:31:05+00:00 2026-06-06T03:31:05+00:00

I Created a warm up Script for Sharepoint 2007 Farm, I am getting all

  • 0

I Created a warm up Script for Sharepoint 2007 Farm, I am getting all URLs of webapps, sitecollections, sites, webs & subwebs in ArrayLists. After that I am using following code to get responce from each web, but its taking too much time, I was wondering if there is any alternative or better way to do it, and it will take less time/resources.

                WebRequest request = WebRequest.Create(URL);
                request.Proxy = null;

                if ((userName == null) || (userName == ""))
                {
                    request.Credentials = CredentialCache.DefaultCredentials;
                }
                else
                {
                    CredentialCache myCache = new CredentialCache();
                    myCache.Add(new Uri(URL), authType, new NetworkCredential(userName, password, domain));
                    request.Credentials = myCache;
                }

                HttpWebResponse response = (HttpWebResponse)request.GetResponse();
                Console.WriteLine(response.StatusDescription);
                using (Stream dataStream = response.GetResponseStream())
                using (StreamReader reader = new StreamReader(dataStream))
                {

                    string responseFromServer = reader.ReadToEnd();
                    reader.Close();
                    dataStream.Close();
                    response.Close();
                }

I tried on google but couldn’t find much related or I dont know how to make it related to this,

Cheers

  • 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-06-06T03:31:06+00:00Added an answer on June 6, 2026 at 3:31 am

    If you aren’t worried about overloading the server, split the URL list and fire off 5 or 10 of these processes. There could be a lot of waiting when sending and receiving.

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

Sidebar

Related Questions

Created new scaffold Users that has fields name & description All working as suppose
Created Private Key & Self signed certficate in a Key Store keytool -genkey -alias
Created an extensive batch script program to handle some automated file management and printing
created a new IIS7 web site with Intergrated .net 4.0 app pool. URLs ending
Created a button, now tried to add it to the screen and im getting
created a very basic WS. i have LoggingHandler, Test, TestImpl, & TestPublisher. my publisher
Created .NET WCF service, tested it - works. Generated schemas from Data and service
Created an OpenGraph action and object. Trying to submit my action. When I click
I created a batch file to run SqlMetal and generate Linq2Sql data classes, check
I created a proxy of a Web Service with Visual Studio 2008, and it

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.