I have downloaded the latest version (1.11.0) of the signature library and have managed to create a simple ASP.NET project in Visual Studio using the sample as a guideline. I was able to present a document for signature and sign it successfully.
However, when I deploy the project to one of our local servers, it doesn’t work. The IE debug tools indicate that “jQuery is undefined”, which suggests that the jQuery .js files are not being pulled into the .aspx file. I have included the following line:
<%: GroupdocsSignature.CreateScriptsLoadBlock().UseHttpHandlers() %>
…which is supposed to do this. Given that it works locally, I presume this is correct.
On closer inspection, this line adds a link to the jQuery as follows:
<script type='text/javascript' src='http://{server}/{virtualdirectory}/gd-signature-handler/scripts/lib/jquery-1.7.1.min.js'></script>
…but when I try to browse directly to this link to see if the Javascript file is there, I get this error:
Resource Groupdocs.Web.UI.Signature…{virtualdirectory}scripts.lib.jquery-1.7.1.min.js not found!
I suspect this should actually be linking to Groupdocs.Web.UI.Signature.scripts.lib.jquery-1.7.1.min.js and shouldn’t have the name of our virtual directory in there. This would also explain why it works locally because when it runs under localhost, there is no virtual directory.
I know that the httphandlers are supposed to redirect that jQuery URL to a resource, but for some reason they aren’t linking to the correct place. I have the handlers set up in my web.config as described in the tutorial for the version of IIS that I am using on the server (7, running in integrated mode). The handler is within the system.webserver tag as follows:
<add name="GroupdocsSignatureHandler" verb="*" path="gd-signature-handler/*" type="Groupdocs.Web.UI.Signature.GroupdocsSignatureHttpHandler, Groupdocs.Web.UI.Signature" />
Again, given that it works locally, I presume this is also correct.
Any suggestions?