System.InvalidOperationException: Unable to generate a temporary class (result=1).
;error CS2001: Source file 'C:\Windows\TEMP\duyigyoo.0.cs' could not be found
;error CS2008: No inputs specified
;
; at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
; at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
; at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
; at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
; at Telerik.Web.UI.ControlItemContainer.LoadXml(String xml)
; at GF.Common.Web.FEViews.Pages.Default.Page_Load(Object sender, EventArgs e)"
protected void callogGrd_Init(object sender, EventArgs e)
{
int i = 0;
GridFilterMenu menu = callogGrd.FilterMenu;
while (i < menu.Items.Count)
{
if ((menu.Items[i].Text == "Contains") || (menu.Items[i].Text == "StartsWith") || (menu.Items[i].Text == "NoFilter"))
{
i++;
}
else
{
menu.Items.RemoveAt(i);
}
}
}
protected System.String loadCSS(System.String strFilePath, ref RadEditor radEditor)
{
System.String result = "OK";
try
{
if (strFilePath.IndexOf(":") < 0 && strFilePath.IndexOf("//") < 0)
{
strFilePath = Server.MapPath(strFilePath);//its a virtual path so map it to a physical one
}
System.String strPublishingFolder = Path.GetDirectoryName(strFilePath);
foreach (System.String strCSSfile in Directory.GetFiles(strPublishingFolder, "*.css"))
{
radEditor.CssFiles.Add(strCSSfile);
}//EOF strCSSfile in Directory.GetFiles
radEditor.CssClasses.Add("", "");
}
catch (Exception ex)
{
System.Object oe = (Object)ex;
result = "loadCSS: " + et.rptError(ref oe);
}//try
return result;
}//EOF loadCSS
The rad editor control markup is:
<
telerik:RadEditor
ID
=
"telerikeditor"
Runat
=
"server"
OnClientLoad
=
"onClientLoad"
OnClientCommandExecuting
=
"OnClientCommandExecuting"
>
<
Tools
>
<
telerik:EditorToolGroup
Tag
=
"grpInputOutput"
>
<
telerik:EditorTool
ImageUrl
=
"Images/radeditorSave.gif"
Name
=
"Save"
ShowText
=
"False"
Text
=
"Save"
/>
<
telerik:EditorTool
ImageUrl
=
"Images/radeditorSaveAs.gif"
Name
=
"SaveAs"
ShowText
=
"False"
Text
=
"Save As"
/>
<
telerik:EditorSeparator
/>
<
telerik:EditorTool
Name
=
"PageProperties"
/>
<
telerik:EditorTool
Name
=
"Print"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpAids"
>
<
telerik:EditorTool
Name
=
"Help"
/>
<
telerik:EditorDropDown
Name
=
"Zoom"
></
telerik:EditorDropDown
>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpCheckers"
>
<
telerik:EditorTool
Name
=
"AjaxSpellCheck"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpFind"
>
<
telerik:EditorTool
Name
=
"FindAndReplace"
/>
<
telerik:EditorTool
Name
=
"SelectAll"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpRecover"
>
<
telerik:EditorSplitButton
Name
=
"Undo"
></
telerik:EditorSplitButton
>
<
telerik:EditorSplitButton
Name
=
"Redo"
></
telerik:EditorSplitButton
>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpCutNpaste"
>
<
telerik:EditorTool
Name
=
"Cut"
/>
<
telerik:EditorTool
Name
=
"Copy"
/>
<
telerik:EditorTool
Name
=
"Paste"
ShortCut
=
"CTRL+V"
/>
<
telerik:EditorSeparator
/>
<
telerik:EditorTool
Name
=
"PasteFromWord"
/>
<
telerik:EditorTool
Name
=
"StripWord"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpInsert"
>
<
telerik:EditorTool
Name
=
"InsertParagraph"
/>
<
telerik:EditorSplitButton
Name
=
"InsertSymbol"
></
telerik:EditorSplitButton
>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpTextFont"
>
<
telerik:EditorDropDown
Name
=
"FormatBlock"
></
telerik:EditorDropDown
>
<
telerik:EditorDropDown
Name
=
"FontName"
></
telerik:EditorDropDown
>
<
telerik:EditorDropDown
Name
=
"RealFontSize"
></
telerik:EditorDropDown
>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpMarkup"
>
<
telerik:EditorTool
Name
=
"ApplyClass"
></
telerik:EditorTool
>
<
telerik:EditorTool
Name
=
"Bold"
/>
<
telerik:EditorTool
Name
=
"Italic"
/>
<
telerik:EditorTool
Name
=
"Underline"
/>
<
telerik:EditorTool
Name
=
"ConvertToLower"
/>
<
telerik:EditorTool
Name
=
"ConvertToUpper"
/>
<
telerik:EditorTool
Name
=
"InsertHorizontalRule"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpAlignment"
>
<
telerik:EditorTool
Name
=
"JustifyLeft"
/>
<
telerik:EditorTool
Name
=
"JustifyCenter"
/>
<
telerik:EditorTool
Name
=
"JustifyRight"
/>
<
telerik:EditorTool
Name
=
"JustifyFull"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpLists"
>
<
telerik:EditorTool
Name
=
"InsertOrderedList"
/>
<
telerik:EditorTool
Name
=
"InsertUnorderedList"
/>
<
telerik:EditorSeparator
/>
<
telerik:EditorTool
Name
=
"Indent"
/>
<
telerik:EditorTool
Name
=
"Outdent"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpImages"
>
<
telerik:EditorTool
Name
=
"InsertImage"
/>
<
telerik:EditorTool
Name
=
"ImageManager"
ShortCut
=
"CTRL+M"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
Tag
=
"grpCalendar"
>
<
telerik:EditorTool
Name
=
"InsertDate"
/>
<
telerik:EditorTool
Name
=
"InsertTime"
/>
</
telerik:EditorToolGroup
>
</
Tools
>
<
Content
>
</
Content
>
</
telerik:RadEditor
>