|
Here is a function which are we using for importing rss feed.....
public void getRss()
{
WebRequest rssReq = WebRequest.Create("http://www.morningstaradvisor.com/rssdata/xml/getrssdata.xml");
WebProxy ps = new WebProxy("http://www.morningstaradvisor.com/rssdata/xml/getrssdata.xml", true);
rssReq.Proxy = ps;
rssReq.Timeout = 50000;
try
{
WebResponse rep = rssReq.GetResponse();
XmlTextReader xtr = new XmlTextReader(rep.GetResponseStream());
DataSet ds = new DataSet();
rep.Close();
ds.ReadXml(xtr);
rssRepeater.DataSource = ds.Tables[3];
rssRepeater.DataBind();
}
catch (Exception ex)
{
throw ex;
}
it gives error.....
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 216.228.228.150:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at _Default.getRss() at _Default.Page_Load(Object sender, EventArgs e)
|
|
|
|
|
|
Hi Sashidhar..
Here is a function which are we using for importing rss feed.....
public void getRss()
{
WebRequest rssReq = WebRequest.Create("http://www.morningstaradvisor.com/rssdata/xml/getrssdata.xml");
WebProxy ps = new WebProxy("http://www.morningstaradvisor.com/rssdata/xml/getrssdata.xml", true);
rssReq.Proxy = ps;
rssReq.Timeout = 50000;
try
{
WebResponse rep = rssReq.GetResponse();
XmlTextReader xtr = new XmlTextReader(rep.GetResponseStream());
DataSet ds = new DataSet();
rep.Close();
ds.ReadXml(xtr);
rssRepeater.DataSource = ds.Tables[3];
rssRepeater.DataBind();
}
catch (Exception ex)
{
throw ex;
}
it gives error.....
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 216.228.228.150:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at _Default.getRss() at _Default.Page_Load(Object sender, EventArgs e)
|
|
|
|
|
Did you test whether you are able to access those URLs using the Internet Explorer of your web server?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
No it gives me Error...
The page can not be displayed
.
.
.
.
where as other are opening easily ..
|
|
|
|
|
Member 3169981 wrote: XmlTextReader xtr = new XmlTextReader(rep.GetResponseStream());
DataSet ds = new DataSet();
rep.Close();
ds.ReadXml(xtr);
Its Because You r closing the response before reading.
Try to do linke this
ds.ReadXml(xtr);
rep.Close();
Why Do People Forget To Mark If it Helps
If It Helps Click It as Answer
|
|
|
|
|
hi actully i remove it..but problem is still same...
Is it because of feed url
http://www.morningstaradvisor.com/rssdata/xml/getrssdata.xml
is not opening on live server browser but when I try it with IP Address then it's opening without problem..
|
|
|
|
|
The Request Is Coming Blank .There is no Request coming from the site and the other problem in ..!It Is not in the format of XML.I am Going May the Group Hels You
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Member 3169981 wrote: http://www.morningstaradvisor.com/rssdata/xml/getrssdata.xml
This link works fine for me from the UK, using FireFox 3.5. and IE8.
|
|
|
|
|
Hi,
I have made a class of CompositeControl and when I use AjaxControlToolkit.FilteredTextBoxExtender on it, it gives the following error:
<br />
'AjaxControlToolkit.FilteredTextBoxExtender' cannot extend controls of type MyClassName<br />
I have also tried to implement AjaxControlToolkit.IControlResolver on my class but didnt work.
Please help.
|
|
|
|
|
hi sir,
i have a problem while i am trying to open my crystal report for web application on another system.i have all the dll's for crystal report in web application folder during making setup for this.but now when i am trying to open report on another system it gives me error.actually i have found following error message.
*************************************
An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
*********************************************
please give me proper guideline
|
|
|
|
|
vikas shukla wrote: i have all the dll's for crystal report in web application folder during making setup for this
This won't be sufficient. The error message says you need to install Crystal Reports redistributable.
|
|
|
|
|
sorry sir,but i am unable to understand you.
but thanks for your suggestions.
my problem has solved.
|
|
|
|
|
Hello Vikas,
Can you tell me how you solved that Crystal Report problem?
I am also facing same problem after server is changed to 64 Bit processor and OS.
Regards,
Girish
|
|
|
|
|
Hi
can any one healp me
In my custom server controls library, I would like to include an aspx page I created that to get some data from user and sage to database
I was hoping I could embed it as a resource. The property page allows me to set the build action to "Embedded Resource" and it compiles it into the .dll just fine. However, when adding the WebResource assembly attribute to the AssemblyInfo.cs file, I don't know what content-type to use. I also thought I would need to set PerformSubstitution to true.
However, after some reading, it appears that this won't work as .net will not actually parse/compile/execute the resource as a .net page.
<Assembly: WebResource("Name", "Content Type", PerformSubstitution:=True)>
Can you please give me content type for aspx page
The Value Has Its Value Only Its Value Is Valied
|
|
|
|
|
I think it would be text/html
|
|
|
|
|
Hi,
In my website when users are browsing the site through Chrome and trying to download files like text file or ppt file, it is downloaded as a .aspx file for example down.aspx(The name of my download page).For a jpg or bmp file it is downloaded as down.aspx.jpg or bmp respectively.Is there something we can do from the download code .I am using asp.net with back end as vb.net Pls help.
Thanks in advance
Jophin
jophin
modified on Friday, September 25, 2009 5:05 AM
|
|
|
|
|
Hi frds...
I want display only 5 elements in repeater control from a XML data source, without paging.
Thanks,
Abbas
|
|
|
|
|
The repeater is the perfect control for this. Why are you telling us this, tho ?
The repeater doesn't do paging.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi Graus,
Actually I want to display limited number(4 or 5) of story in repeater, either source(xml file) are giving me more.
Thanks...
|
|
|
|
|
XmlDataSource supports XPath[^] query. Provide it a XPath query which selects the required data and specify [position() < 6] to the query. position() is a predefined function.
|
|
|
|
|
Oh - I misread. I thought he wanted to show five bits of data per item, not five rows.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I also thought the same when I read it first.
|
|
|
|
|
hi Navaneeth..
Now I am able to do it via Xpath query..
Thanks a lot
|
|
|
|
|
Member 3169981 wrote: Now I am able to do it via Xpath query..
Thanks a lot
If It Helps For You Mark It As Answer
If It Helps Click It as Answer
|
|
|
|