Answered by:
[CRM 2011][Customer Portal] Unable to edit content

Question
-
When I press any of the content editing buttons on a local IIS installation of Customer Portal, it fails with the following message:
An error has occurred while saving your content. Your changes have not been saved.
The error is different if I use the edit pane to the right of a page:
An error has occurred while loading content required for this feature.
Using IE debugging tools, I found that I get an error 500 when accessing the Cms.svc service. Unfortunately, I couldn't get any more information; despite running the code locally, I didn't receive any additional exception information.
What should I do?
EDIT:
When I try to open the Cms.svc file in a web browser (/Services/Cms.svc/) all I get is this:
The server encountered an error processing the request. See server logs for more details.
EDIT 2:
I've traced the problem to WCF not being able to load some type. Unfortunately, I cannot tell which type it is. I can also replicate the error on any local IIS instance, so I doubt it's some sort of missing system DLL.
- Edited by Bender Mateusz Thursday, July 12, 2012 10:53 AM
Tuesday, July 10, 2012 10:47 AM
Answers
-
Ok, got it sorted. The culprit is Microsoft.Xrm.sdk.deployment.dll. It should be there, but it aint. I used the Fusion Assembly Binding Log viewer to discover what assembly was failing to load.
Drop that into your bin folder and hopefully all should be good with the world.
Edit : Looks like this was missing from the 311 Accelerator media - I blogged about this here
- Proposed as answer by brian-illand Thursday, February 21, 2013 4:34 PM
- Edited by brian-illand Thursday, February 21, 2013 9:50 PM
- Marked as answer by Bender Mateusz Thursday, February 28, 2013 11:58 AM
Thursday, February 21, 2013 4:33 PM
All replies
-
hi, did you ever figure this one out?Monday, August 13, 2012 7:30 PM
-
Sadly, no.
I only managed to get things working by installing the Customer Portal as an Azure web application. I don't know what kind of DLL is missing or why it doesn't work on a regular IIS.
Also, after deploying to Azure, I don't have access to a WYSIWYG-like edit, only a primitive HTML text editor (contrary to the Customer Portal documentation).
Monday, August 13, 2012 11:26 PM -
Turn on page errors so that you can see them, or log into the local server and browse on the server. You can also examine the trace.axd file, assuming again that you enabled it. There should be no problems using the rich front-side editing.
Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
Thursday, August 30, 2012 12:26 PMModerator -
Hi,
I have the same problem, but my portal doesn´t work in azure. When I try to open the Cms.svc file in a web browser all I get is this: The server encountered an error processing the request. See server logs for more details.
I activated trace, but i can´t find any clue on it. i already read the all posts related with this problem and applied all fixes but nothing Works. i using the lastest version of Partner Portal (1.0.00.11)
Ricardo de Souza rsouza@tridea.com.br
- Edited by RicardodeSouza Monday, November 26, 2012 9:12 PM error
Monday, November 26, 2012 9:11 PM -
Hi,
any tips how i debug this error? I would be very grateful
Ricardo de Souza rsouza@tridea.com.br
Tuesday, November 27, 2012 3:57 PM -
The default setting in the portal is to disable error details for remote browsers. You will either have to repeat the process by using a browser on the server, or turn on error details in the web.config so that you can see the full error details.
Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
Tuesday, November 27, 2012 4:28 PMModerator -
The likely problem is that the host is Windows 2008 R2 with Service Pack 1 and without the NPD hotfix, which breaks ASP.NET routing and shows up as a 404 error on the cms.svc file. The best fix is to use osversion=3 in Azure which uses Windows Server 2012. Alternatively you need to deploy the hotfix. Please see http://community.adxstudio.com/blogs/shan/service-pack-1-breaks-asp-net-routing/
Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
Tuesday, November 27, 2012 4:33 PMModerator -
Hi Shan,
I updated the cloud service for use Windows 2012 and applied the hotfix but the error persists (error 500 in Services/Cms.svc). I follow several instrucions found in web attempt to detail it but i failed. i will buit a in-house test environment but meanwhile if you have any other ideas...
may not be related, but to build solution i have to update some references in plugin project and correct a error in Xrm project,
Thanks again.
Ricardo de Souza rsouza@tridea.com.br
- Edited by RicardodeSouza Wednesday, November 28, 2012 11:04 AM error
Wednesday, November 28, 2012 2:57 AM -
Hi,
I builted a in-house environment and applied the hotfix but the error persists. i turned on FailedReqLogs and i received only one warning:
MODULE_SET_RESPONSE_ERROR_STATUS
ModuleName="ManagedPipelineHandler", Notification="EXECUTE_REQUEST_HANDLER", HttpStatus="500", HttpReason="Internal Server Error", HttpSubStatus="0", ErrorCode="The operation completed successfully.
(0x0)", ConfigExceptionInfo=""I kind lost here. If anyone have a clue, i will apreciate.
thanks!
Ricardo de Souza rsouza@tridea.com.br
Thursday, December 13, 2012 9:52 PM -
No need to get that fancy. Just turn on the developer toolbar in the browser and look at the response that comes back from the crm.svc call. It is the asp.net error that we need to look at. The error will also surface in your event log as well as in the trace.axd of the portal website.
Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
Thursday, December 13, 2012 10:02 PMModerator -
Hi,
I only do that because i activated detailed errors in IIS and the error message stills don´t give a clue about the problem. Besides, nothing is logged in event viewer or site logs. the same 500 error appears, even in trace.axd file.
Ricardo de Souza rsouza@tridea.com.br
Thursday, December 13, 2012 11:07 PM -
Please send me either the fiddler trace that includes the request to cms.svc.
This code works for all other customers, so there must be a component or a configuration that is unique to your server that is causing the error. The portal uses oData and WCF.
Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
Thursday, December 13, 2012 11:14 PMModerator -
Hi All,
am getting the same issue, when you click 'edit' for a specific section you get an error message...
Message from webpage
"An error has occurred while saving your content. Your changes have not been saved"Running this in debug mode using Visual Studio 2012 for Web (on Windows 8), the debug output shows the same error every time you try and Edit a section...
Exception was thrown at line 111, column 3898 in http://localhost:64911/js/yui-combo-2-8-0r4.js
0x800a03f6 - JavaScript runtime error: Invalid character
When you click edit for the complete page you get a slightly different message...
Message from webpage
"An error has occurred while loading content required for this feature"You get the same debug error shown in visual studio as above.
And you also see in the IE Developer/Debug pane the following error...
error: undefined[XRM.editable.Entity.showEditDialog]The service has been deployed to an Azure Cloud App using Windows Server 2012 OS3 and I get the same issues.
Any help would be greatly appreciated has been driving me crazy over the Xmas and New Year break :-)Tuesday, January 1, 2013 10:37 PM -
I encountered the same error too!
An error has occurred while saving your content. Your changes have not been saved.
An error has occurred while loading content required for this feature.
I download the most current version from Marketplace. And also tried the recommendation from here but still same error.
My setup is on-premise with CRM on Claim-base authentication.
William Toh | Dynamics CRM
- Edited by wtoh Monday, February 18, 2013 7:31 AM update
Monday, February 18, 2013 7:29 AM -
in order to help you William, I would need the actual error that is thrown on the cms.svc call. you can get this using fiddler, the development toolbar, or trace.axd.
Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
Monday, February 18, 2013 3:02 PMModerator -
Hi Shan,
thanks for the assistance.
note i also followed your post on:
http://social.microsoft.com/Forums/uk/crmlabs/thread/e2dccd64-d9c5-49eb-b85f-37e103a20c69
http://community.adxstudio.com/blogs/shan/service-pack-1-breaks-asp-net-routing/With trace.axd, i am seeing 500 error code in my VS on debug. The content is quite big, is there specific keys (Eg. ALL_RAW) that you require?
However, at my dev server, trace.axd ran with this error:
William Toh | Dynamics CRM
Tuesday, February 19, 2013 6:32 AM -
Sorry to interrupt here, but I'm getting the exact same problem as Willam3PS. I am running the portal in a VM on IIS on Windows 2008 SP1, with the latest .NET4 hotfixes applied and also directly from VS2012 on my local machine.
I did a fiddler2 trace, but it doesn't show much I'm afraid. Regardless of what is thrown at crm.svc, it always returns the same response.
Request:
GET http://localhost:51315/Services/Cms.svc/Adx_webpageSet(guid'283a94b6-ebc8-48af-87f7-1cdc75a945de')/Adx_Copy HTTP/1.1
Accept: application/json, text/javascript
Content-Type: application/json
X-Requested-With: XMLHttpRequest
Referer: http://localhost:51315/
Accept-Language: en-gb
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Host: localhost:51315
Connection: Keep-Alive
Cookie: anonprofile=Td7FAmx6DaHJueM70YaVVWjfPC4RCrH2lPaoAsIzWUMpvygDFB9tX6InnWP8i2NLlUENcfDciUfoOKVYU0tYXwVnNkSyvSTHK-mv4Hh8GGUrhtpFcK7QetYZIbJBqka8nCOUYS_AICU9AgXFNGBJrjjE2osP7JkXj_XP95aThC0MUAZg0; .ASPXAUTH=ECED0AD2122FAAC5D7735AEC625B82E63049DA3216D905BDCFC31AEBA526DB255034C921757F6C1EF663FC75E5928E63D99887D96653BB34317521278E3FA821C12C4C8643BBAA6E13D4A634ED411D73C511D007F5EED65DE4A8F9E549CEDA69EE391DC5B8BE60F5598F36894AAB1F9E67DEF00BBEF86FA83B2A1E780700393D5A65C223Response
HTTP/1.1 500 Internal Server Error
Server: ASP.NET Development Server/11.0.0.0
Date: Tue, 19 Feb 2013 16:36:41 GMT
DataServiceVersion: 1.0;
Content-Length: 1647
Cache-Control: private
Content-Type: text/html
Connection: Close<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Request Error</title>
<style>BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; } #content { margin-left: 30px; font-size: .70em; padding-bottom: 2em; } A:link { color: #336699; font-weight: bold; text-decoration: underline; } A:visited { color: #6699cc; font-weight: bold; text-decoration: underline; } A:active { color: #336699; font-weight: bold; text-decoration: underline; } .heading1 { background-color: #003366; border-bottom: #336699 6px solid; color: #ffffff; font-family: Tahoma; font-size: 26px; font-weight: normal;margin: 0em 0em 10px -20px; padding-bottom: 8px; padding-left: 30px;padding-top: 16px;} pre { font-size:small; background-color: #e5e5cc; padding: 5px; font-family: Courier New; margin-top: 0px; border: 1px #f0f0e0 solid; white-space: pre-wrap; white-space: -pre-wrap; word-wrap: break-word; } table { border-collapse: collapse; border-spacing: 0px; font-family: Verdana;} table th { border-right: 2px white solid; border-bottom: 2px white solid; font-weight: bold; background-color: #cecf9c;} table td { border-right: 2px white solid; border-bottom: 2px white solid; background-color: #e5e5cc;}</style>
</head>
<body>
<div id="content">
<p class="heading1">Request Error</p>
<p>The server encountered an error processing the request. See server logs for more details.</p>
</div>
</body>
</html>- Edited by brian-illand Tuesday, February 19, 2013 5:20 PM
Tuesday, February 19, 2013 4:48 PM -
I'd really like to get to the bottom of this. Now just to reiterate, this happens with the portal on my local Win7 machine in VS2012, as well as on a Windows 2008 R2 box. While the Fiddler trace doesn't show much, and debugging in VS flags up no error, I enabled system.diagnostics logs in web.config and ran a trace on the Windows 2008 box in IIS.
When I make a simple get request to cms.svc endpoint and view the svclog in Service Trace viewer, I get the below the below exception. So it seems there is a problem loading a type somewhere, but how can I find out what it is?
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
<EventID>131076</EventID>
<Type>3</Type>
<SubType Name="Error">0</SubType>
<Level>2</Level>
<TimeCreated SystemTime="2013-02-19T17:44:17.2011718Z" />
<Source Name="System.ServiceModel" />
<Correlation ActivityID="{6e91ec50-be5c-4df0-8a4a-293a5e3ce5ae}" />
<Execution ProcessName="w3wp" ProcessID="6972" ThreadID="6" />
<Channel />
<Computer>XXXXXXX</Computer>
</System>
<ApplicationData>
<TraceData>
<DataItem>
<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error">
<TraceIdentifier>http://msdn.microsoft.com/en-GB/library/System.ServiceModel.Diagnostics.TraceHandledException.aspx</TraceIdentifier>
<Description>Handling an exception.</Description>
<AppDomain>/LM/W3SVC/3/ROOT-1-130057694549531250</AppDomain>
<Exception>
<ExceptionType>System.Reflection.ReflectionTypeLoadException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
<Message>Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.</Message>
<StackTrace>
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at System.Data.Services.Providers.ReflectionServiceProvider.PopulateMetadataForDerivedTypes(IDictionary`2 knownTypes, IDictionary`2 childTypes, Queue`1 unvisitedTypes, IEnumerable`1 entitySets)
at System.Data.Services.Providers.ReflectionServiceProvider.PopulateMetadata(IDictionary`2 knownTypes, IDictionary`2 childTypes, IDictionary`2 entitySets)
at System.Data.Services.DataService`1.CreateProvider()
at System.Data.Services.DataService`1.HandleRequest()
at System.Data.Services.DataService`1.ProcessRequestForMessage(Stream messageBody)
at SyncInvokeProcessRequestForMessage(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
</StackTrace>
<ExceptionString>System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at System.Data.Services.Providers.ReflectionServiceProvider.PopulateMetadataForDerivedTypes(IDictionary`2 knownTypes, IDictionary`2 childTypes, Queue`1 unvisitedTypes, IEnumerable`1 entitySets)
at System.Data.Services.Providers.ReflectionServiceProvider.PopulateMetadata(IDictionary`2 knownTypes, IDictionary`2 childTypes, IDictionary`2 entitySets)
at System.Data.Services.DataService`1.CreateProvider()
at System.Data.Services.DataService`1.HandleRequest()
at System.Data.Services.DataService`1.ProcessRequestForMessage(Stream messageBody)
at SyncInvokeProcessRequestForMessage(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</ExceptionString>
</Exception>
</TraceRecord>
</DataItem>
</TraceData>
</ApplicationData>
</E2ETraceEvent>Thursday, February 21, 2013 9:41 AM -
bri_75, this is as far as I managed to get. In my initial post:
"I've traced the problem to WCF not being able to load some type"That's possibly one of the worst exception messages in .NET - cannot load type. At least tell us what the darn type IS .NET! *shakes fist*
Thursday, February 21, 2013 9:53 AM -
Yep, terrible. Currently working through some of these suggestions to find out what really is missing.Thursday, February 21, 2013 11:37 AM
-
Ok, got it sorted. The culprit is Microsoft.Xrm.sdk.deployment.dll. It should be there, but it aint. I used the Fusion Assembly Binding Log viewer to discover what assembly was failing to load.
Drop that into your bin folder and hopefully all should be good with the world.
Edit : Looks like this was missing from the 311 Accelerator media - I blogged about this here
- Proposed as answer by brian-illand Thursday, February 21, 2013 4:34 PM
- Edited by brian-illand Thursday, February 21, 2013 9:50 PM
- Marked as answer by Bender Mateusz Thursday, February 28, 2013 11:58 AM
Thursday, February 21, 2013 4:33 PM -
Hi,
This works for me too. Thanks ! :)
Ricardo de Souza rsouza@tridea.com.br
Tuesday, February 26, 2013 10:14 PM -
Thanks Brian! This works for me too!
Funny thing is my customer portal was a fresh download from the Marketplace at the point of my report to this forum (ie. early-mid Feb). And the bin folder does not have this dll file.
Nevertheless, kudos to you!
William Toh | Dynamics CRM
Thursday, February 28, 2013 5:12 AM -
Hi all,
after fixing the above issue, i encounter the following:
From the Functionality Guide included in the Accelerator, the content editor is supposed to be a rich text editor:
However, the one that I deployed is a html editor. Is there something else missing?
William Toh | Dynamics CRM
Thursday, February 28, 2013 5:48 AM -
William3PS: I've already created a thread regarding this issue:
http://social.microsoft.com/Forums/en-US/crmlabs/thread/49007b2e-85e6-483e-89c1-09a1f981d38fIt seems the WYSiWYG editor was dropped for some reason, but no one bothered to upate the documentation. But until Shan McArthur speaks up in that thread... well... ;)
Also, brian-illand, nice find! :)
- Edited by Bender Mateusz Thursday, February 28, 2013 12:00 PM
Thursday, February 28, 2013 11:23 AM -
Thanks Bender. I will follow the discussion there.
William Toh | Dynamics CRM
Friday, March 1, 2013 1:45 AM -
Yes, LCA review in Microsoft caused us to drop the TinyMce editor so all you get now is a text box editor. The commercial edition from Adxstudio does not have this limitation.
Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
Saturday, February 22, 2014 2:03 AMModerator