This is a migrated thread and some comments may be shown as answers.

Sharepoint Parse error

4 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
IanH
Top achievements
Rank 1
IanH asked on 25 Apr 2008, 02:23 PM
I am trying to add RadControls for ASP.NET Ajax into MOSS07

I have added the Telerik.Web.UI.dll to the GAC

but when I add
<SafeControl Assembly="Telerik.Web.UI, Version=2008.1.415.20 Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" /> 

to web config I receive a parse error on any page I visit as shown below.

Server Error in '/' Application. 
-------------------------------------------------------------------------------- 
 
Parser Error  
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.  
 
Parser Error Message: This page has encountered a critical error. Contact your system administrator if this problem persists. 
 
Source Error:  
 
 
Line 1:  <%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Reference VirtualPath="~TemplatePageUrl" %> <%@ Reference VirtualPath="~masterurl/custom.master" %> 
Line 2:  <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head> 
Line 3:  <!--[if gte mso 9]><xml
  
 
Source File: /Pages/default.aspx    Line: 1  
 
 
-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 

I'd be grateful for any help you can provide.. I am have .net3 and 3.5 installed on the server.

Ian

4 Answers, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 25 Apr 2008, 09:50 PM
IanH-

Which controls are you trying to use in MOSS07? Right now the RadEditor and RadMenu are the easiest to use in MOSS, but in a few short weeks we will release wrappers for all of the RadControls for ASP.NET AJAX so you can easily use them all in SharePoint.

If you are trying to use RadEditor, let me know and I'll be happy to point you to the wrapper we've already created for that control.

-Todd
0
IanH
Top achievements
Rank 1
answered on 26 Apr 2008, 07:50 AM
Hi Todd,

I was planning just to use menu and editior at the moment but I wasn't even getting that far even just adding the SafeControl was busting it

Though I have just spotted in my post the problem (I think)

The is no comma in the safecontrol between version and culture... I shall fix this Monday...

Version=2008.1.415.20 Culture=neutral 

Friday afternoons always in a rush to leave early.
 
cheers for repling so quickly

Ian
0
Todd Anglin
Top achievements
Rank 2
answered on 26 Apr 2008, 11:09 PM
Ian-

I'm happy to see you've found your solution. If you're only after those two controls, you have some extra help. Telerik has previously published a whitepaper showing you how to integrate RadMenu in to SharePoint and our RadEditor already has a pre-built MOSS wrapper. If you get stuck next week, let me know so I can point you to those resources.

Otherwise, check back in a few weeks and we should have MOSS wrappers for all of the ASP.NET AJAX controls.

-Todd
0
IanH
Top achievements
Rank 1
answered on 28 Apr 2008, 09:11 AM
Hi Todd,

The parse error is still there :(

I followed the procedure in the white paper for adding the controls to MOSS (manual version) as well some updates on threads posted here.

Here is what I did.

1. Copied the Telerik.Web.UI.dll to the GAC
2. Added the safecontrol tag adding in the public Key etc

I gather from another thread on the forum  that there for the version 2008.1.415 there is no need for a radcontrols folder.

I used Telerik.Web.UI as the name space and assembly name.  I notice in
 white paper there are 2name spaces defined. I am using version 2008.1.415.20

I haven't as yet added anything to my master pages or page layouts..but get the parse error mentioned after an IIS reset/app pool recycle.

Regarding the editor wrapper where can I find a version of that for 2008.1.415?
Tags
General Discussions
Asked by
IanH
Top achievements
Rank 1
Answers by
Todd Anglin
Top achievements
Rank 2
IanH
Top achievements
Rank 1
Share this question
or