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: