Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Sharepoint 2007 / 2010 Forums

Issues w/ Stock Quote Web Part and local web service
Last Post 03 Feb 2009 12:59 PM by Anita Lugonja. 25 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages
Chad NashUser is Offline
Senior Member
Senior Member
Posts:5260

--
18 Sep 2007 10:57 AM

    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/Stock-Q...arch.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 NashUser is Offline
    Senior Member
    Senior Member
    Posts:5260

    --
    08 Oct 2007 09: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 (make sure 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 NashUser is Offline
    Senior Member
    Senior Member
    Posts:5260

    --
    08 Oct 2007 10:00 AM

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

    -Chad

     


    110803414086.txt

    Peter ThomasUser is Offline
    New Member
    New Member
    Posts:6

    --
    11 Dec 2007 06: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 ThomasUser is Offline
    New Member
    New Member
    Posts:6

    --
    11 Dec 2007 06: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:

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

    Source File: /wpresources/Stock-Quote/DataSpringsStockSearch.asmx    Line: 1



    Chad NashUser is Offline
    Senior Member
    Senior Member
    Posts:5260

    --
    11 Dec 2007 07: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 HeckUser is Offline
    New Member
    New Member
    Posts:2

    --
    17 Dec 2007 12: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/Stock-Quote/dataspringsstocksearch.asmx Line: 1


    Rex HeckUser is Offline
    New Member
    New Member
    Posts:2

    --
    17 Dec 2007 01:14 PM
    Also the date on my file download was 9/14/2007 from snowcovered.


    Chad NashUser is Offline
    Senior Member
    Senior Member
    Posts:5260

    --
    04 Jan 2008 10:00 AM
    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 YangUser is Offline
    New Member
    New Member
    Posts:2

    --
    21 Apr 2008 02: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 YangUser is Offline
    New Member
    New Member
    Posts:2

    --
    21 Apr 2008 02: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 AtwoodUser is Offline
    New Member
    New Member
    Posts:1

    --
    21 May 2008 06: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 quote web part started to work again. Want to go back to use sharepoint's local web service? Please advise

    Thanks,
    Troy



    Peter ThomasUser is Offline
    New Member
    New Member
    Posts:6

    --
    22 May 2008 09: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 NashUser is Offline
    Senior Member
    Senior Member
    Posts:5260

    --
    23 May 2008 05: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 ReeceUser is Offline
    New Member
    New Member
    Posts:2

    --
    23 May 2008 03: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 ThomasUser is Offline
    New Member
    New Member
    Posts:6

    --
    29 May 2008 07: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...vj1pp2wern) in a browser, the correct data is displayed.

    Is there anything else we have to do?

    -Peter



    Neil ThuringerUser is Offline
    New Member
    New Member
    Posts:1

    --
    28 Aug 2008 12:47 PM

    The Stock Quote Web Part makes the site it is on load extremely slow. I noticed in the above posts that there is a way to have the Stock Quote grab information off the local server and then have the local server update the information from the web. This was suppose to help the page load quicker. I was unsuccessful at getting this to work. Just curious if there is a guide for setting up the Stock Quote Web Part to get information from a local server. Thanks!



    Chad NashUser is Offline
    Senior Member
    Senior Member
    Posts:5260

    --
    28 Aug 2008 01:14 PM
    I would for sure set it to use the local web service.

    Then... Do you get a 401 UnAuthorized Error? If so...

    Go into your \site\wpresources\ directory... There is its own web.config file there and open it in notepad (after making a backup). Within that file I think line 4 or 5 you will see a line that references *.asmx. Remove that entire line (this will allow .asmx files to operate on your server, right now that line makes it forbidden for it to work). So, remove that line and save and you should be ok.

    -Chad


    Lukas Auf der MaurUser is Offline
    New Member
    New Member
    Posts:1

    --
    27 Nov 2008 11:03 AM
    When I add the Web Part, only the following text is displayed:

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

    I've already replaced quote.yahoo.com with download.finance.yahoo.com in the DataSpringsStockSearch.asmx file. Still the same error.

    Any Help? Thanks



    Anita LugonjaUser is Offline
    New Member
    New Member
    Posts:5

    --
    03 Feb 2009 11:13 AM
    Hi,
    I downloaded a trial version of Stock Quote web part and installed but it is loading extremely slow. I tried two fixes that you suggested but it didn't help.

    1. I deleted the following line


    from the web.config file located in
    C:\Inetpub\wwwroot\wss\VirtualDirectories\80\wpresources.

    2. In the wss_mediumtrust.config file located in
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\CONFIG\

    I changed this from:







    To:


    class="WebPermission"
    version="1" Unrestricted="true">





    Any help would be great.


    You are not authorized to post a reply.
    Page 1 of 212 > >>


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi