Error executing template "../../Admin/Module/BasicForms/DefaultFormTemplate.cshtml"
System.IO.IOException: There is not enough space on the disk.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
   at System.IO.FileStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at System.IO.StreamWriter.Dispose(Boolean disposing)
   at System.IO.TextWriter.Dispose()
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at RazorEngine.Roslyn.CSharp.RoslynCompilerServiceBase.CompileType(TypeContext context)
   at RazorEngine.Templating.RazorEngineCore.CreateTemplateType(ITemplateSource razorTemplate, Type modelType)
   at RazorEngine.Templating.RazorEngineCore.Compile(ITemplateKey key, Type modelType)
   at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal(ITemplateKey key, Type modelType)
   at RazorEngine.Templating.RazorEngineService.GetCompiledTemplate(ITemplateKey key, Type modelType, Boolean compileOnCacheMiss)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using System.Web.Mvc; @{ string formCssClass = GetString("Form.CssClass"); string formSystemFields = GetString("Form.SystemFields"); bool formLabelBold = GetBoolean("Form.LabelBold"); bool formLabelOverField = GetBoolean("Form.LabelOverField"); string formId = GetString("Form.HtmlId"); string formOnSubmit = GetString("Form.OnSubmit"); string formSpamScript = GetString("Form.SpamScript"); string formAction = GetString("Form.Action"); int formColumnShiftFormFieldID = GetInteger("Form.ColumnShiftFormFieldID"); string formLabelRequired = GetString("Form.LabelRequired"); int formMaxSubmits = GetInteger("Form.MaxSubmits"); int formSubmitCount = GetInteger("Form.SubmitCount"); string formMaxSubmitsReachedText = GetString("Form.MaxSubmitsReachedText"); string labelStyle = string.Empty; if (formLabelBold) { labelStyle = ".formtable .labelCell label{font-weight:bold;}"; } } @{ if (formMaxSubmits > 0 && formSubmitCount >= formMaxSubmits) { @formMaxSubmitsReachedText } else { <style type="text/css"> .formtable td { padding: 3px; } .formtable .columnCell { vertical-align: top; } .formtable .labelCell { vertical-align: top; padding-right: 10px; } .formtable .descriptionCell { font-size: 0.8em; opacity: 0.8; padding: 0px; padding-left: 3px; padding-bottom: 5px; max-height: 0.8em; line-height: 1.0em; } .formtable input[type=text], .formtable input[type=password], .formtable textarea { min-width: 250px; } </style> <style type="text/css"> @labelStyle </style> <form method="post" action="@formAction" enctype="multipart/form-data" class="@formCssClass" id="@formId" onsubmit="@formOnSubmit"> @formSystemFields <table class="formtable"> @if (formColumnShiftFormFieldID > 0) { @GetStartTable(); } @foreach (LoopItem field in GetLoop("Fields")) { int fieldId = field.GetInteger("Field.ID"); string fieldHtmlId = field.GetString("Field.HtmlId"); string fieldName = field.GetString("Field.Name"); string fieldControl = field.GetString("Field.Control"); string fieldDescription = field.GetString("Field.Description"); string fieldType = field.GetString("Field.Type"); bool fieldIsButton = field.GetBoolean("Field.IsButton"); bool fieldIsOther = field.GetBoolean("Field.IsOther"); bool fieldRequired = field.GetBoolean("Field.Required"); string requiredImage = string.Empty; if (fieldRequired && !String.IsNullOrEmpty(formLabelRequired)) { requiredImage = String.Format("<img src=\"/Files/{0}\">", formLabelRequired); } string fieldActivityId = field.GetString("Field.Activity.Id"); string fieldActivityName = field.GetString("Field.Activity.Name"); string fieldActivityDescription = field.GetString("Field.Activity.Description"); if (formLabelOverField) { if (!fieldIsButton && !fieldIsOther && fieldType != "Hidden") { <tr class="labelRow"> <td class="labelCell"><label for="@fieldHtmlId">@Translate(fieldName, fieldName) @requiredImage</label></td> </tr> } <tr class="fieldRow"> <td>@fieldControl</td> </tr> <tr class="descriptionRow"> <td class="descriptionCell"><small>@Translate(fieldDescription, fieldDescription)</small></td> </tr> if (!string.IsNullOrEmpty(fieldActivityId)) { <tr class="consentRow"> <td> <strong>@fieldActivityName</strong> <div>@fieldActivityDescription</div> </td> </tr> } } else { <tr class="fieldRow"> <td class="labelCell"> @if (!fieldIsButton && !fieldIsOther && fieldType != "Checkbox" && fieldType != "Hidden") {<label for="@fieldHtmlId">@Translate(fieldName, fieldName) @requiredImage</label>} </td> <td>@fieldControl @if (fieldType == "Checkbox") { <label for="@fieldHtmlId">@Translate(fieldName, fieldName) @requiredImage</label>}</td> </tr> <tr class="descriptionRow"> <td class="descriptionCell"></td> <td class="descriptionCell"><small>@Translate(fieldDescription, fieldDescription)</small></td> </tr> if (!string.IsNullOrEmpty(fieldActivityId)) { <tr class="consentRow"> <td></td> <td> <strong>@fieldActivityName</strong> <div>@fieldActivityDescription</div> </td> </tr> } } if (formColumnShiftFormFieldID == fieldId) { @GetShiftColumn(); } } @if (formColumnShiftFormFieldID > 0) { @GetEndTable(); } </table> </form> } } @functions { private string GetStartTable() { return "<tr><td class=\"columnCell\"><table class=\"firstColumn\">"; } private string GetShiftColumn() { return "</table></td><td class=\"columnCell\"><table class=\"secondColumn\">"; } private string GetEndTable() { return "</table></td></tr>"; } }