{"id":39,"date":"2004-03-28T21:55:00","date_gmt":"2004-03-28T19:55:00","guid":{"rendered":"http:\/\/10.0.0.2\/wordpress\/?p=39"},"modified":"2004-03-28T21:55:00","modified_gmt":"2004-03-28T19:55:00","slug":"delphi-net-scripting-geeft-een-error","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2004\/03\/delphi-net-scripting-geeft-een-error\/","title":{"rendered":"Delphi .NET scripting geeft een error"},"content":{"rendered":"<p><P>Hoewel ik alle voorbeelden die ik op het internet kon vinden (die allemaal gebaseerd lijken te zijn op het voorbeeld van Bob Swart) zo goed mogelijk heb nagemaakt (met uitzondering van de benaming van de objecten), krijg ik Delphi scripting voor .NET (dus: language=Delphi) niet voor elkaar. Er blijft de onderstaande onverklaarbare error opkomen. Als iemand een hint heeft, graag.<\/P><br \/>\n<P>Ik heb Delphi 8 al naar de laatste versie getild (trial die van het internet gedownload kan worden). De dccil.exe is wel van een iets oudere versie, maar de bijbehorende DLL&#8217;s zijn van de trial.<\/P><br \/>\n<P>Overigens zijn de tekstjes te &#8220;expanden&#8220; door erop te klikken, net als in de echte compiler-output.<SPAN><\/P><br \/>\n<H1>Server Error in &#8216;\/&#8217; Application.<br \/>\n<HR width=\"100%\" color=silver SIZE=1><br \/>\n<\/H1><br \/>\n<H2><I>Compilation Error<\/I> <\/H2><br \/>\n<P><\/SPAN><FONT face=\"Arial, Helvetica, Geneva, SunSans-Regular, sans-serif \"><B>Description: <\/B>An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. <BR><BR><B>Compiler Error Message: <\/B>The compiler failed with error code 1.<BR><BR><BR><\/P><br \/>\n<DIV class=expandable onclick=OnToggleTOCLevel1() level2ID=\"compilerOutputDiv\">Show Detailed Compiler Output:<\/DIV><br \/>\n<DIV id=compilerOutputDiv style=\"DISPLAY: none\"><BR><br \/>\n<TABLE width=\"100%\" bgColor=#ffffcc><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD><CODE><PRE>C:WINDOWSsystem32> &#8220;c:windowsmicrosoft.netframeworkv1.1.4322dccil.exe&#8221; &#8220;-luc:windowsmicrosoft.netframeworkv1.1.4322mscorlib.dll&#8221; &#8220;-luc:windowsassemblygacsystem.web1.0.5000.0__b03f5f7f11d50a3asystem.web.dll&#8221; &#8220;-luc:windowsassemblygacsystem.enterpriseservices1.0.5000.0__b03f5f7f11d50a3asystem.enterpriseservices.dll&#8221; &#8220;-luc:windowsassemblygacsystem1.0.5000.0__b77a5c561934e089system.dll&#8221; &#8220;-luc:windowsassemblygacsystem.web.services1.0.5000.0__b03f5f7f11d50a3asystem.web.services.dll&#8221; &#8220;-luc:windowsassemblygacsystem.xml1.0.5000.0__b77a5c561934e089system.xml.dll&#8221; &#8220;-luc:windowsassemblygacsystem.data1.0.5000.0__b77a5c561934e089system.data.dll&#8221; &#8220;-luc:windowsassemblygacsystem.web.mobile1.0.5000.0__b03f5f7f11d50a3asystem.web.mobile.dll&#8221; &#8220;-luc:windowsassemblygacsystem.drawing1.0.5000.0__b03f5f7f11d50a3asystem.drawing.dll&#8221; &#8220;-xC:WindowsMicrosoft.NETFrameworkv1.1.4322Temporary ASP.NET Filesroot2135a5088d69a834bvxkurfx.dll&#8221; -D:DEBUG -v+ -$O-  -q &#8220;C:WindowsMicrosoft.NETFrameworkv1.1.4322Temporary ASP.NET Filesroot2135a5088d69a834bvxkurfx.0.pas&#8221;<\/p>\n<p>Borland Delphi for .NET compiler version 16.0<br \/>\nCopyright (c) 1983,2003 Borland Software Corporation<br \/>\n.NET Framework v1.1.4322 loaded<br \/>\nFatal: Unit System.Web.UI.MobileControls.Adapters was compiled with a different version of System.Web.UI.MobileControls.BaseValidator<br \/>\nFatal: Required package &#8216;system.web.mobile&#8217; not found<br \/>\n<\/PRE><\/CODE><\/TD><\/TR><\/TBODY><\/TABLE><\/DIV><br \/>\n<P><BR>\u00a0<\/P><br \/>\n<DIV class=expandable onclick=OnToggleTOCLevel1() level2ID=\"dynamicCodeDiv\">Show Complete Compilation Source:<\/DIV><br \/>\n<DIV id=dynamicCodeDiv style=\"DISPLAY: none\"><BR><br \/>\n<TABLE width=\"100%\" bgColor=#ffffcc><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD><CODE><PRE>Line 1:    unit Celsius2;<br \/>\nLine 2:    interface<br \/>\nLine 3:    uses<br \/>\nLine 4:      System.Web.UI,<br \/>\nLine 5:      System.Web.UI.WebControls;<br \/>\nLine 6:<br \/>\nLine 7:    type<br \/>\nLine 8:      WebForm42 = class(System.Web.UI.Page)<br \/>\nLine 9:        edtCelsius: TextBox;<br \/>\nLine 10:       edtFahrenheit: TextBox;<br \/>\nLine 11:       btnCelsius2Fahrenheit: Button;<br \/>\nLine 12:       btnFahrenheit2Celsius: Button;<br \/>\nLine 13:     protected<br \/>\nLine 14:       procedure Celsius2FahrenheitClick<br \/>\nLine 15:         (Sender: System.Object; E: EventArgs);<br \/>\nLine 16:       procedure Fahrenheit2CelsiusClick<br \/>\nLine 17:         (Sender: System.Object; E: EventArgs);<br \/>\nLine 18:     end;<br \/>\nLine 19:   implementation<br \/>\nLine 20:     procedure WebForm42.Celsius2FahrenheitClick<br \/>\nLine 21:       (Sender: System.Object; E: EventArgs);<br \/>\nLine 22:     begin<br \/>\nLine 23:       edtFahrenheit.Text := Convert.ToString(9 \/ 5 *<br \/>\nLine 24:         Convert.ToDouble(edtCelsius.Text) + 32)<br \/>\nLine 25:     end;<br \/>\nLine 26:     procedure WebForm42.Fahrenheit2CelsiusClick<br \/>\nLine 27:       (Sender: System.Object; E: EventArgs);<br \/>\nLine 28:     begin<br \/>\nLine 29:       edtCelsius.Text := Convert.ToString(5 \/ 9 *<br \/>\nLine 30:         (Convert.ToDouble(edtFahrenheit.Text) &#8211; 32))<br \/>\nLine 31:     end;<br \/>\nLine 32:   end.<br \/>\nLine 33:<br \/>\nLine 34:   <\/PRE><\/CODE><\/TD><\/TR><\/TBODY><\/TABLE><\/DIV><br \/>\n<P><br \/>\n<SCRIPT language=JavaScript><br \/>\nfunction OnToggleTOCLevel1()<br \/>\n{<br \/>\n  var elemSrc = window.event.srcElement;<br \/>\n  var elemLevel2 = document.all(elemSrc.level2ID);<\/p>\n<p>  if (elemLevel2.style.display == &#8216;none&#8217;)<br \/>\n  {<br \/>\n    elemLevel2.style.display = &#8221;;<br \/>\n    if (elemSrc.usesGlyph == &#8216;1&#8217;)<br \/>\n      elemSrc.innerHTML = &#8216;6&#8217;;<br \/>\n  }<br \/>\n  else {<br \/>\n    elemLevel2.style.display = &#8216;none&#8217;;<br \/>\n    if (elemSrc.usesGlyph == &#8216;1&#8217;)<br \/>\n      elemSrc.innerHTML = &#8216;4&#8217;;<br \/>\n  }<br \/>\n}<br \/>\n<\/SCRIPT><br \/>\n<BR><BR><\/P><br \/>\n<HR width=\"100%\" color=silver SIZE=1><\/p>\n<p><P><B><FONT face=Verdana>Version Information:<\/FONT><\/B>\u00a0Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 <\/FONT><!-- \n[HttpCompileException]: External component has thrown an exception.\n   at System.Web.Compilation.BaseCompiler.ThrowIfCompilerErrors(CompilerResults results, CodeDomProvider codeProvider, CodeCompileUnit sourceData, String sourceFile, String sourceString)\n   at System.Web.Compilation.SourceCompiler.CompileAndCache()\n   at System.Web.Compilation.SourceCompiler.GetAssemblyFromSourceFile(HttpContext context, String virtualPath, IDictionary assemblies, Type compilerType, CompilerParameters compilParams)\n   at System.Web.UI.TemplateParser.ImportSourceFile(String virtualPath)\n   at System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary mainDirective)\n   at System.Web.UI.TemplateControlParser.ProcessMainDirective(IDictionary mainDirective)\n   at System.Web.UI.PageParser.ProcessMainDirective(IDictionary mainDirective)\n   at System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive)\n   at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive)\n   at System.Web.UI.TemplateParser.ParseStringInternal(String text)\n   at System.Web.UI.TemplateParser.ParseString(String text, String virtualPath, String basePhysicalDir)\n[HttpException]: Parser Error: External component has thrown an exception.\n   at System.Web.UI.TemplateParser.ParseString(String text, String virtualPath, String basePhysicalDir)\n   at System.Web.UI.TemplateParser.ParseFile(String filename, String virtualPath)\n   at System.Web.UI.TemplateParser.Parse()\n   at System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation()\n   at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound)\n   at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath()\n   at System.Web.UI.TemplateParser.GetParserCacheItem()\n   at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context)\n   at System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context)\n   at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context)\n   at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path)\n   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)\n   at System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()\n   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)\n--><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hoewel ik alle voorbeelden die ik op het internet kon vinden (die allemaal gebaseerd lijken te zijn op het voorbeeld van Bob Swart) zo goed mogelijk heb nagemaakt (met uitzondering van de benaming van de objecten), krijg ik Delphi scripting voor .NET (dus: language=Delphi) niet voor elkaar. Er blijft de onderstaande onverklaarbare error opkomen. Als <a href='https:\/\/www.switchbl8.nl\/blog\/2004\/03\/delphi-net-scripting-geeft-een-error\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-personal","category-20-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":0,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}