<div dir="ltr"><div>I don't have VB installed in my VS 2008, so this is what I did.</div><div><br></div>I use this IronPython <a href="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=IronPython&DownloadId=58404&FileTime=128789375840200000&Build=15036#ReleaseFiles" target="_blank">http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=IronPython&DownloadId=58404&FileTime=128789375840200000&Build=15036#ReleaseFiles</a><div>
<br></div><div>For each of the project, I reference all the following assemblies:</div><div>IronPython.dll</div><div>IronPython.Modules.dll</div><div>Microsoft.Scripting.Core.dll</div><div>Microsoft.Scripting.dll</div><div>
Microsoft.Scripting.ExtensionAttribute.dll</div><div><br></div><div>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">https://rcpt.yousendit.com/685289274/f6b7c3f2a38002c2656f54ada3364d26</a></div>
<div><br></div><div>I downloaded SharpDevelop 3.0 and use it to write a console application in VB targeting .Net 3.5. I was surprised that "using" is not a keyword in VB :) It worked in console application. Here's the code <a href="https://download.yousendit.com/U0d6RE9uQzMzeUtGa1E9PQ">https://download.yousendit.com/U0d6RE9uQzMzeUtGa1E9PQ</a>.</div>
<div><br></div><div><br></div><div>I can't exactly replicate your problem since I don'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'm not sure if the VB ASP.net code provider does something else that make IP 2.01 breaks. </div>
<div><br></div><div>Dody G.</div><div><br></div><div><div><br><div class="gmail_quote">On Fri, May 8, 2009 at 12:01 PM, Patrik Hägne <span dir="ltr"><<a href="mailto:patrik.hagne@sembo.se" target="_blank">patrik.hagne@sembo.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="SV" link="blue" vlink="purple">
<div>
<p style="text-indent:-18.0pt"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><span>1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">I'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:-18.0pt"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><span>2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">We're using the Web
Application project model, not the website model.</span></p>
<p style="text-indent:-18.0pt"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><span>3.<span style="font:7.0pt "Times New Roman"">
</span></span></span><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">The language for code behinds
is VB.net.</span></p>
<p><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>
<p><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Thanks for looking into this, it's greatly appreciated.</span></p>
<p><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>
<p><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">/Patrik</span></p>
<p><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:10.0pt">Från:</span></b><span style="font-size:10.0pt">
<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'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:12.0pt">Dody G.</p>
<div><div>
<p>On Fri, May 8, 2009 at 9:49 AM, Patrik Hägne <<a href="mailto:patrik.hagne@sembo.se" target="_blank">patrik.hagne@sembo.se</a>> 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'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'm missing? Might it be that I have to
install something into the GAC?</span></p>
<p><span lang="EN-US"> </span></p>
</div><div>
</div><div>
</div><table border="0" cellspacing="0" cellpadding="0" width="500" style="width:375.0pt"><tbody><tr style="height:72.75pt">
<td colspan="3" style="padding:0cm 0cm 0cm 0cm;height:72.75pt">
<p style="margin-bottom:12.0pt"><span lang="EN-GB" style="font-size:10.0pt">Kind
Regards<br>
<br>
Patrik Hägne<br>
Systems Development</span></p>
</td>
</tr>
<tr>
<td colspan="3" style="padding:0cm 0cm 0cm 0cm">
<p><b>Fel! Inget filnamn angivet.</b></p>
</td>
</tr><tr style="height:1.5pt">
<td colspan="3" style="padding:0cm 0cm 0cm 0cm;height:1.5pt">
<div align="center" style="text-align:center">
<hr size="1" width="500" style="width:375.0pt" noshade align="center">
</div>
</td>
</tr>
<tr style="height:40.5pt">
<td width="40%" valign="top" style="width:40.0%;padding:0cm 0cm 0cm 0cm;height:40.5pt">
<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 width="15%" valign="top" style="width:15.0%;padding:0cm 0cm 0cm 0cm;height:40.5pt">
<p><span style="font-size:7.5pt">Phone:<br>
Fax:<br>
Internet: </span></p>
</td>
<td width="45%" valign="top" style="width:45.0%;padding:0cm 0cm 0cm 0cm;height:40.5pt">
<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:12.0pt"><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><font color="#888888">
<p style="margin-bottom:12.0pt"><br>
<br clear="all">
<br>
-- <br>
<a href="http://nomadlife.org" target="_blank">nomadlife.org</a></p>
</font></div>
</div>
</div>
</div>
</div>
<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><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://nomadlife.org" target="_blank">nomadlife.org</a><br><br>
</div></div></div>