Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /
avatar image
Question by numan.mazlum · May 15, 2017 at 04:09 AM · dss rest apiexamplevisual-studio

Example C# Application does not work

Hi all,

I've downloaded C# Example WPF Application but. I cannot run this.

I tried both via visual studio and execute Dss.Api.Examples.exe directly. I got same following error.

'Initialization of 'Dss.Api.Examples.MainWindow' threw an exception.' Line number '226' and line position '7'.

What does mean?

Thanks

People who like this

0 Show 2
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Christiaan Meihsl ♦♦ · May 15, 2017 at 09:24 AM 0
Share

When did you get the error: just after starting the program, or after entering your DSS username and password in the popup ?

avatar image
numan.mazlum Christiaan Meihsl ♦♦ · May 15, 2017 at 09:43 AM 0
Share

just starting. did not come any screen

9 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by moragodkrit.chumsri_1 · May 15, 2017 at 08:06 PM

@numan.mazlum

The VS solution file(DSS.Api.Examples.sln) was created from Visual Studio 2013. It's not Visual Studio 2012. Please open the solution with Visual Studio 2013 instead, I think the problem may occurs because using mismatch version of visual studio component so it could not load the XAML.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Christiaan Meihsl · May 15, 2017 at 09:24 AM

@numan.mazlum

Did you follow these installation instructions ? If you did, and downloaded the application after 20 March 2017, it should work fine.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by numan.mazlum · May 15, 2017 at 09:54 AM

- I Downloaded zip files again.

- Extract files to a folder

- I opened solution in VS 2012

- I changed userId and password

- I tried to build and than I got error: Missing reference "ICSharpCode.AvalonEdit"

- I added "ICSharpCode.AvalonEdit" reference from bin\release folder again

- Build Succeeded

- I click start on VS and than I get following error again.

'Initialization of 'Dss.Api.Examples.MainWindow' threw an exception.' Line number '226' and line position '7'.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Troy Dalldorf · May 15, 2017 at 10:30 AM

@numan.mazlum, would you mind running this again in Visual Studio and posting the exception stack trace?

Also, what operating system and version are you using?

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by numan.mazlum · May 15, 2017 at 05:19 PM

I'm using Windows 8

You can find stack trace in following

at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at Dss.Api.Examples.MainWindow.InitializeComponent() in d:\Projects\RESTAPIExampleApplication\MainWindow.xaml:line 1 at Dss.Api.Examples.MainWindow..ctor() in d:\Projects\RESTAPIExampleApplication\MainWindow.xaml.cs:line 29

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by numan.mazlum · May 16, 2017 at 02:38 AM

Hi,

I don't think same. Because of when I run exe directly, I get same error.


dss-hata.jpg (14.0 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by moragodkrit.chumsri_1 · May 16, 2017 at 02:43 AM

@numan.mazlum

Do you have VS2013 runtime(.NET framework 4.5.x) installed on your windows when you run the exe?
If not please download it from MSDN and try running the execute file again.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by numan.mazlum · May 17, 2017 at 02:56 AM

I will try and inform you.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
moragodkrit.chumsri_1 ♦♦ · May 22, 2017 at 10:56 PM 0
Share

Please let us know if you still found the issue or it has been resolved after installed .NET framework 4.5.x.

avatar image
Answer by numan.mazlum · May 24, 2017 at 01:58 AM

Hi all again,

I installed VS 2013 and then my problem solved.

Thanks for all

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

Get content for a specific date (or date range)

Could you please let me know, Will API return only positive rate values or negative rate values also ?

DSS REST API python sample of user preferences change

Requesting entity details for TR OrgIDs does not return data for some OrgIDs

DSS REST API: Sometimes the create token API returns an invalid token

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges