As I recall, we were never able to come up with a workaround for a VB &quot;web site&quot;, but a VB &quot;web application&quot; could be made to work.<br><br>It would be easier if IronPython could depend on .NET 3.5, but we still have customers who need it to work on 2.0 and 3.0. There&#39;s nothing to prevent you from recompiling IronPython yourself, though -- just remove Microsoft.Scripting.ExtensionAttribute.csproj from the solution and add references to System.Core instead.<br>
<br><div class="gmail_quote">On Fri, May 8, 2009 at 5:58 AM, Patrik Hägne <span dir="ltr">&lt;<a href="mailto:patrik.hagne@sembo.se">patrik.hagne@sembo.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">











<div link="blue" vlink="purple" lang="SV">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Yes, I did read the correspondence from August and that&#39;s why I
thought it should work. However, I&#39;m glad we&#39;ve tracked down the actual problem
so there is at least a chance that we can come up with a solution.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">/Patrik</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;">Från:</span></b><span style="font-size: 10pt;"> Dody Gunawinata
[mailto:<a href="mailto:empirebuilder@gmail.com" target="_blank">empirebuilder@gmail.com</a>] <br>
<b>Skickat:</b> den 8 maj 2009 14:53<br>
<b>Till:</b> Patrik Hägne<br>
<b>Kopia:</b> Discussion of IronPython<div><div></div><div class="h5"><br>
<b>Ämne:</b> Re: [IronPython] Iron Python and Asp.net (framework 3.5)</div></div></span></p>

</div><div><div></div><div class="h5">

<p> </p>

<div>

<div>

<p>I ran your demo and it threw this error</p>

</div>

<div>

<p> </p>

</div>

<div>

<p>&quot;<span><b><span style="font-size: 8.5pt; color: black;">Description: </span></b></span><span><span style="font-size: 8.5pt;">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. </span></span></p>

</div>

<p style="margin-bottom: 12pt;"><span style="font-size: 8.5pt;"><br>
</span><span><b><span style="font-size: 8.5pt; color: black;">Compiler Error Message: </span></b></span><span><span style="font-size: 8.5pt;">BC30560:
&#39;ExtensionAttribute&#39; is ambiguous in the namespace
&#39;System.Runtime.CompilerServices&#39;.</span></span><span style="font-size: 8.5pt;"><br>
<br>
</span><span><b><span style="font-size: 8.5pt; color: black;">Source Error:</span></b></span><span><span style="font-size: 8.5pt;"></span></span></p>

<table style="background: rgb(255, 255, 204) none repeat scroll 0% 0%; width: 100%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" border="0" cellpadding="0" width="100%">

 <tbody><tr>
  <td style="padding: 0.75pt;"></td>
 </tr>
 <tr>
  <td style="padding: 0.75pt;"><pre><span style="font-size: 9pt; font-family: &quot;Lucida Console&quot;;"> </span></pre><pre><span style="font-size: 9pt; font-family: &quot;Lucida Console&quot;;">[No relevant source lines]</span></pre>
</td>
 </tr>
</tbody></table>

<p><span style="font-size: 8.5pt;"><br>
</span><span><b><span style="font-size: 8.5pt; color: black;">Source File:</span></b></span><span><span style="font-size: 8.5pt;"> InternalXmlHelper.vb
   </span></span><span><b><span style="font-size: 8.5pt; color: black;">Line:</span></b></span><span><span style="font-size: 8.5pt;"> 9 &quot;</span></span></p>

<div>

<p> </p>

<div>

<p> </p>

</div>

<p>This problem surfaced back in <a href="http://lists.ironpython.com/pipermail/users-ironpython.com/2008-August/008036.html" target="_blank">http://lists.ironpython.com/pipermail/users-ironpython.com/2008-August/008036.html</a> then
it got fixed, at least for C#. It looks like the VB compatibility issue wasn&#39;t
fixed.</p>

<div>

<p> </p>

</div>

<div>

<p>Let&#39;s see what Dino thinks of this.</p>

</div>

<div>

<p> </p>

</div>

<div>

<p style="margin-bottom: 12pt;">Dody G.</p>

<div>

<p>On Fri, May 8, 2009 at 3:06 PM, Patrik Hägne &lt;<a href="mailto:patrik.hagne@sembo.se" target="_blank">patrik.hagne@sembo.se</a>&gt; wrote:</p>

