<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>aspsupport Release Rss Feed</title><link>http://code.msdn.microsoft.com/aspsupport/Release/ProjectReleases.aspx</link><description>aspsupport Release Rss Description</description><item><title>RELEASED: Simple ASP.NET Profiles Example (Feb 22, 2008)</title><link>http://code.msdn.microsoft.com/aspsupport/Release/ProjectReleases.aspx?ReleaseId=500</link><description>I&amp;#39;ve recently been corresponding with a few developers new to ASP.NET who are struggling with storing personal information in an ASP.NET membership application. I&amp;#39;ve encouraged these folks to adopt the use of ASP.NET Profiles instead of trying to reinvent the wheel. &lt;br /&gt;&lt;br /&gt;In an attempt to prove to them how easy it actually is, I created a simple app that demonstrates how you can store information along with a membership user. The complete website is attached.&lt;br /&gt;&lt;br /&gt;One thing to note since it&amp;#39;s not immediately intuitive&amp;#59; Profile properties are defined in the web.config file. Once you add new properties, you&amp;#39;ll need to build the website for them to be &amp;#34;seen&amp;#34; in IntelliSense.&lt;br /&gt;&lt;br /&gt;Jim&lt;br /&gt;</description><author></author><pubDate>Fri, 22 Feb 2008 21:07:23 GMT</pubDate><guid isPermaLink="false">RELEASED: Simple ASP.NET Profiles Example (Feb 22, 2008) 20080222P</guid></item><item><title>CREATED RELEASE: Simple ASP.NET Profiles Example (Feb 22, 2008)</title><link>http://code.msdn.microsoft.com/aspsupport/Release/ProjectReleases.aspx?ReleaseId=500</link><description>I&amp;#39;ve recently been corresponding with a few developers new to ASP.NET who are struggling with storing personal information in an ASP.NET membership application. I&amp;#39;ve encouraged these folks to adopt the use of ASP.NET Profiles instead of trying to reinvent the wheel. &lt;br /&gt;&lt;br /&gt;In an attempt to prove to them how easy it actually is, I created a simple app that demonstrates how you can store information along with a membership user. The complete website is attached.&lt;br /&gt;&lt;br /&gt;One thing to note since it&amp;#39;s not immediately intuitive&amp;#59; Profile properties are defined in the web.config file. Once you add new properties, you&amp;#39;ll need to build the website for them to be &amp;#34;seen&amp;#34; in IntelliSense.&lt;br /&gt;&lt;br /&gt;Jim&lt;br /&gt;</description><author></author><pubDate>Fri, 22 Feb 2008 21:07:23 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: Simple ASP.NET Profiles Example (Feb 22, 2008) 20080222P</guid></item><item><title>UPDATED RELEASE: Create dynamic assemblies in a different AppDomain (Jan 29, 2008)</title><link>http://code.msdn.microsoft.com/aspsupport/Release/ProjectReleases.aspx?ReleaseId=84</link><description>Here is some code that I created to allow dynamic assembiles to be created in a different AppDomain.  This is documented more at &amp;#91;url&amp;#58;http&amp;#58;&amp;#47;&amp;#47;blogs.msdn.com&amp;#47;tom&amp;#47;archive&amp;#47;2007&amp;#47;12&amp;#47;05&amp;#47;dynamic-assemblies-and-what-to-do-about-them.aspx&amp;#93;&lt;br /&gt;&lt;br /&gt;This is important because assemblies don&amp;#39;t unload, so if code creates dynamic assemblites in the ASP.NET AppDomain, it will eventually run out of memory because the number of assemblies will grow indefinately.&lt;br /&gt;&lt;br /&gt;&amp;#123;&amp;#123;&lt;br /&gt;using System&amp;#59;&lt;br /&gt;using System.Reflection&amp;#59;&lt;br /&gt;using System.Reflection.Emit&amp;#59;&lt;br /&gt;&lt;br /&gt;namespace AppDomainCreation&lt;br /&gt;&amp;#123;&lt;br /&gt;    &amp;#47;&amp;#47;&amp;#47; &amp;#60;summary&amp;#62;&lt;br /&gt;    &amp;#47;&amp;#47;&amp;#47; Summary description for AppDom.&lt;br /&gt;    &amp;#47;&amp;#47;&amp;#47; &amp;#60;&amp;#47;summary&amp;#62;&lt;br /&gt;    public class AppDom &amp;#58; MarshalByRefObject&lt;br /&gt;    &amp;#123;&lt;br /&gt;        public AppDom&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;        public void DoIt&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            int i &amp;#61; 0&amp;#59;&lt;br /&gt;            try &lt;br /&gt;            &amp;#123;    &lt;br /&gt;                for &amp;#40;i &amp;#61; 0&amp;#59; i &amp;#60; 100&amp;#59; i&amp;#43;&amp;#43;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    AppDomain myCurrentDomain &amp;#61; AppDomain.CurrentDomain&amp;#59;&lt;br /&gt;                    AssemblyName myAssemblyName &amp;#61; new AssemblyName&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                    myAssemblyName.Name &amp;#61; &amp;#34;TempAssembly&amp;#34;&amp;#59;&lt;br /&gt;&lt;br /&gt;                    &amp;#47;&amp;#47; Define a dynamic assembly in the current app domain.&lt;br /&gt;                    AssemblyBuilder myAssemblyBuilder &amp;#61; myCurrentDomain.DefineDynamicAssembly&amp;#40;myAssemblyName, AssemblyBuilderAccess.Run&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                    &amp;#47;&amp;#47; Define a dynamic module in this assembly.&lt;br /&gt;                    ModuleBuilder myModuleBuilder &amp;#61;  myAssemblyBuilder.DefineDynamicModule&amp;#40;&amp;#34;TempModule&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            catch &amp;#40;Exception ex&amp;#41; &lt;br /&gt;            &amp;#123;&lt;br /&gt;                throw ex&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#125;&amp;#125;&lt;br /&gt;&lt;br /&gt;And the code to use it&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#123;&amp;#123;&lt;br /&gt;private void button1_Click&amp;#40;object sender, System.EventArgs e&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;    myDom &amp;#61; AppDomain.CreateDomain&amp;#40;&amp;#34;MyDom&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;    AppDom my1 &amp;#61; &amp;#40;AppDom&amp;#41; myDom.CreateInstanceFromAndUnwrap&amp;#40;&lt;br /&gt;        Assembly.GetAssembly&amp;#40;typeof&amp;#40;AppDom&amp;#41;&amp;#41;.Location, typeof&amp;#40;AppDom&amp;#41;.FullName&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;    my1.DoIt&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;private void button2_Click&amp;#40;object sender, System.EventArgs e&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;    AppDomain.Unload&amp;#40;myDom&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#125;&amp;#125;</description><author></author><pubDate>Tue, 29 Jan 2008 21:35:53 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: Create dynamic assemblies in a different AppDomain (Jan 29, 2008) 20080129P</guid></item><item><title>CREATED RELEASE: Create dynamic assemblies in a different AppDomain (Jan 29, 2008)</title><link>http://code.msdn.microsoft.com/aspsupport/Release/ProjectReleases.aspx?ReleaseId=84</link><description>Here is some code that I created to allow dynamic assembiles to be created in a different AppDomain.  This is documented more at &amp;#91;url&amp;#58;http&amp;#58;&amp;#47;&amp;#47;blogs.msdn.com&amp;#47;tom&amp;#47;archive&amp;#47;2007&amp;#47;12&amp;#47;05&amp;#47;dynamic-assemblies-and-what-to-do-about-them.aspx&amp;#93;&lt;br /&gt;&lt;br /&gt;&amp;#123;&amp;#123;&lt;br /&gt;using System&amp;#59;&lt;br /&gt;using System.Reflection&amp;#59;&lt;br /&gt;using System.Reflection.Emit&amp;#59;&lt;br /&gt;&lt;br /&gt;namespace AppDomainCreation&lt;br /&gt;&amp;#123;&lt;br /&gt;    &amp;#47;&amp;#47;&amp;#47; &amp;#60;summary&amp;#62;&lt;br /&gt;    &amp;#47;&amp;#47;&amp;#47; Summary description for AppDom.&lt;br /&gt;    &amp;#47;&amp;#47;&amp;#47; &amp;#60;&amp;#47;summary&amp;#62;&lt;br /&gt;    public class AppDom &amp;#58; MarshalByRefObject&lt;br /&gt;    &amp;#123;&lt;br /&gt;        public AppDom&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;        public void DoIt&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            int i &amp;#61; 0&amp;#59;&lt;br /&gt;            try &lt;br /&gt;            &amp;#123;    &lt;br /&gt;                for &amp;#40;i &amp;#61; 0&amp;#59; i &amp;#60; 100&amp;#59; i&amp;#43;&amp;#43;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    AppDomain myCurrentDomain &amp;#61; AppDomain.CurrentDomain&amp;#59;&lt;br /&gt;                    AssemblyName myAssemblyName &amp;#61; new AssemblyName&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                    myAssemblyName.Name &amp;#61; &amp;#34;TempAssembly&amp;#34;&amp;#59;&lt;br /&gt;&lt;br /&gt;                    &amp;#47;&amp;#47; Define a dynamic assembly in the current app domain.&lt;br /&gt;                    AssemblyBuilder myAssemblyBuilder &amp;#61; myCurrentDomain.DefineDynamicAssembly&amp;#40;myAssemblyName, AssemblyBuilderAccess.Run&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                    &amp;#47;&amp;#47; Define a dynamic module in this assembly.&lt;br /&gt;                    ModuleBuilder myModuleBuilder &amp;#61;  myAssemblyBuilder.DefineDynamicModule&amp;#40;&amp;#34;TempModule&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            catch &amp;#40;Exception ex&amp;#41; &lt;br /&gt;            &amp;#123;&lt;br /&gt;                throw ex&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#125;&amp;#125;&lt;br /&gt;&lt;br /&gt;And the code to use it&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#123;&amp;#123;&lt;br /&gt;private void button1_Click&amp;#40;object sender, System.EventArgs e&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;    myDom &amp;#61; AppDomain.CreateDomain&amp;#40;&amp;#34;MyDom&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;    AppDom my1 &amp;#61; &amp;#40;AppDom&amp;#41; myDom.CreateInstanceFromAndUnwrap&amp;#40;&lt;br /&gt;        Assembly.GetAssembly&amp;#40;typeof&amp;#40;AppDom&amp;#41;&amp;#41;.Location, typeof&amp;#40;AppDom&amp;#41;.FullName&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;    my1.DoIt&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;private void button2_Click&amp;#40;object sender, System.EventArgs e&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;    AppDomain.Unload&amp;#40;myDom&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#125;&amp;#125;</description><author></author><pubDate>Tue, 29 Jan 2008 20:14:25 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: Create dynamic assemblies in a different AppDomain (Jan 29, 2008) 20080129P</guid></item></channel></rss>