Sign In  Sign Up Live-Chat

Error when running web2005 demo from Visual Studio

Last post 06-06-2008, 6:47 AM by mf. 4 replies.
Sort Posts: Previous Next
  •  06-05-2008, 7:44 AM 130164

    Error when running web2005 demo from Visual Studio

    Hello,

    I downloaded the Aspose Editor Trial 2.3.0 today, but receive the following error right when running the site from Visual Studio 2005:

    The type
    "Aspose.Editor.Demo.Web.Global" could not be loaded

    All I did was installing the trial from the msi package, open the Aspose.Editor.Demo.Web.2005 folder in Visual Studio as website, and hit "Debug - Run without debugging" (Strg + F5).

    Also, is there .NET 3.5 / VS2008 support already ?

    Thanks and regards,

    Joerg


     
  •  06-05-2008, 11:20 PM 130289 in reply to 130164

    Re: Error when running web2005 demo from Visual Studio

    Hi Joerg,
    thanks for your interest in Aspose.Editor!

    This issue sounds strange. What comes to my mind is some sort of configuration issue or may be setup failed to configure IIS directories. I assume you've built the project successfully and just can't run it. Make sure you run this under IIS, not under VS 2005 internal test web server. Setup should configure IIS directories for you, but in case it hasn't (e.g. no rights at install time) you need to create new virtual directory for the project and configure it to use .NET 2.0. Please read the programmers guide document (chm), chapter "Creating an ASP.NET Application with Aspose.Editor", step 2 "Prepare site directory".

    Also please describe your environment, OS version, IIS version, .NET versions, VS versions installed.

    Kind regards,
    Michael

     
  •  06-05-2008, 11:39 PM 130292 in reply to 130164

    Re: Error when running web2005 demo from Visual Studio

    Ok, I've got it.

    You've used "open site", not "open solution". This will not work because you need to build solution to run this demo.

    Here is how to run it:
    1) Open solution Aspose.Editor.Demo.Web.2005.sln, you'll see two projects in it,
    2) Open source file Application.cs, go to line 90 and comment it, remove reference onto KeyotiSpellAdapter (see below why you need this),
    3) Rebuild Aspose.Editor.Application.2005 project,
    4) Rebuild Aspose.Editor.Demo.Web.2005 project,
    5) Configure security policy to trust your VS 2005 Web Server (see how security_script.aspx does this). Don't forget to include port number into the URL, e.g. http://localhost:2925/*.
    6) Now run Aspose.Editor.Demo.Web.2005 project,

    In this way you'll see Aspose.Editor running but spell checking functionality will not be available. In order to add it you need to download latest Keyoti spell checker for .NET (www.keyoti.com) and rebuild KeyotiSpellAdapter project (C:\Program Files\Aspose\Aspose.Editor\Demos\KeyotiSpellAdapter). Then you can reference this adapter from the application project and uncomment line 90 in the Application.cs, rebuild application and site and run it with spell checking enabled.

    If you have other questions please ask.

    Kind regards,
    Michael

     
  •  06-06-2008, 1:56 AM 130305 in reply to 130292

    Re: Error when running web2005 demo from Visual Studio

    Thanks Michael,

    I was too blind to realize the demo isn't just a web site but a true solution (I had a number of evaluations the last days that all based on a single web site rather than a complete solution)

    I did now open the demo as a solution / project in Visual Studio, commented the call to the Keyoti RapidSpell (as I don't need to evaluate spell checking yet), and ran the solution successfully.

    However, I run into issues with the client-side security settings. I already have .NET 3.5 installed on my machine, and in the ..\framework\v3.5 folder, there is no more "caspol" command I could execute, as the security script suggests. I could do so in the \v1.1.4322 folder, however, I would need assistance where to configure IE to use the 1.1 framework instead of 3.5. The message from aspose when failing to run IE suggests to edit "iexplore.exe.config", but I cannot find such a file on my local system. I am running Windows XP Home, Version 5.1, with SP2 installed.

    Thanks in advance, best regards,

    Joerg

     
  •  06-06-2008, 6:47 AM 130338 in reply to 130305

    Re: Error when running web2005 demo from Visual Studio

    Attachment: Present (inaccessible)

    Joerg,
    .NET security model always takes time to configure properly. Here is the cite from the following article http://home.hot.rr.com/graye/Articles/CodeAccessSecurity.htm
    ---cut---
    Q: How do you configure CAS for .Net Framework v3.0 or v3.5?
    A: These versions of the Framework are really just an "add on" to the .Net Framework v2.0, so using the control panel applet for v2.0 is sufficient... there is no separate configuration utility for v3.0 or v3.5
    ---cut---
    You say that you have Windows XP and .NET 3.5, this means that you've installed .NET 3.5 manually on your machine. You now have to install .NET 2.0 and use caspol from it to configure security.

    If you want to force using .NET 1.1 by IE then attached is the configuration file. Save it to the C:\Program Files\Internet Explorer, the same folder where iexplore.exe resides. Restart IE.

    Best regards,
    Michael

     

     
View as RSS news feed in XML