Unable to deploy to IIS using webforms showcase application


#1

I am trying to run the webforms-based example in IIS but I am not able to annotate. Please see attached screenshot.



However, running it from Visual Studio, the annotation works. Also, the MVC version works (both VS and IIS).



Is there something I am missing in the configuration?



Thanks


#2

@leobarcena,

Thank you for your inquiry.

We are sorry to hear that you are facing such issue, kindly confirm what .net framework is selected in IIS and application pool security settings to access the AppData folder.

Recommended .net framework version is 4.5 or above.

Warm Regards,


#3

I am confirming that it is build on .NET v4.5, running under v4.0 in integrated mode and the AppPoolIdentity (IIS_IUSRS) have write permission to all directories.



I also ensured that I deleted the ASP.NET temp directory and browser cache.



It only works when it is running under Visual Studios but not under IIS.



The other difference is that I deployed it under a web application and not running under the root directory.



Thanks.


#4

There is a bug in the setting of the base URL for the SignalR connection. This is defined inder AnnotationWidget.js



I deployed the sample under a virtual directory. It may need to be added as a configuration.



Please see attached screenshot.


#5

@leobarcenas,

Thank you for sharing the details.

We have investigated the both scenarios by deploying the application in IIS 7 at root and also at sub-directory and found the same issue, at root deployment in IIS it works properly as required but at sub-directory it throw exception as you shared.

Solution to this issue is by adding the sub-directory name in the “Scripts/AnnotationWidget.js” line 1548 as:

var baseUrl = urlParts.schema + ‘://’ + urlParts.authority + ‘/GroupDocs.Demo.Annotation.webforms-orig’;

Please try this solution and let us know if you still face any such issues.

Warm Regards,

#6

Thanks!



It worked. I also removed the “/” and it became relative URL. It does seemed to work.



I do have another issues though.



The comment is not being recorded in the server. I am not familiar with the event handling implemented in the demo. Can you provide guidance on how I can fix this? I am able to comment but refreshing the page, the comment goes away. I noticed that an Ajax call is never invoked when I added the comment. Please see screenshot.





Thanks.



Leo


#7

@leobarcenas


Thank you for your inquiry.

We are sorry to hear that you are facing such issues in our open source front-end example. We have reproduced this scenario. Example/Source code team will investigate on this issue causes and its solution. Once concerned team is done with its solution we will notify you here.

Thank you for your patience.


Warm Regards,


#8

@leobarcenas,


Thank you for your patience.

We are glad to inform you that the issue with Annotation replies has been resolved, updated front-end webforms source code is also available on GitHub, please click here to download.

We have also attached the 3 updated JavaScript files in a zipped folder according to your sub-folder “/GroupDocs.Demo.Annotation.webforms-orig” based IIS hosting requirements, please download and replace all 3 JS files in “/Scripts” folder, compile and re-deploy the solution in IIS.

Please let us know if you will face any issues or need any other help.

Warm Regards,

#9

Thank you for the fix. Unfortunately, it looks like the submit event is still not invoked when adding comment to the text annotation.



I did removed all caches (ASP.NET and browser), re-started IIS, recompiled and deployed application to ensure that changes are reflected.



Please advice.



Thanks.



Regards,





Leo


#10

@leobarcenas

Unfortunately we are unable to reproduce this scenario as Text Annotation is working fine on IIS hosted solution. Please have look on image attached with this thread. Kindly provide some more details to reproduce this scenario.

Thank you for your cooperation.




Warm Regards,


#11

Hi,


I integrated the fix but is not able to make it work.

Please download the zipped file. This is the project I am using that does not work.

AnnotationDemo

Please let me know if there is anything that I am missing. I suspect caching but I have already deleted the following caches to run the demo project:
1. Browser cache
2. ASP.NET Temp cache

As well as rebuilt the application.

Thank you for your help.

Regards,

Leo

#12

@leobarcenas

Thank you for coming back.

We will investigate on this and will share our finding with you.

Thank you for your patience.

Warm Regards,


#13

Hi,



I further looked into the code and I fixed it.



Silly mistake.



The file was not properly copied for Annotation2Legacy.js.



I was using BeyondCompare and my setting was ignoring case so it was showing the same when in fact the cases are different.



Thank you for your time.



Regards,



Leo


#14

@leobarcenas,


You are welcome. We’re always here to sort out your issues regarding the API.

Best wishes