Error executing template "/Designs/lmoweb_v1/Paragraph/joblist-landbruget.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_c8f763ab9433471181353d9b64562c11.getList(String url, String node) in C:\inetpub\wwwroot\lmo.LIVE\Files\Templates\Designs\lmoweb_v1\Paragraph\joblist-landbruget.cshtml:line 8
   at CompiledRazorTemplates.Dynamic.RazorEngine_c8f763ab9433471181353d9b64562c11.Execute() in C:\inetpub\wwwroot\lmo.LIVE\Files\Templates\Designs\lmoweb_v1\Paragraph\joblist-landbruget.cshtml:line 21
   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 i landbruget</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 = "12"; 17 18 } 19 20 <div class='jobliste-wrapper'> 21 @foreach( XmlNode n in getList("https://rekruttering.lmo.dk/Rek/joblistxml.asmx/GetJobList?JobListId=" + JobListe + "&Language=da", "/JobOffers/JobOffer") ) { 22 23 string ShowJobUrl = n["ShowJobUrl"].InnerText; 24 string JobTitle = n["JobTitle"].InnerText; 25 string ApplyForJobUrl = n["ApplyForJobUrl"].InnerText; 26 string ShortDescription = n["ShortDescription"].InnerText; 27 string Description = n["Description"].InnerText; 28 string StartDate = n["StartDate"].InnerText; 29 string EndDate = n["EndDate"].InnerText; 30 31 <div class="job-i-lmo"> 32 33 <h2 class="job-overskrift"> 34 <a href='@ShowJobUrl' target='_blank' class="jobopslag-url">@JobTitle</a> 35 </h2> 36 @if (JobListe == "12" ) { 37 <div class="job-info"> 38 @foreach(XmlNode ba in n["BusinessAreas"].ChildNodes ) { 39 <p class="job-fagomraade"><b>Stilling:</b> @(ba.InnerText.ToString())</p> 40 } 41 @if(!n["Locations"].IsEmpty) { 42 <p class="job-sted"><b>Sted:</b> 43 @foreach(XmlNode Loc in n["Locations"].ChildNodes ) { 44 <text>@(Loc.InnerText.ToString())</text> 45 } 46 </p> 47 } 48 <p class='job-frist'><b>Ansøgningsfrist:</b> @if(EndDate != "") {<text>@EndDate</text>} else {<text>Løbende</text>}</p> 49 </div> 50 51 52 <div class="job-beskrivelse"> 53 <p>@ShortDescription</p> 54 </div> 55 56 <br/> 57 } 58 </div> 59 60 } 61 </div> 62 <!--@SnippetStart(FooterJS)--> 63 <script> 64 $('.job a').click(function(e) { 65 e.preventDefault(); 66 var link = $(this).attr('href'); 67 window.open('target.html';'_self'); 68 }); 69 </script> 70 <!--@SnippetEnd(FooterJS)-->

Kandidatbank

Fandt du ikke en stilling som passede? Tilmeld dig vores kandidatbank her.

Ny medarbejder?

Leder du efter en ny medarbejder? Lad LMO Rekruttering hjælpe. Læs mere her.

Top