We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Sharepoint webparts

You have a series of four youtube videos that show how to make webparts for sharepoint.

I have followed the instructions and continue to get this error when trying to list the WebParts on the site:

Web Part Error: This page has encountered a critical error

Any idea where to look for problems?

Have done these things:

Aspose Demo video 1:

Using Aspose.Total for .NET with SharePoint - Create WebParts

Create ASP.NET Web Application
Create user controls (ascx)
Remove Default.aspx
Build project

Move dll to:
\\Claw-fs003\C$\inetpub\wwwroot\wss\VirtualDirectories\333\bin
Copy controls to:
\\Claw-fs003\C$\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES

Rebuild so objects get sent to the SharePoint site.

Properties - AssemblyInfo.cs
add: using System.Security;
add: [assembly: AllowPartiallyTrustedCallers]

Signing:
Sign the assembly
AsposeSharePointKey - password 'Aspose'
AsposeWebPartsSharp - password 'Aspose'

Generate Public Key Tokens:
first Public Token Key = af84fe620f8bc5f5
second Public Token Key = 6bd90bda4f465887

Add Assembly directive to the controls:
<%@ Assembly Name="AsposeSharePoint, Version 1.0.0.0, Culture=neutral, PublicKeyToken=af84fe620f8bc5f5" %>

Add UI to the controls

End video 1

Create web parts to load the controls made in video 1:

New Project
Class Library
Add Reference System.Web (for WebPart)
Write code for loading the controls

Properties - AssemblyInfo.cs
add: using System.Security;
add: [assembly: AllowPartiallyTrustedCallers]

End Video 2

web.config settings:
SafeControl:

change trust level to full:

Hi Brad,

We will check the steps mentioned in the videos and let you know. Can you please share if you noticed this issue with all DLLs (in Aspose.Total) or a specific DLL?

Best Regards,

Hi Muhammad,

I had not even gotten to the point of adding the Aspose dlls.

The parts cause the error without Aspose even included.

Brad

Hi Brad,

Thanks for more details. We will investigate the issue and will let you know.

Best Regards,