Error executing template "/Designs/Brandsite/Paragraph/FrontpageCarousel.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 <style>
2 div .carousel-caption p{
3 color:white;
4 }
5 div .carousel-caption a{
6 color:white;
7 }
8 </style>
9
10
11 <div class="slider-container<!--$$If Defined(Item.Page.ColourScheme)--> <!--$$Item.Page.ColourScheme--><!--$$EndIf(Item.Page.ColourScheme)-->">
12 <div id="carousel-@GetString("ParagraphID")" class="carousel slide" data-ride="carousel">
13 <div class="carousel-inner">
14 <!-- Wrapper for slides -->
15 @{
16 var count = 0;
17 var focus = "active";
18 var indicatorCount = 0;
19 var hideCaption = 0;
20 }
21
22 @foreach (LoopItem i in GetLoop("Item.Images")){
23
24 if (count > 0){
25 focus = "";
26 }
27
28 var image = System.Web.HttpContext.Current.Server.UrlEncode(i.GetString("Item.Images.Image"));
29
30 <div class="item @focus">
31
32 @if(!string.IsNullOrWhiteSpace(i.GetString("Item.Images.Link.Value"))){
33 <a href="@i.GetString("Item.Images.Link.Value")">
34 <img src="/Admin/Public/GetImage.ashx?Width=1060&Height=540&Crop=5&Image=@image" alt="@i.GetString("Item.Images.Title")"></a>
35 }else{
36 <img src="/Admin/Public/GetImage.ashx?Width=1060&Height=540&Crop=5&Image=@image" alt="@i.GetString("Item.Images.Title")">
37 }
38
39 <div class="carousel-caption hidden">
40 @if(!string.IsNullOrWhiteSpace(i.GetString("Item.Images.Title.Value"))){
41
42 if(!string.IsNullOrWhiteSpace(i.GetString("Item.Images.Link.Value"))){
43 <a href="@i.GetString("Item.Images.Link.Value")">
44 <h3 style="margin-left: 15px;">@i.GetString("Item.Images.Title.Value")</h3></a>
45 }else{
46 <h3 style="margin-left: 15px;">@i.GetString("Item.Images.Title.Value")</h3>
47 }
48 }
49
50
51
52 @if(!string.IsNullOrWhiteSpace(i.GetString("Item.Images.Link.Value"))){
53 <a href="@i.GetString("Item.Images.Link.Value")">
54 <div style="margin-left: 15px; margin-bottom: 5px;" class="carousel-txt hidden-sm hidden-xs">@i.GetString("Item.Images.Subtitle.Value")</div>
55 </a>
56 }else{
57 <div style="margin-left: 15px;" class="carousel-txt hidden-sm hidden-xs">@i.GetString("Item.Images.Subtitle.Value")</div>
58 }
59 </div>
60
61
62
63 </div>
64
65 count++;
66 }
67 </div>
68
69 <div class="container elements">
70 <!-- Indicators -->
71 <ol id="test" class="carousel-indicators col-md-6">
72 @foreach (LoopItem i in GetLoop("Item.Images")){
73 <li data-target="#carousel-@GetString("ParagraphID")" data-slide-to="@indicatorCount" class="@focus"></li>
74 indicatorCount++;
75
76 }
77 </ol>
78
79 <div id="slider_captions">
80 <!-- Carousel Caption-->
81 <div style="padding: 0px 0px 0px 0px" class="carousel-caption"></div>
82
83 </div>
84 </div>
85
86 <script>
87 var child = document.getElementById("test").getElementsByTagName('li')[0];
88 child.className = "active";
89 </script>
90
91 </div>
92 </div>
93