Running Word demo without Visual Studio

Hi,

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…

Any help would be appreciated.

Thank you

Dave

After you have installed the Aspose.Word just enter the following address in browser on your server:
http://localhost/Aspose.Word.Demos/Default.aspx

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.

Thanks

Dave

I have attached the compiled dll. Put it in your …\Aspose.Word\Demos\Aspose.Word.Demos\bin directory to be able to view the demo.

Altenatively, you can check our online demos. They are exactly the same as in our setup pack:

https://demos.aspose.com/

Super that worked a treat!

Thank you for your help.

Dave

I too would like to be able to run the demos from the local server.

When I try to access the URL

http://localhost/Aspose.Word.Demos/Default.aspx using IE, I get a page not found error.

Do I need to set something in IIS so that this can be found? Any suggestions?

Thanks,

Jim

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.

Jim

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).

Still, it’s not seeming to pick it up.

Hi

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:

  1. Unzip attached file.

  2. Create Virtual directory for demo

Hope this helps.

Best regards.

Thanks, Alexey… Had the VD already created, so just needed the updated zip. Works now-- thanks again!

Dear Customers,

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.

Minimal dev in this group, no need for VS.

Btw, what was the change Alexey made in the zip? C# version working, VB not.

Nevermind-- both working fine.

Hi

Thanks for your inquiry. There is no magic. I just rebuild demo in VisualStudio. In the attachment rebuilt VB Demo.

Best regards.