<div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I&#39;m not sure if this
helps but I&#39;ve included a VB.Net-site that reproduces the problem in the same
solution. I&#39;m not sure if you have an environment where you can run it. Also as
far as I can tell you do not directly reference the
Microsoft.Scripting.ExtensionAttribute.dll in the site project you included but
it is present in the bin-folder, I did the same thing for the VB.Net project,
it should mirror the c# variant pretty closely but it will fail at runtime.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"><a href="http://cid-8b0c290cf9b30fd9.skydrive.live.com/self.aspx/.Public/IronPythonDemoWithVB.zip" target="_blank">http://cid-8b0c290cf9b30fd9.skydrive.live.com/self.aspx/.Public/IronPythonDemoWithVB.zip</a></span></p>


<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">/Patrik</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;">Från:</span></b><span style="font-size: 10pt;"> <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>
[mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>]
<b>För </b>Dody Gunawinata<br>
<b>Skickat:</b> den 8 maj 2009 13:15</span></p>

<div>

<div>

<p><br>
<b>Till:</b> Discussion of IronPython<br>
<b>Ämne:</b> Re: [IronPython] Iron Python and Asp.net (framework 3.5)</p>

</div>

</div>

</div>

<div>

<div>

<p> </p>

<div>

<div>

<p>I don&#39;t have VB installed in my VS 2008, so this is what I did.</p>

</div>

<div>

<p> </p>

</div>

<p>I use this IronPython <a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=IronPython&amp;DownloadId=58404&amp;FileTime=128789375840200000&amp;Build=15036#ReleaseFiles" target="_blank">http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=IronPython&amp;DownloadId=58404&amp;FileTime=128789375840200000&amp;Build=15036#ReleaseFiles</a></p>


<div>

<p> </p>

</div>

<div>

<p>For each of the project, I reference all the following assemblies:</p>

</div>

<div>

<p>IronPython.dll</p>

</div>

<div>

<p>IronPython.Modules.dll</p>

</div>

<div>

<p>Microsoft.Scripting.Core.dll</p>

</div>

<div>

<p>Microsoft.Scripting.dll</p>

</div>

<div>

<p>Microsoft.Scripting.ExtensionAttribute.dll</p>

</div>

<div>

<p> </p>

</div>

<div>

<p>I use the hosting API in a C# WAP using C# only in 3.5 and it worked without
a hitch. This is the code <a href="https://rcpt.yousendit.com/685289274/f6b7c3f2a38002c2656f54ada3364d26" target="_blank">https://rcpt.yousendit.com/685289274/f6b7c3f2a38002c2656f54ada3364d26</a></p>

</div>

<div>

<p> </p>

</div>

<div>

<p>I downloaded SharpDevelop 3.0 and use it to write a console application in
VB targeting .Net 3.5. I was surprised that &quot;using&quot; is not a keyword
in VB :)  It worked in console application. Here&#39;s the code <a href="https://download.yousendit.com/U0d6RE9uQzMzeUtGa1E9PQ" target="_blank">https://download.yousendit.com/U0d6RE9uQzMzeUtGa1E9PQ</a>.</p>

</div>

<div>

<p> </p>

</div>

<div>

<p> </p>

</div>

<div>

<p>I can&#39;t exactly replicate your problem since I don&#39;t have VB on VS 2008. But
I hope I help you further along with these two small codes. It seems that IronPython
2.01  works just fine with VB in .Net 3.5 but I&#39;m not sure if the VB
ASP.net code provider does something else that make IP 2.01 breaks. </p>

</div>

<div>

<p> </p>

</div>

<div>

<p>Dody G.</p>

</div>

<div>

<p> </p>

</div>

<div>

<div>

<p> </p>

<div>

<p>On Fri, May 8, 2009 at 12:01 PM, Patrik Hägne &lt;<a href="mailto:patrik.hagne@sembo.se" target="_blank">patrik.hagne@sembo.se</a>&gt;
wrote:</p>

<div>

<div>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">1.</span><span style="font-size: 7pt; color: rgb(31, 73, 125);" lang="EN-US">      
</span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I&#39;ve tried the
current release (2.0.1), the 2.0 release from Dec 10 and even the 1.1.2 version
from Aug 8 all with the same result.</span></p>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">2.</span><span style="font-size: 7pt; color: rgb(31, 73, 125);" lang="EN-US">      
</span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">We&#39;re using the Web
Application project model, not the website model.</span></p>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">3.</span><span style="font-size: 7pt; color: rgb(31, 73, 125);" lang="EN-US">      
</span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">The language for
code behinds is VB.net.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thanks for looking
into this, it&#39;s greatly appreciated.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">/Patrik</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;">Från:</span></b><span style="font-size: 10pt;"> <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>
[mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>]
<b>För </b>Dody Gunawinata<br>
<b>Skickat:</b> den 8 maj 2009 10:53<br>
<b>Till:</b> Discussion of IronPython<br>
<b>Ämne:</b> Re: [IronPython] Iron Python and Asp.net (framework 3.5)</span></p>

