I currently have a Windows Server 2003 development machine with IIS and Aspose.Total installed.
I am trying to get the Aspose.Word.Demos to run in browser.
I do not have Visual Studio to comile and run the demo code, is there
another way of doing it? I have tried a couple of suggestions such as
replacing ‘Codebehind’ with ‘Src’ which seemed to work until I click on
‘Submit’ then I get a compilation error at line 52 in Viewer.aspx.cs:
The type or namespace ‘Demo’ could not be found…
Indeed I am accessing it through http://localhost/Aspose.Word.Demos/default.aspx however when first
installed it was giving the error:
“Could not load type ‘Aspose.Word.Demos.Global’”
After a bit of googling I discovered this was due to the codebehind
files (in this case C#) not being compiled and that it could be done on
the fly by replacing Codebehind with Src in the aspx files. This allows
the page to get past the above error but now its causing the following
error (after pressing submit and new window opening):
“CS0246: The type or namespace name ‘Demo’ could not be found (are you missing a using directive or an assembly reference?)”
So this is where I’m stuck. I can see there are .csproj files in the
folder but as I don’t have Visual Studio to open these I need another
soution. I would very much like to use this product but need to get
these demos working first.
Please disregard the above message. I did not have asp.net
configured in IIS. Adding that component, using
Add/Remove Windows Components and the browser was able to access
the page.
Thanks for your quick response- I was unable to recheck forum yesterday.
I should have been more explicit-- I have that DLL, I thought you were referring to an additional DLL.
And though it’s unnecessary, I’d even copied the net2.0 \bin directory into the
C:\Program Files\Aspose\Aspose.Words\Demos\VisualBasic\WebForms directory (using .NET 2.0).
Thanks for your request. I managed to reproduce your problem. I rebuild WebForms demo and attach it here. To install this demo you should do the following:
Can you please explain me why do you want to run a demo of Aspose.Words for .NET without Visual Studio installed? Are you using some other development environment or what?
At some point in the past we used to include compiled demos into Aspose.Words.msi, but it was making it too big (because Aspose.Words.dll had to be present in each demo’s bin folder) and we felt it was a waste of download resources.
By the way, creating virtual directory (and in fact IIS with ASP.NET) is not needed if you run the WebForms project with Visual Studio 2005 SP1 or Visual Studio 2008 because they use a built-in ASP.NET development server.