I realise there are several threads on this subject and I have read every one I can find. I have tried all of the suggested solutions, but to no avail.
I've tried teh following solutions:
Cannot get Upload/Delete to show.
Troubleshooting.
http://www.telerik.com/forums/radeditor-image-manager-upload-button-and-others-disabled---windows-authentication
http://stackoverflow.com/questions/12199021/rad-editor-telerik-control-image-manager-and-asp-net-button-issues-not-working
http://www.telerik.com/forums/radeditor-image-manager-buttons-disabled
My ImageManager WAS working until I updated to 2014 Q1. Since then, all of the tools in the ImageManager toolbar are disabled in all the environments I deploy to.
I get no permissions errors or any indication as to why the user can't upload.
I've checked and double checked the handlers in the web config.
I've tried removing and re-adding the Telerik references
I've tried removing and re-adding the RadEditor control with default settings.
I've tried checking the Smart Menu to make sure that the handler config is right.
I've set my Upload/Delete/View folder paths programmatically and declaratively.
I've tried setting the location in the webconfig
Here's my code
I've tried teh following solutions:
Cannot get Upload/Delete to show.
Troubleshooting.
http://www.telerik.com/forums/radeditor-image-manager-upload-button-and-others-disabled---windows-authentication
http://stackoverflow.com/questions/12199021/rad-editor-telerik-control-image-manager-and-asp-net-button-issues-not-working
http://www.telerik.com/forums/radeditor-image-manager-buttons-disabled
My ImageManager WAS working until I updated to 2014 Q1. Since then, all of the tools in the ImageManager toolbar are disabled in all the environments I deploy to.
I get no permissions errors or any indication as to why the user can't upload.
I've checked and double checked the handlers in the web config.
I've tried removing and re-adding the Telerik references
I've tried removing and re-adding the RadEditor control with default settings.
I've tried checking the Smart Menu to make sure that the handler config is right.
I've set my Upload/Delete/View folder paths programmatically and declaratively.
I've tried setting the location in the webconfig
Here's my code
<
system.webServer
>
<
modules
runAllManagedModulesForAllRequests
=
"true"
>
<
remove
name
=
"RadUploadModule"
/>
<
remove
name
=
"RadCompression"
/><
add
name
=
"UrlRewriter"
type
=
"Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"
/>
<
add
name
=
"ExceptionlessModule"
type
=
"Exceptionless.Web.ExceptionlessModule, Exceptionless.Web"
/>
<
add
name
=
"RadUploadModule"
type
=
"Telerik.Web.UI.RadUploadHttpModule"
preCondition
=
"integratedMode"
/>
<
add
name
=
"RadCompression"
type
=
"Telerik.Web.UI.RadCompression"
preCondition
=
"integratedMode"
/>
</
modules
>
<
validation
validateIntegratedModeConfiguration
=
"false"
/>
<
handlers
>
<
remove
name
=
"ChartImage_axd"
/>
<
remove
name
=
"Telerik_Web_UI_SpellCheckHandler_axd"
/>
<
remove
name
=
"Telerik_Web_UI_DialogHandler_aspx"
/>
<
remove
name
=
"Telerik_RadUploadProgressHandler_ashx"
/>
<
remove
name
=
"Telerik_Web_UI_WebResource_axd"
/>
<
add
name
=
"Telerik_Web_UI_DialogHandler_aspx"
path
=
"Telerik.Web.UI.DialogHandler.aspx"
type
=
"Telerik.Web.UI.DialogHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
add
name
=
"Telerik_Web_UI_WebResource_axd"
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
add
name
=
"Telerik_Web_UI_SpellCheckHandler_axd"
path
=
"Telerik.Web.UI.SpellCheckHandler.axd"
type
=
"Telerik.Web.UI.SpellCheckHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
add
name
=
"ChartImage_axd"
path
=
"ChartImage.axd"
type
=
"Telerik.Web.UI.ChartHttpHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
add
name
=
"Telerik_RadUploadProgressHandler_ashx"
path
=
"Telerik.RadUploadProgressHandler.ashx"
type
=
"Telerik.Web.UI.RadUploadProgressHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
</
handlers
>
</
system.webServer
>
<
telerik:RadEditor
ID
=
"BodyRadEditor"
runat
=
"server"
Width
=
"100%"
AllowScripts
=
"True"
>
<
ContextMenus
>
<
telerik:EditorContextMenu
TagName
=
"IMG"
>
<
telerik:EditorTool
Name
=
"SetImageProperties"
/>
</
telerik:EditorContextMenu
>
<
telerik:EditorContextMenu
TagName
=
"TABLE"
>
<
telerik:EditorTool
Name
=
"ToggleTableBorder"
/>
<
telerik:EditorTool
Name
=
"SetTableProperties"
/>
<
telerik:EditorTool
Name
=
"DeleteTable"
/>
</
telerik:EditorContextMenu
>
<
telerik:EditorContextMenu
TagName
=
"TD"
>
<
telerik:EditorTool
Name
=
"InsertRowAbove"
/>
<
telerik:EditorTool
Name
=
"InsertRowBelow"
/>
<
telerik:EditorTool
Name
=
"DeleteRow"
/>
<
telerik:EditorTool
Name
=
"InsertColumnLeft"
/>
<
telerik:EditorTool
Name
=
"InsertColumnRight"
/>
<
telerik:EditorTool
Name
=
"MergeColumns"
/>
<
telerik:EditorTool
Name
=
"MergeRows"
/>
<
telerik:EditorTool
Name
=
"SplitCell"
/>
<
telerik:EditorTool
Name
=
"DeleteCell"
/>
<
telerik:EditorTool
Name
=
"SetCellProperties"
/>
</
telerik:EditorContextMenu
>
<
telerik:EditorContextMenu
TagName
=
"BODY"
>
<
telerik:EditorTool
Name
=
"PasteFromWord"
/>
<
telerik:EditorTool
Name
=
"PastePlainText"
/>
<
telerik:EditorTool
Name
=
"PasteAsHtml"
/>
</
telerik:EditorContextMenu
>
</
ContextMenus
>
<
Tools
>
<
telerik:EditorToolGroup
Tag
=
"MainToolbar"
>
<
telerik:EditorSplitButton
Name
=
"Undo"
>
</
telerik:EditorSplitButton
>
<
telerik:EditorSplitButton
Name
=
"Redo"
>
</
telerik:EditorSplitButton
>
<
telerik:EditorSeparator
/>
<
telerik:EditorTool
Name
=
"Print"
ShortCut
=
"CTRL+P / CMD+P"
/>
<
telerik:EditorTool
Name
=
"AjaxSpellCheck"
/>
<
telerik:EditorTool
Name
=
"FindAndReplace"
ShortCut
=
"CTRL+F / CMD+F"
/>
<
telerik:EditorTool
Name
=
"SelectAll"
ShortCut
=
"CTRL+A / CMD+A"
/>
<
telerik:EditorTool
Name
=
"Cut"
ShortCut
=
"CTRL+X / CMD+X"
/>
<
telerik:EditorTool
Name
=
"Copy"
ShortCut
=
"CTRL+C / CMD+C"
/>
<
telerik:EditorTool
Name
=
"Paste"
ShortCut
=
"CTRL+V / CMD+V"
/>
<
telerik:EditorToolStrip
Name
=
"PasteStrip"
>
</
telerik:EditorToolStrip
>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"InsertToolbar"
>
<
telerik:EditorTool
Name
=
"ImageManager"
ShortCut
=
"CTRL+G / CMD+G"
/>
<
telerik:EditorSeparator
/>
<
telerik:EditorTool
Name
=
"LinkManager"
/>
<
telerik:EditorTool
Name
=
"InsertLink"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"DropdownToolbar"
>
<
telerik:EditorSplitButton
Name
=
"InsertSymbol"
>
</
telerik:EditorSplitButton
>
<
telerik:EditorToolStrip
Name
=
"InsertTable"
>
</
telerik:EditorToolStrip
>
<
telerik:EditorTool
Name
=
"ToggleTableBorder"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
>
<
telerik:EditorTool
Name
=
"JustifyLeft"
/>
<
telerik:EditorTool
Name
=
"JustifyCenter"
/>
<
telerik:EditorTool
Name
=
"JustifyRight"
/>
<
telerik:EditorTool
Name
=
"JustifyFull"
/>
<
telerik:EditorTool
Name
=
"JustifyNone"
/>
<
telerik:EditorSeparator
/>
<
telerik:EditorTool
Name
=
"Indent"
/>
<
telerik:EditorTool
Name
=
"Outdent"
/>
<
telerik:EditorSeparator
/>
<
telerik:EditorTool
Name
=
"InsertOrderedList"
/>
<
telerik:EditorTool
Name
=
"InsertUnorderedList"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
>
<
telerik:EditorTool
Name
=
"FormatSets"
/>
<
telerik:EditorTool
Name
=
"Bold"
ShortCut
=
"CTRL+B / CMD+B"
/>
<
telerik:EditorTool
Name
=
"Italic"
ShortCut
=
"CTRL+I / CMD+I"
/>
<
telerik:EditorTool
Name
=
"Underline"
ShortCut
=
"CTRL+U / CMD+U"
/>
<
telerik:EditorTool
Name
=
"StrikeThrough"
/>
</
telerik:EditorToolGroup
>
</
Tools
>
<
Content
>
</
Content
>
<
ImageManager
EnableAsyncUpload
=
"true"
AllowFileExtensionRename
=
"False"
AllowMultipleSelection
=
"True"
MaxUploadFileSize
=
"2048000"
DeletePaths
=
"~/Uploads"
UploadPaths
=
"~/Uploads"
ViewPaths
=
"~/Uploads"
></
ImageManager
>
<
TrackChangesSettings
CanAcceptTrackChanges
=
"False"
></
TrackChangesSettings
>
</
telerik:RadEditor
>
protected
virtual
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
ArticleMultiView.SetActiveView(ArticleFormView);
if
(!Directory.Exists(Server.MapPath(@
"~/Uploads/"
+ user.Username)))
Directory.CreateDirectory(Server.MapPath(@
"~/Uploads/"
+ user.Username));
string
[] path =
new
string
[] { @
"~/Uploads/"
+ user.Username +
"/"
};
BodyRadEditor.ImageManager.UploadPaths = path;
BodyRadEditor.ImageManager.ViewPaths = path;
BodyRadEditor.ImageManager.DeletePaths = path;
...
...
...
}
}