Recently Viewed...
To help you navigate to pages you most recently visited, select from the links below.
Product Forums
Sharepoint Forums
Password Reset Requests
Testimonials
Flash Contacts
Stock Quote Web Part
Dynamic Tags
Info Pics
Back on Track

    |   Register   |   Wednesday, August 20, 2008   
Sharepoint 2007 Forums
Subject: Issues w/ Stock Quote Web Part and local web service
Prev Next
You are not authorized to post a reply.

Author Messages
Chad
Posts:1816
river guide
river guide

09/18/2007 12:57 PM  

We have had a few clients running into issues with the Stock Quote Web Part, I am working on an updated documentation/troubleshooting guide but for now here are a few issues you might run into (especially if you are wanting to hit your own local web service to pull stock information which is faster).

1. Within your WSS\ directory you will want to modify your web.config. There is a line that looks like

2. Within your WSS\wpresources\ directory there is another web.config file. You will want to modify this web.config and remove the lines at the top relating to the .asmx files ( I believe its something like... ) This is necessary in order for the web service to work on your local system.

3. If the web service works on your system (you can test by navigating to http://yoursite/wpresources/stockquote/dataspringsstocksearch.asmx)  but its still not working on your within the web part then make sure you enable anonymous access to a user (with very little rights). This is done in IIS, open the properties within IIS for the WSS site, go to directory security, and enable anonymous access to the default user or a user with limited rights. You can still have windows authentication enabled.

-Chad

Chad
Posts:1816
river guide
river guide

10/08/2007 11:57 AM  
I wanted to follow up on this post...

Many customers have had issues with running this web.part in Medium Trust environment. There is a quick fix to get this to work.

1. Backup this file (just make a backup copy for your own records)
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_mediumtrust.config

2. Modify this area of the file:
Within this file there is some text for the web.permission that is limiting it from connecting to yahoo finance.

Change this from:







To:

class="WebPermission"
version="1" >






Replace:


With your domain (makesure to use the \ as mentioned above)

You can open this up even further if you wished but its not needed...
class="WebPermission"
version="1" Unrestricted="true">


Chad
Posts:1816
river guide
river guide

10/08/2007 12:00 PM  

This did not show up correctly so I am uploading the 'How to' as a txt file.

-Chad

 


Attachment: 110803414086.txt

Peter
Posts:6
skipping stones
skipping stones

12/11/2007 8:07 AM  

Thanks for the hints.

I would like to get it working on the internal.  At the moment it gives me an error 403 (forbidden).  I have anonymous enabled, but was unable to find anything in either web.config to do with asmx files.

Not sure what you were referring to for #1 above (first post) as there is nothing there, maybe it was dropped off the post.   ie, looks like ????

same with #2, something like ...

Thankms

Peter
Posts:6
skipping stones
skipping stones

12/11/2007 8:19 AM  

Wish I could delete what I posted.  Anyway, I got different error now.  This is when I have mode off and using local server.  I have to get local working, other method is too slow (about 1-2 minutes).

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not create type 'outthebox.web.services.YahooQuoteWebService'.

Source Error:


            <pre><font color="#ff0000">Line 1:  
</font>Line 2:  
Line 3:  Imports System.Web</pre>
            

Source File: /wpresources/StockQuote/DataSpringsStockSearch.asmx    Line: 1

Chad
Posts:1816
river guide
river guide

12/11/2007 9:10 PM  
Hi. If you are getting this error this means that the file you have is out of date. We had this issue and determined what was causing it, this should have been fixed with the most recent download file but I will need to check. For now I am going to send you the most recent file via email, please let me know if this fixes you up.

-Chad
Rex
Posts:2
new to the springs
new to the springs

12/17/2007 2:59 PM  
I have the same error as pthomas. What is the fix? Thanks. The error is pasted below.

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not create type 'outthebox.web.services.YahooQuoteWebService'.

Source Error:


Line 1:
Line 2:
Line 3: Imports System.Web


Source File: /wpresources/stockquote/dataspringsstocksearch.asmx Line: 1
Rex
Posts:2
new to the springs
new to the springs

12/17/2007 3:14 PM  
Also the date on my file download was 9/14/2007 from snowcovered.
Chad
Posts:1816
river guide
river guide

01/04/2008 12:00 PM  
Rex,

Hi. Go ahead and open a support ticket for this on Snowcovered if you can. Or contact us directly from the contact us menu item on DataSprings.com. There is an updated file we need to get you if you are receiving this specific error.

Thanks,

Chad
Henry
Posts:2
new to the springs
new to the springs

04/21/2008 4:32 PM  
Hi:

I am having a similar problem when I use the web service located on this system. For some reason, it gives me an 404 error message indicated Not Found.
The following is the message:

ERROR: The request failed with HTTP status 404: Not Found.

I am able to browse the dataspringstocksearch.asmx file successfully, and able to see the stock quote if I uncheck this option. However, the performance is extremely slow if this option is checked.

Please help!

Thanks,

Henry
Henry
Posts:2
new to the springs
new to the springs

04/21/2008 4:33 PM  
Posted By Henry on 04/21/2008 4:32 PM
Hi:

I am having a similar problem when I use the web service located on this system. For some reason, it gives me an 404 error message indicated Not Found.
The following is the message:

ERROR: The request failed with HTTP status 404: Not Found.

I am able to browse the dataspringstocksearch.asmx file successfully, and able to see the stock quote if I uncheck this option. However, the performance is extremely slow if this option is unchecked.

Please help!

Thanks,

Henry

 

Troy
Posts:1
new to the springs
new to the springs

05/21/2008 8:15 AM  
I am having a same problem, getting 404 error. The web service is up and dataspringstocksearch.asmx does not have test button. The local web service is not working, changed web part to use personal web service and stock qoute web part started to work again. Want to go back to use sharepoint's local web service? Please advise

Thanks,
Troy
Peter
Posts:6
skipping stones
skipping stones

05/22/2008 11:05 PM  

Started getting this.  Nothing has changed from our side.

ERROR:System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Net.WebException: The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.GetResponse() at outthebox.web.services.YahooQuoteWebService.GetQuote(String symbol) --- End of inner exception stack trace ---

Any help would be great

Chad
Posts:1816
river guide
river guide

05/23/2008 7:52 AM  
Yahoo (it appears) was temporarily taking down its site quote.yahoo.com (although it appears to be back up now I guess?). Either way, if that happens again or if they ever take it down permanently you need to go into your inetpub\wwwroot\wss\wpresources\stockquote directory and modify the file called DataSpringsStockSearch.asmx. Where you see quote.yahoo.com change that to be download.finance.yahoo.com and it should work properly after that.

-Chad


Brad
Posts:2
new to the springs
new to the springs

05/23/2008 5:02 PM  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Posted By Chad on 09/18/2007 12:57 PM

We have had a few clients running into issues with the Stock Quote Web Part, I am working on an updated documentation/troubleshooting guide but for now here are a few issues you might run into (especially if you are wanting to hit your own local web service to pull stock information which is faster).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

So how is that updated documentation coming along?  I am trying to get this thing to work on our internal test MOSS implementation and it has been problematic to say the least--the permission problem so far.

There are config files all over the place and there are numerous policy files to boot.  We use tons of other 3rd party web parts so I would imagine that we're using custom policies.

Can you provide a step by step on this?  Perhaps you can create an msi for it?  KwizCom and Bamboo Solutions web parts install with a few simple clicks.

Peter
Posts:6
skipping stones
skipping stones

05/29/2008 9:35 PM  

Hi

My developers made the change and we now get the following error:

ERROR:System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. at System.Net.HttpWebRequest.GetResponse() at outthebox.web.services.YahooQuoteWebService.GetQuote(String symbol) --- End of inner exception stack trace ---

When we put the address (http://download.finance.yahoo.com/d/quotes.csv?s=VMG.AX&d=t&f=sl1d1t1c1ohgvj1pp2wern) in a browser, the correct data is displayed.

Is there anything else we have to do?

-Peter

You are not authorized to post a reply.
Forums > Sharepoint 2007 Web Parts > Stock Quote / Ticker Web Part > Issues w/ Stock Quote Web Part and local web service



ActiveForums 3.7
Copyright 2005 - 2008 by Data Springs, Inc.
Terms Of Use | Privacy Statement