Setup: Windows Server 2008R2, 64 bit
IIS7
XAMPP
Both IIS7 and Apache server (via XAMPP) are successfully running at the same time.
Bespoke application url:
dummy.local:8080
We’ve build a bespoke content management system in PHP that our internal users can browse to on the above url
Been using guidelines in this link : groupdocs.com/docs/display/viewernet/How+to+Integrate+GroupDocs’+Document+Viewer+for+.NET+into+Your+CMS
When I run my code, an error message is displayed on the page: “Please change “Use Http Handlers” option in edit block form”.
I have tried checking and unchecking the handlers checkbox on my html form but neither works. I am not supplying a path to my file as I understand that I only need to provide the server url that the groupdocs .net viewer resides on.
Please help. I’ve attached a copy of both my html and php code
Hello,
Thanks Pavel but when I’ve tried to run the Default.aspx file in the GroupDocs.Viewer.WebForms.Sample folder I get the attached error message.
That file is not available from the downloads folder.
Thanks Pavel but when I’ve tried to run the Default.aspx file in the GroupDocs.Viewer.WebForms.Sample folder I get the attached error message.
That file is not available from the downloads folder
Best regards,
Evgen Efimov
http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+
Evgen, thank you very much for your response. Was very clear and helpful. However, I do get an error once I’ve build the project:
Error 1 The type or namespace name ‘Groupdocs’ could not be found (are you missing a using directive or an assembly reference?) C:\GroupDocs.Viewer_2.16.0-NET-Samples\samples\GroupDocs.Viewer.WebForms.Sample\WebServiceProvidingViewer.asmx.cs 9 7 GroupDocs.Viewer.WebForms.Sample
Hello,
Thanks Pavel.
I’ve now got the GroupDocs working in Visual Studio and when I run it in debug mode the url is: http://localhost:2222/Default.aspx
.
I’m still not sure how to get this working with my PHP app though.
I’m using the article you previously referenced (log 9220) but just want to make sure I am following this properly. In my PHP app I’ve created an index.html page which contains the various fields that the user needs to complete (e.g. URL, div sizes, file path, etc.). When the form is submitted it points to my gdViewer.php file - which is essentially what I’ve copied from the article, although I’ve added the necessary variables at the start of the file to store the data input by the user in the index.html file. However, this does not work (regardless of whether or not I tick the header checkbox; I still get the error message “Please change “Use Http Handlers” option in edit block form” because I’m guessing it can’t fine the page.
Note: I am not specifying a file path. I am only filling in the URL and checking or unchecking the tick box. The URL for my php app is:
http://myapp.surby.local:8080/index.html
and the GroupDocs.Viewer for .NET in installed on this same server so the value I am entering into the URL field on my index.html page is http://myapp.surby.local:8080/
I’ve attached my files.
Can you please let me know where I am going wrong as we are really keen to use this software.
Many thanks
Hello,
Thank you for coming back. If I understand you correct the PHP project run under http://myapp.surby.local:8080/
URL and you used the same URL for URL field - it means that your PHP trying to integrate itself. Instead of this you should use http://localhost:2222
URL in the URL field - in this case your PHP project will call the .NET project.
Best regards.
Hi Pavel
Just to add to clarify … we’ve now got “gd.local” active through IIS7.
http://gd.local
points to a folder here: c:\gd.local
We are using Visual Studio 2010. Do we publish the GD demo / app to http://gd.local
in order to use it? As http://myapp.surby.local:8080/index.html
is run through Apache.
Thanks
Hi,
Yes, correct you should publish GD demo to c:\gd.local and call it from your
http://myapp.surby.local:8080/index.html
via gd.local URL
Best regards.
Hi Pavel
Hello,
Thanks Pavel. We modified that file and were able successfully display Group Docs in FireFox. But we have two issues:
1. Although the page loads in IE11, no files are displayed (see the attached image)
2. I am still struggling to get this working (even in Firefox) with my PHP app. Please can you confirm what URL I should be entering into my PHP index page/form. Should I be using 'localhost'? I've tried this but get the usual error message previously referenced.
Hi,
Hi pavel
Hi,
Pavel,
Many thanks for doing that. I can confirm this is now working and looking good! I do have one question though:
I have a datatable which lists correspondence that has been uploaded to my database. However, when the user clicks the select button to view the document, the Group Docs content is currently loaded on a new page. Ideally, I’d like the content to be loaded in a modal (e.g. Lightbox) form or on the same page (beneath my table). I’ve tried using Jquery/AJAX to do this but it still directs to a new page. Are you able to advise?
Again, many thanks for your help - is much appreciated.