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

RadEditor in a Silverlight RIA Business App

9 Answers 84 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Daniel Walton
Top achievements
Rank 1
Daniel Walton asked on 07 Apr 2010, 03:20 PM
I am building a Silverlight RIA business application, and I need to drop in an AJAX RadEditor (since it's much more functional than the Silverlight Editor). Everything works except the RadStyleSheetManager cannot access any resources via WebResource.axd. So I get more or less a blank page. The style background URI is: http://localhost:52662/WebResource.axd?d=o1d...  and the response is emtpy (HTTP 200). I have wasted dozens of hours trying to isolate the problem to no avail. Here are the steps to reproduce the problem:
  1. (Using VS2008 with Silverlight 3, Silverlight Tools, and RIA Web Services SDK's,) Create a new Silverlight Business Application.
  2. Right-click on the BusinessApplication.Web project, and click RadControls For ASP.NET AJAX->Convert to RadControls Web Application. Use all default options.
  3. Right-Click on the BusinessApplication.Web project, and click RadControls For ASP.NET AJAX->Add RadEditor Scenario. Again use all default options.
  4. Compile and Run, then navigate to the newly created RadEditorWebForm.aspx. This page should show the editor with the missing style resources.

Please can someone help!!

Thanks,
Dan

9 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Apr 2010, 03:49 PM
Hi Daniel,

Can you please try to put RadScriptManager and RadStyleSheetManager on the page and see what happens? These controls does not use WebResource.axd.

Another suggestion is to try the provided CDN support:
http://www.telerik.com/help/aspnet-ajax/radscriptmanager-cdn-support.html
and
http://www.telerik.com/help/aspnet-ajax/radstylesheetmanager-cdn-support.html

Sincerely yours,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Daniel Walton
Top achievements
Rank 1
answered on 08 Apr 2010, 04:28 PM
Rumen,

Thanks for the response. The RadScriptManager and the RadStyleSheetManager are both in there by default, and they do appear to use WebResource.axd. I did switch to use CDN settings, and that worked. However, this application will be used on a corporate intranet, and I don't believe that the customer will allow external service calls like this. I would like to fix the issue without resorting to CDN consumption.

FYI Here are the requests made to localhost even when CDN is turned on for both styles and scripts:
  • http://localhost:52878/WebResource.axd?d=OOTUIF7T6G2pw8yDDRPt9Q2&t=633802477995006876
  • http://localhost:52878/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2
  • http://localhost:52878/WebResource.axd?d=o1dB6CZU0OmdIWa9JWc4eCBGuRj4xgrV_3ehuqB7yWcGSZSufzPwvDjX0q6kpZeM-IFv-tBXwJt5fTUrHHHNr474TkZgcI1-g0aNtVfvcqI1&t=634036621340000000

Thanks,
Dan
0
Daniel Walton
Top achievements
Rank 1
answered on 08 Apr 2010, 08:27 PM
Update:

I enabled CDN settings just so I can keep moving, but now I find that whenever I click the Image Manager, the javascript is screwed up, again pointing to goofiness with WebResource.axd.

Please help me solve this one.

Thanks,
Dan
0
Rumen
Telerik team
answered on 09 Apr 2010, 01:33 PM
Hello Daniel,

I am afraid that the ASP.NET Framework itself imports the WebResource.axd so that featurels like __doPostBack and other can work. Unfortunately, we are not aware of a workaround for this.

Our suggestion is to check the error message that you get in the Windows Event Log and search for solution for it in the ASP.NET forums.


Kind regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Daniel Walton
Top achievements
Rank 1
answered on 09 Apr 2010, 02:19 PM
Rumen,

I have tried several approaches to this problem. Most interestingly, If I create a normal Silverlight+Web project (not a Silverlight Business Project) and even include RIA services, then add the Editor Scenario, this problem does not occur. I have gone back and even compared web.config and .csproj files between the two line-by-line and cannot find the 'breaking change'. I have stripped out references and services until the two are identical, still unable to find it. What is different about the Silverlight Business app that could cause this strange behavior?

Also, can you please confirm that you are able to reproduce the behavior? That way at least I can rule out firewall, hardware, and installation issues as causes.

Thanks,
Dan
0
Rumen
Telerik team
answered on 12 Apr 2010, 02:29 PM
Hi Daniel,

We tested the editor in a Silverlight Business Application and verified that the WebResource.axd is not loaded ( which is a behavior of this project type, but not a problem of the control) and that the RadEditor skin is not loaded.

We fixed the problem by enabling the CDN support of RadStyleSheetManager control, e.g.

<telerik:RadStyleSheetManager id="RadStyleSheetManager1"
   runat="server"
   CdnSettings-TelerikCdn="Enabled" />

Another approach to solve the problem is to register the external skin files of RadEditor as is it discussed in this KB article: Registering an external skin of RadEditor.

Kind regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Daniel Walton
Top achievements
Rank 1
answered on 12 Apr 2010, 04:11 PM
Rumen,

I also set the CDN feature on and the skins work correctly, but I still get a javascript error when I try to open the image manager. Is there a way to force the Image Manager to use remote script resources?

Thanks,
Dan
0
Rumen
Telerik team
answered on 13 Apr 2010, 04:37 PM
Hi Daniel,

The JavaScript error is due to that the WebResource.axd is not imported by this type of Silverlight applications. Very important webforms code is loaded from this file (the __doPostBack function) and in this case the editor dialogs throw errors because depends on postbacks to load its content but the __doPostBack method is missing.

The only way to fix the problem is to import this WebResource.axd file as an external physical file from another site through the DialogsScriptFile property. Since this is not an easy task and we could not help you further, our recommendation is to search / ask in the ASP.NET forums how you can do that.

Sincerely yours,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Daniel Walton
Top achievements
Rank 1
answered on 22 Apr 2010, 02:00 PM
Rumen,

This problems seems to have magically disappeared when I ported my app to SL4 and .NET 4.

-Dan
Tags
Editor
Asked by
Daniel Walton
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Daniel Walton
Top achievements
Rank 1
Share this question
or