</div>

<p> </p>

<div>

<div>

<p>I&#39;ll try to reproduce this. I need the following details:</p>

<div>

<p> </p>

</div>

</div>

<div>

<div>

<ul type="disc">
 <li>What version of IronPython are you using?</li>
 <li>Are you using the website model or the web
     project model for your <a href="http://asp.net" target="_blank">asp.net</a>
     application.</li>
 <li>What language do you use for your code behind, C#
     or VB or some other code behind language?</li>
</ul>

<div>

<p> </p>

</div>

</div>

<div>

<p style="margin-bottom: 12pt;">Dody G.</p>

<div>

<div>

<p>On Fri, May 8, 2009 at 9:49 AM, Patrik Hägne &lt;<a href="mailto:patrik.hagne@sembo.se" target="_blank">patrik.hagne@sembo.se</a>&gt;
wrote:</p>

</div>

<div>

<div>

<div>

<p><span lang="EN-US">I have the problem described in the issue <a href="http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=19126" target="_blank">http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=19126</a>
when including an assembly that depends upon the DLR and Iron Python for
scripting. I can&#39;t get the suggested workaround to work, when I replace the
Microsoft.Scripting.ExtensionAttribute.dll with the one posted to the
issue-page I get no compilation errors but on the other hand when running the
page where the scripting engine is used I get a runtime error saying that the
Microsoft.Scripting.ExtensionAttribute version 0.9.0.0 can not be found.</span></p>

<p><span lang="EN-US"> </span></p>

<p><span lang="EN-US">Is there something I&#39;m missing? Might it be that I have to
install something into the GAC?</span></p>

<p><span lang="EN-US"> </span></p>

</div>

<table style="width: 375pt;" border="0" cellpadding="0" cellspacing="0" width="500">
 <tbody><tr style="height: 72.75pt;">
  <td colspan="3" style="padding: 0cm; height: 72.75pt;">
  <p style="margin-bottom: 12pt;"><span style="font-size: 10pt;" lang="EN-GB">Kind
  Regards<br>
  <br>
  Patrik Hägne<br>
  Systems Development</span></p>
  </td>
 </tr>
 <tr>
  <td colspan="3" style="padding: 0cm;">
  <p><b>Fel! Inget filnamn angivet.</b></p>
  </td>
 </tr>
 <tr style="height: 1.5pt;">
  <td colspan="3" style="padding: 0cm; height: 1.5pt;">
  <div style="text-align: center;" align="center">
  <hr style="width: 375pt;" align="center" size="1" width="500" noshade>
  </div>
  </td>
 </tr>
 <tr style="height: 40.5pt;">
  <td style="padding: 0cm; width: 40%; height: 40.5pt;" valign="top" width="40%">
  <p><span style="font-size: 7.5pt;">Drottninggatan 72A<br>
  Box 1324, 251 13 HELSINGBORG<br>
  E-mail: <a href="mailto:patrik.hagne@sembo.se" target="_blank">patrik.hagne@sembo.se
  </a></span></p>
  </td>
  <td style="padding: 0cm; width: 15%; height: 40.5pt;" valign="top" width="15%">
  <p><span style="font-size: 7.5pt;">Phone:<br>
  Fax:<br>
  Internet: </span></p>
  </td>
  <td style="padding: 0cm; width: 45%; height: 40.5pt;" valign="top" width="45%">
  <p><span style="font-size: 7.5pt;">+46(0)42 37 85 52<br>
  +46(0)42 37 85 25<br>
  <a href="http://www.sembo.se" target="_blank">www.sembo.se</a> </span></p>
  </td>
 </tr>
</tbody></table>

<p> </p>

<p> </p>

</div>

</div>

<div>

<p style="margin-bottom: 12pt;"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a></p>

</div>

</div>

<p style="margin-bottom: 12pt;"><span style="color: rgb(136, 136, 136);"><br>
<br clear="all">
<br>
-- <br>
<a href="http://nomadlife.org" target="_blank">nomadlife.org</a></span></p>

</div>

</div>

</div>

</div>

</div>

<p style="margin-bottom: 12pt;"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a></p>

</div>

<p style="margin-bottom: 12pt;"><br>
<br clear="all">
<br>
-- <br>
<a href="http://nomadlife.org" target="_blank">nomadlife.org</a></p>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

<p style="margin-bottom: 12pt;"><br>
<br clear="all">
<br>
-- <br>
<a href="http://nomadlife.org" target="_blank">nomadlife.org</a></p>

</div>

</div>

</div>

</div></div></div>

</div>


<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br>