Error executing template "/Designs/lmoweb_v1/Paragraph/joblistv2.cshtml"
System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
   at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
   at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.ConnectStream.WriteHeaders(Boolean async)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
   at System.Xml.XmlTextReaderImpl.OpenUrl()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at CompiledRazorTemplates.Dynamic.RazorEngine_8c9febab99a44fecb1dc05e94dc4dc78.getList(String url, String node) in C:\inetpub\wwwroot\lmo.LIVE\Files\Templates\Designs\lmoweb_v1\Paragraph\joblistv2.cshtml:line 8
   at CompiledRazorTemplates.Dynamic.RazorEngine_8c9febab99a44fecb1dc05e94dc4dc78.Execute() in C:\inetpub\wwwroot\lmo.LIVE\Files\Templates\Designs\lmoweb_v1\Paragraph\joblistv2.cshtml:line 29
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 <h1 class="big-h1">Ledige stillinger</h1> 2 3 @using System.Xml; 4 @functions{ 5 6 public XmlNodeList getList( string url, string node) { 7 XmlDocument doc1 = new XmlDocument(); 8 doc1.Load(url); 9 XmlElement root = doc1.DocumentElement; 10 XmlNodeList nodes = root.SelectNodes(node); 11 return nodes; 12 } 13 14 } 15 @{ 16 string JobListe = "1"; 17 if (GetString("ParagraphPageID") == "1829") { 18 JobListe = "2"; 19 } 20 if (GetString("ParagraphPageID") == "1805") { 21 JobListe = "9"; 22 } 23 if (GetString("ParagraphPageID") == "2287") { 24 JobListe = "10"; 25 } 26 } 27 28 <div class='jobliste-wrapper'> 29 @foreach( XmlNode n in getList("https://rekruttering.lmo.dk/Rek/joblistxml.asmx/GetJobList?JobListId=" + JobListe + "&Language=da", "/JobOffers/JobOffer") ) { 30 31 string ShowJobUrl = n["ShowJobUrl"].InnerText; 32 string JobTitle = n["JobTitle"].InnerText; 33 string ApplyForJobUrl = n["ApplyForJobUrl"].InnerText; 34 string ShortDescription = n["ShortDescription"].InnerText; 35 string Description = n["Description"].InnerText; 36 string StartDate = n["StartDate"].InnerText; 37 string EndDate = n["EndDate"].InnerText; 38 39 <div class="job-i-lmo"> 40 <h2 class="job-overskrift"> 41 <a href='@ShowJobUrl' target='_blank' class="jobopslag-url">@JobTitle</a> 42 </h2> 43 @if (JobListe == "1" ) { 44 <div class="job-info"> 45 @foreach(XmlNode ba in n["BusinessAreas"].ChildNodes ) { 46 <p class="job-fagomraade"><b>Fagområde:</b> @(ba.InnerText.ToString())</p> 47 } 48 @if(!n["Locations"].IsEmpty) { 49 <p class="job-sted"><b>Sted:</b> 50 @foreach(XmlNode Loc in n["Locations"].ChildNodes ) { 51 <text>@(Loc.InnerText.ToString())</text> 52 } 53 </p> 54 } 55 <p class='job-frist'><b>Ansøgningsfrist:</b> @if(EndDate != "") {<text>@EndDate</text>} else {<text>Løbende</text>}</p> 56 </div> 57 58 <div class="job-beskrivelse"> 59 <p>@ShortDescription</p> 60 </div> 61 62 <br/> 63 } 64 </div> 65 66 } 67 </div> 68 <!--@SnippetStart(FooterJS)--> 69 <script> 70 $('.job a').click(function(e) { 71 e.preventDefault(); 72 var link = $(this).attr('href'); 73 window.open('target.html';'_self'); 74 }); 75 </script> 76 <!--@SnippetEnd(FooterJS)-->

Uopfordret ansøgning

Send en uopfordret ansøgning og kom i vores kandidatbank her.

Top