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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:09:10+00:00 2026-05-24T21:09:10+00:00

using (SPSite site = new SPSite(http://servername/sites/test/)) { PageViewerWebPart pvwp = new PageViewerWebPart(); pvwp.Title =

  • 0
using (SPSite site = new SPSite("http://servername/sites/test/"))
       {
            PageViewerWebPart pvwp = new PageViewerWebPart();
            pvwp.Title = "My Page Viewer Web Part";
            pvwp.ContentLink = "http://www.cnn.com";
        }

Cannot retrieve the URL specified in the Content Link property. For more assistance, contact your site administrator.

sometimes i get the error The Web Part has timed out and sometimes the above error. and i make sure that my internet is working so i opend the browser and able to access the site

  • 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-24T21:09:12+00:00Added an answer on May 24, 2026 at 9:09 pm

    I could not reproduce this, so i would assume it’s an permission issue. Try running your code with elevated privileges:

    SPSecurity.RunWithElevatedPrivileges(delegate
    {
        using (var site = new SPSite("http://servername/sites/test/"))
        {
            var pvwp = new PageViewerWebPart
            {
                Title = "My Page Viewer Web Part",
                ContentLink = "http://www.cnn.com"
            };
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the following code: using (SPSite site = new SPSite(http://localhost/)) { using (SPWeb web
I have the following code snippet: using (SPSite site = new SPSite(this.ListAddress)) { using
I have this code: using ( var site = new SPSite( myUrl ) )
I'm using the following code to add web parts to a page programmatically, however
I am having trouble doing something simple like the following using (SPSite site =
using (var file_stream = File.Create(users.xml)) { var serializer = new XmlSerializer(typeof(PasswordManager)); serializer.Serialize(file_stream, this); file_stream.Close();
Using Nunit, I want to be able to write a test fixture that will
I have a WSP containing a web scope feature with the following code: using
Error Details: The Web application at http://dev001aaamaaind:333/ could not be found. Verify that you
Using string.Join(,, test); works but for some reason I get an output of: Ilistprac.Location,

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.