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 | This 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 AssembliesEnsure 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 Silverlightusing 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?