roozrob / yahoo-finance-managed

Automatically exported from code.google.com/p/yahoo-finance-managed
0 stars 0 forks source link

Object reference not set to an instance of an object #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

1. set properties to YahooManaged.Search.BOSS.API.ImageSearchOptions
2. trying to download like  Dim resp As 
YahooManaged.Search.BOSS.API.SearchResponse = dl.Download(imageSearch)

stack trace 
 MaasOne.YahooManaged.Search.BOSS.API.SearchDownload.ToBossImageSearchResult(XmlNode node) +649
   MaasOne.YahooManaged.Search.BOSS.API.SearchDownload.ToResponse(StreamResponse resp) +1049
   MaasOne.YahooManaged.Search.BOSS.API.SearchDownload.Download(IEnumerable`1 services) +177
   WebSearch.SetImagesResults(String Query, String start1, String v, Search se) in Search\WebSearch.vb:559
   WebSearch.Search(String Query, Int32 start) in Search\WebSearch.vb:250
   MailYouLikev3.Search1.getResults(String q, Int64 start, SearchType SearchType) in Search\Search.aspx.vb:203
   MailYouLikev3.Search1.Page_Load(Object sender, EventArgs e) in Search\Search.aspx.vb:92
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427

Original issue reported on code.google.com by suhailka...@gmail.com on 28 Oct 2011 at 9:24

GoogleCodeExporter commented 8 years ago
even the wpf sample  provided does not return the image results , web and news 
work fine 

Original comment by suhailka...@gmail.com on 28 Oct 2011 at 9:43

GoogleCodeExporter commented 8 years ago
I will check this. Can you show me the specific options you setted?

Maas

Original comment by Maas...@gmail.com on 28 Oct 2011 at 3:39

GoogleCodeExporter commented 8 years ago
 for wcf use any options it will not work 

from code is below 

Dim dl As New YahooManaged.Search.BOSS.API.SearchDownload
        dl.UniversalOptions.HttpsUsed = False
        dl.UniversalOptions.ConsumerKey = ConsumerKey

        dl.UniversalOptions.ConsumerSecret = New System.Security.SecureString
        For Each c In ConsumerSecret
            dl.UniversalOptions.ConsumerSecret.AppendChar(c)
        Next
        dl.UniversalOptions.ConsumerSecret.MakeReadOnly()

        Dim imageSearch As New YahooManaged.Search.BOSS.API.ImageSearchOptions
        imageSearch.Start = start1
        imageSearch.Count = SearchImagesCount
        imageSearch.QueryText = Query
        imageSearch.Culture = New YahooManaged.Culture(YahooManaged.Language.en, YahooManaged.Country.US)
        imageSearch.Dimensions = YahooManaged.Search.BOSS.ImageSearchDimensions.All

        imageSearch.RefererUrl = Nothing
        imageSearch.Url = Nothing

        Try
            If SearchImageFilter.ToLower = "no" Then
                imageSearch.AllowAdultContent = False
            Else
                imageSearch.AllowAdultContent = True
            End If
        Catch ex As Exception
            imageSearch.AllowAdultContent = False
        End Try

Original comment by suhailka...@gmail.com on 28 Oct 2011 at 5:59

GoogleCodeExporter commented 8 years ago
fixed/done

It was a problem of parsing process (size property).
I uploaded the new files (0.10.0.1).

Original comment by Maas...@gmail.com on 28 Oct 2011 at 9:01

GoogleCodeExporter commented 8 years ago
why is Thumbnail.Width is always returned zero ?

Original comment by suhailka...@gmail.com on 29 Oct 2011 at 11:56

GoogleCodeExporter commented 8 years ago
Same problem...
Files updated.

Thx for bug reporting!

Original comment by Maas...@gmail.com on 31 Oct 2011 at 11:23

GoogleCodeExporter commented 8 years ago
why do i get a warning in VS 2010 
Could not load file or assembly 'MaasOne.Base' or one of its dependencies. An 
attempt was made to load a program with an incorrect format
the warning is on line 

<%@ Page Language="vb" %>

Original comment by suhailka...@gmail.com on 1 Nov 2011 at 12:21

GoogleCodeExporter commented 8 years ago
Did you use AnyCPU dll?
It seems there was a problem with compiling, because my Config Manager was 
setted to AnyCPU, but the compiling setting in the Project was setted to x64. I 
don't know why, but I compiled it new and it should be OK now.

Original comment by Maas...@gmail.com on 1 Nov 2011 at 1:20

GoogleCodeExporter commented 8 years ago
yes AnyCpu i downloaded the new one but still the same issue

Original comment by suhailka...@gmail.com on 1 Nov 2011 at 1:31

GoogleCodeExporter commented 8 years ago
I tested AnyCPU on x86 and x64 systems. Both are OK.
Did you tried x86 or x64? It could be (if you have an x64 OS) that you have to 
use x86 for WCF.

Original comment by Maas...@gmail.com on 1 Nov 2011 at 1:43

GoogleCodeExporter commented 8 years ago
i am still getting 
 Could not load file or assembly 'MaasOne.Base' or one of its dependencies. An attempt was made to load a program with an incorrect format.

 but now the application fails to run and throws the above message 

i am running on x64 OS

when i add x86 or x64 assembly my application does not compile and VS throw the 
same error 

only when i add x86 version of assembly then my applications complies fine  but 
then it throw the same error  in browser 

my application configuration is set to AnyCPU 

Original comment by suhailka...@gmail.com on 11 Nov 2011 at 9:54