locked
error in run website RRS feed

  • Question

  • User23708062 posted

    i have problem when im run website that is location using HTTP

    the error message:

    unable to start debugging on the web server. the underlying connection was closed an unexpected error occurred on a send

     

    im using Microsoft.SharePoint; library and this is my simple code:

    protected void Page_Load(object sender, EventArgs e)

        {  

    SPWeb web = SPContext.Current.Web;

     Label1.Text ="welcome" + web.Title;

        }

    im using VS2008 and IIS7

     

     

     

    Tuesday, July 31, 2012 4:59 AM

All replies

  • User-661350001 posted

    are you using this inside usercontrol ?

    this code will work in webpage if you are running it service you will get this error to aviod just pass the url in the constructor

    Tuesday, July 31, 2012 8:26 AM
  • User-661350001 posted

    are you using this inside usercontrol ?

    this code will work in webpage if you are running it service you will get this error to aviod just pass the url in the constructor

    Tuesday, July 31, 2012 8:26 AM
  • User23708062 posted

    no this code written in webpage

    but i think the error from site name

    my site name:

    https://localhost:222/_layouts/WebSite

    Wednesday, August 1, 2012 4:47 AM