Hello,
Thanks
Hello,
Hello,
I have forcible activated the feature ‘SPRazorView Feature1’ using SharePoint manager. This has worked and I can now connect to the sharepoint seerver.
Gave everyone full control (as there are instructions for the viewer to change permission) over the C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\GroupDocsAnnotation
Within a library I have the Annotate button this when pressed gives a file not found error. I examined the uls log and found the error :
System.IO.FileNotFoundException: Could not load file or assembly ‘Groupdocs.Web.Annotation, Version=1.7.0.10811, Culture=neutral, PublicKeyToken=c037f897af36d52e’ or one of its dependencies
This assembly is not in the bin directory nor in the global assembly cache.
Hello,
The zip file would not extract the setup.exe, setup.exe.config and two images. So used these files from the previous release.
Now when loading the annotation page get:
Could not load file or assembly ‘GroupDocsAnnotation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f68bad35d2e6bbb3’ or one of its dependencies. The system cannot find the file specified.
So added GroupDocsAnnotation to the bin folder from the previously provided solution files
perfomed an iisreset
still get the same not found error.
Hello,
Tried bur still did work, Found a GroupDocsAnnotation.dll so added it to the bin folder.
Still not working.
So I used ilspy to inspect the assemblies and found that the aspose *.dlls are reefrenced but not in the bin folder. Found these in teh GFroupDocs.Viewer solution so added the to teh bin folder.
Modified the js file so that the path was not /_layouts as his was causing the urls to default to a root site collection whilst my test site is in a secondary site collection.
There are still problems with SharePoint Alternate access Mappings and multiple web appkications, these can be sorted later.
My next stumbling block is that I now get the error:
System.ArgumentException: A route named ‘signalr.hubs’ is already in the route collection. Route names must be unique. Parameter name: name
at System.Web.Routing.RouteCollection.Add(String name, RouteBase item)
at System.Web.Routing.RouteCollectionExtensions.MapOwinPath(RouteCollection routes, String name, String pathBase, Action`1 startup)
at System.Web.Routing.SignalRRouteExtensions.MapHubs(RouteCollection routes, String path, HubConfiguration configuration)
at Groupdocs.Web.Annotation.WidgetFactory.Initialize(HttpContext context, String storagePath, String connectionString, Boolean useJsonRepo)
at GroupDocsAnnotation.Layouts.GroupDocsAnnotation.GroupDocsAnnotation.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Hello,
I am able to annotate once and then not again. See end of this message for details.
The layouts folder is the correct place and in my 6 years of SharePoint development I have used extensively.
The problem is that the syntax
url:
‘/_layouts/15/GroupDocsAnnotation/GroupDocsAnnotation.aspx?items=’ +
myItems + ‘&source=’ + SP.ListOperation.Selection.getSelectedList(),
only
allows for sharepoint libraries that are in the root web of the root
site collection (nor does it work for sites accessed by an alternative
access mapping), and will always produce a server relative url and not a
site relative url
eg:
The
problem is that any calls to SPContext.Current.Site ( and Web etc),
within the layouts page code, will always resolve to the root site
collection and not to the site collection (web) currently in use
Alos this server relative url will not work for a library in the root of a secondary site collection
and will not work for libraries in sub webs(sites) of either the root site collection or secondary site collections
or the following syntax (amongst other solutions on the web) allows for these common implementations of sharepoint.
url:
SP.Utilities.Utility.getLayoutsPageUrl(‘GroupDocsAnnotation/GroupDocsAnnotation.aspx?items=’
- myItems + ‘&source=’ +
SP.ListOperation.Selection.getSelectedList()),
There are token
substitions available within sharepoint but are not applicable to modal
dialog calls. see
URLs and tokens in SharePoint | Microsoft Learn
I cannot understand the the signalR steps you detail, may be due to missing images on the forum page.
Not
sure How I got here but have removed and added each of the 3 groudpdocs
supplied SignalR assemblies to and from the bin folder with many
iisresets
Now got the error
Application error when access
/_layouts/15/GroupDocsAnnotation/GroupDocsAnnotation.aspx, Error=The
path is not valid. Check the directory for the database. [ Path =
C:\inetpub\wwwroot\wss\VirtualDirectories\80\App_Data\DB.sdf ]
this
path is not the path of my web application, most sharepoint farms have
many web appliactions and hence many virtual directory folders within
the IIS VirtualDirectories folder!!!
so moved db.sdf to C:\inetpub\wwwroot\wss\VirtualDirectories\80\App_Data<br>and gave everyone full control.
having
the db.sdf file within the App_Data folder is bad practice, but
acceptable for sample implementations, as it will not work in load
balanced scenarios, alternative access mapping scenarios etc.
now i got the original error back
System.ArgumentException:
A route named ‘signalr.hubs’ is already in the route collection. Route
names must be unique. Parameter name: name
at System.Web.Routing.RouteCollection.Add(String name, RouteBase item)
at
System.Web.Routing.RouteCollectionExtensions.MapOwinPath(RouteCollection
routes, String name, String pathBase, Action`1 startup)
at System.Web.Routing.SignalRRouteExtensions.MapHubs(RouteCollection routes, String path, HubConfiguration configuration)
at
Groupdocs.Web.Annotation.WidgetFactory.Initialize(HttpContext context,
String storagePath, String connectionString, Boolean useJsonRepo)
at GroupDocsAnnotation.Layouts.GroupDocsAnnotation.GroupDocsAnnotation.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Did an iisreset
now I am able to view and annotate a document
close the annotation dialog
try to annotate a second time (or open another document for annotations) get the error (in the ULS log)
System.ArgumentException: A route named ‘signalr.hubs’ is already in the route collection. Route names must be unique.
Any suggestions on what is missing or incorrect.
Hello,
Hi,
Any update on launch? Did GroupDocs release the new version?
Thanks,
Bhavin
Hi Bhavin