Okay, I've got a strange one, I have a SharePoint WebPart in WSS 3.0, which is still inquiring using Yahoo's traffic interface. VB.NET and HttpWebRequest object though I was getting an error message from Yahoo was saying that I was unauthorized, for further examination, I saw that it is giving to the URL Yahoo:
Parameters are set as follows:
In the form of a personal _AppID string
& lt; Personalized (true), WebBrowsable (true), WebDisplayName ("Yahoo app ID"), WebDescription ("Yahoo application id") & gt; _State return _AppID termination as the public property AppID () _AppID = set end value (byVal value as string value); end end of the property get the private _City string as & lt; Personalized (true), WebBrowsable (true), WebDisplayName ("city"), WebDescription ("city") & gt; _ Public property (City) return as the string _City termination _City = value end date set property get the personal _State (byVal value as string) set as string received & lt; Personalized (true), WebBrowsable (true), WebDisplayName ("state"), WebDescription ("state") & gt; _ Public Property State () Return as String _State End Set (byVal Value as String) _State = Get Go End Set End Property Private _radius as string = "-1" & lt; Personalizationable (true), WebBrowsable (true), WebDisplayName ("radius (in miles)"), webdescription ("radius in miles") & gt; _ Public Property radius () meets as a string, then _radius = "-1" Then return to "20" end _radius or back end Get Set (ByVal value As String) _radius = Value End Set
and properties
and such as calling calling:
try dim URL string = "" Aaidik as new d .DataSet Url = "http: /local.yahooapis.com/MapsService/V1/trafficData?appid=" & amp; Me.AppID & amp; "And city =" & amp; Me.City & amp; "& Amp; State =" & amp; Me.State & amp; "& Radius =" & amp; Me.Radius Dim aRequest n.HttpWebRequest = CType (n.HttpWebRequest.Create (Url), n.HttpWebRequest) as dIMARPS n.HttpWebResponse aResponse = CType (aRequest.GetResponse (), n.HttpWebResponse) If a response .StatusCode & Lt; & Gt; Net.HttpStatusCode.OK then new exception throws ( "server code it back" and amp; aresponse.StatusCode.ToString () and aResponse.StatusDescription) end if aDoc.ReadXml (aResponse.GetResponsestream ()) aDoc To invent system as Catch .Diagnostics.EventLog.WriteEntry ( "YahooTrafficUtil", ex.Message & amp; ex.StackTrace & amp; url) dim aContext as System.Web.HttpContext = System.Web.HttpContext.Current aContext.Trace.Warn (ex.ToString () & amp; ex.StackTrace) childException = ex back, try not
end
this is a test server that I debugging Can not use on, But my development server is fine check, everything passes through, no matter.
The AppId, City and State parameters are listed in my SharePoint Web Part, but for some reason, the fact is that despite the populating of these web parts, they have no ideas from the crowd passing by the blank? Thanks!
After you have experimented with various WebPartStorage (Storage.Personal) [Error on Storage.Personal] Property Decoration? I assume that the error is not on the storage of the property but the code.