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 290 -
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
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 630 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 86 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