Profile Picture

Trying to start a Silverlight Application

Posted By John 9 Years Ago
Author
Message
John
Question Posted 9 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 2, Visits: 14
In the documentation it says.

Installing NOV for Silverlight1. Create a new Silverlight project in Visual Studio
  • From File Menu - Choose New Project
  • Select the Visual C# - Silverlight Application Template
  • Click OK

You need to target Silverlight 5.
Note Box
images/hs-note.gifThis step is not mandatory, because you can integrate NOV in an already existing Silverlight project. It is performed just for the purpose of making a complete installation scenario.

2. Reference the NOV Assemblies
Ensure that your application references the following NOV dlls:
  • Nevron.Nov.Presentation.SL.dll - core NOV assembly for the Silverlight runtime.
  • Nevron.Nov.Host.Silverlight.dll - presentation host for Silverlight.
  • Reference other NOV assemblies for Silverlight if you need to (have the SL suffix).
3. Initialize the NOV ApplicationOpen the App.xaml.cs file and ensure that it it has the following code:
Installing NOV for Silverlight
using System;
using System.Windows;
using Nevron.Windows;
namespace SilverlightApplication1
{
 public partial class App : Application
 {
 public App()
 {
 this.Startup += this.Application_Startup; 
 this.Exit += this.Application_Exit;
 this.UnhandledException += this.Application_UnhandledException;
 InitializeComponent();
 }

 private void Application_Startup(object sender, StartupEventArgs e)
 {
 // Apply license to the application here.  
 NLicenseManager.Instance.SetLicense(new NLicense("LICENSE KEY"));
 NLicenseManager.Instance.LockLicense = true; 

NModule[] modules = new NModule[]
 {   
// TODO: Create modules here 
}; 
// install Nevron Open Vision for Silverlight 

NSLApplicationInstaller.Install(modules);

This last line gives me an error i cant get past.

Else where i found another that said.
start a normal Silverlight application and drag 
"NNovRichTextViewControl"
onto the page but this just gives me an 
Error Dialog
Exception of type 'MS.Internal.Validate+ValidationFailure' was thrown,
a search on the internet and this forum has not given me any results. Can Anyone Help?




Nevron Support
This post has been flagged as an answer
Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
There is an error in the documentation. The NSLApplicationInstaller is renamed to NNovApplicationInstaller. Just replace NSLApplicationInstaller with NNovApplicationInstaller.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic