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
Best Answer
-
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.
0
Answers
-
Did you follow these installation instructions ? If you did, and downloaded the application after 20 March 2017, it should work fine.
0 -
When did you get the error: just after starting the program, or after entering your DSS username and password in the popup ?
0 -
just starting. did not come any screen
0 -
- 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'.
0 -
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?
0 -
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
0 -
Hi,
I don't think same. Because of when I run exe directly, I get same error.
0 -
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.0 -
I will try and inform you.
0 -
Please let us know if you still found the issue or it has been resolved after installed .NET framework 4.5.x.
0 -
Hi all again,
I installed VS 2013 and then my problem solved.
Thanks for all
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