<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Migrating from Visual Studio .NET 2003 to Visual Studio 2005 </title><link>http://forums.asp.net/1012.aspx</link><description>Discuss issues, strategies, tips, etc. for migrating from Visual Studio .NET 2003 to Visual Studio 2005</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Application model compile error:Could not load type 'Upgrade.Global'.</title><link>http://forums.asp.net/thread/2901175.aspx</link><pubDate>Thu, 29 Jan 2009 14:51:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2901175</guid><dc:creator>brettemiller</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2901175.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=2901175</wfw:commentRss><description>&lt;p&gt;Hey, put this in the &amp;quot;for what it&amp;#39;s worth bin&amp;quot;:&amp;nbsp; &lt;/p&gt;&lt;p&gt;I, too struggled with this.&amp;nbsp; I spent a few hours rebuilding my app, removing references and re-installing asp.net.&amp;nbsp; Nothing worked.&amp;nbsp; What could possibly have changed???!!&amp;nbsp; Well, upon the advice of this discussion:&lt;/p&gt;&lt;p&gt;http://forums.asp.net/p/1088894/2492262.aspx &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I removed the&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Inherits=&amp;quot;Global&amp;quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;attribute from global.asax, and the compiler moved on. My problem bacame apparent: I had accidentally dragged the App_Code folder into the App_Themes folder. Doh!&lt;/p&gt;&lt;p&gt;I corrected the problem and put the &lt;i&gt;Inherits&lt;/i&gt; attribute back into global.asax (even though it doesn&amp;#39;t appear to be necessary) and the solution built just fine. So, my advice if you see this error: you may have some kind of structural problem with your solution.&amp;nbsp; Verify that your class files are where you expect them to be?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Good luck!&lt;/p&gt;&lt;p&gt;&amp;nbsp;--Brett &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Application model compile error:Could not load type 'Upgrade.Global'.</title><link>http://forums.asp.net/thread/2582588.aspx</link><pubDate>Wed, 27 Aug 2008 07:13:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2582588</guid><dc:creator>TATWORTH</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2582588.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=2582588</wfw:commentRss><description>&lt;p&gt;Did you completely resolve your problem?&lt;/p&gt;</description></item><item><title>Re: Application model compile error:Could not load type 'Upgrade.Global'.</title><link>http://forums.asp.net/thread/1360586.aspx</link><pubDate>Thu, 03 Aug 2006 23:04:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1360586</guid><dc:creator>Don A</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1360586.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1360586</wfw:commentRss><description>&lt;p&gt;I think I may have resolved this. &lt;/p&gt;
&lt;p&gt;When I created the Upgrade project from our original project, I evidently didn't update all that I should have such as the namespace, dll name, etc.in the project settings. These still had the original project name. I also tried to "get by" without being able to load the Upgrade app in iis - I had assumed it was some other configuration problem outside of visual studio. Bad move.&lt;/p&gt;
&lt;p&gt;After getting the Upgrade project to build and load in iis, I ran the conversion. I had to drop and re-add&amp;nbsp; a reference to another project on my first build attempt. As soon as I did that I got 383 errors and 53 warnings but the info in the error messages is enough for me to work with. For a lot of the errors, they are duplicates, so once I fix it, the number should drop quickly. I'm no longer seeing the "Could not load type..." error message, thank goodness.&lt;/p&gt;
&lt;p&gt;Once we get the current build to compile successfully and run, I think we'll use the Convert to Web Application context menu that you mentioned above to convert to using partial classes. Previously, I wasn't sure where that menu came into play.&lt;/p&gt;
&lt;p&gt;Thanks again and sorry for the trouble.&lt;/p&gt;
&lt;p&gt;Don&lt;/p&gt;</description></item><item><title>Re: Application model compile error:Could not load type 'Upgrade.Global'.</title><link>http://forums.asp.net/thread/1359967.aspx</link><pubDate>Thu, 03 Aug 2006 14:48:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1359967</guid><dc:creator>Don A</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1359967.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1359967</wfw:commentRss><description>&lt;p&gt;No, I didn't use the context menu. Per the instructions for the WAP model, after installing, I just opened the 1.1 project from within VS 2005 and it walked me through the migration. None of the App_xxx project model directories were created like it did the first time I tried this. When I decided to try the application model, I wiped out the test directory used for the migration and started from scratch.&lt;/p&gt;
&lt;p&gt;Additional info. This has nothing to do with Global.asax. I tried to exclude it from the project and I got the same error on the first file in the workspace. I then excluded that file, and I got the same error on the next one. So, something else is going on here. I looked in the references and saw that there was a reference to the original project, so I removed it to no avail. From what I've read, you can get this error if the system has already loaded this type. Without more info from the error message, I don't know where to look. &lt;/p&gt;
&lt;p&gt;Thanks for the help.&lt;/p&gt;
&lt;p&gt;Don&lt;/p&gt;</description></item><item><title>Re: Application model compile error:Could not load type 'Upgrade.Global'.</title><link>http://forums.asp.net/thread/1359298.aspx</link><pubDate>Wed, 02 Aug 2006 22:23:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1359298</guid><dc:creator>Baiju</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1359298.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1359298</wfw:commentRss><description>&lt;p&gt;Class name Global is fine for C#.&amp;nbsp; Did you ran 'Convert To Web Application' context menu after converting the project file to WAP Project model?&lt;/p&gt;
&lt;p&gt;Baiju&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Application model compile error:Could not load type 'Upgrade.Global'.</title><link>http://forums.asp.net/thread/1358212.aspx</link><pubDate>Wed, 02 Aug 2006 05:08:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1358212</guid><dc:creator>Don A</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1358212.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1358212</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I'm converting a 1.1 app to 2.0 using the application model rather than the project model. I get the compile error "Could not load type..." on the Global.asax file:&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;1&amp;nbsp;Could not load type 'Upgrade.Global'.&amp;nbsp;C:\Inetpub\wwwroot\Upgrade\Global.asax&amp;nbsp;1&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The contents of the asax file are:&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;&amp;lt;%&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;@&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#800000 size=2&gt;Application&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;language&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="C#"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Codebehind&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Global.asax.cs"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Inherits&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Upgrade.Global"&lt;/font&gt;&lt;font size=2&gt; %&amp;gt;&lt;/font&gt;
&lt;p&gt;&lt;font size=2&gt;I added the language clause (it wasn't needed for 1.1) since pressing F1 on the error message displays a generic VB error help.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;A bit of history: In order to test the migration, we created a new web app in iis called Upgrade and copied our current project source files into it and then ran the application project migration. I also had to do several "Replace in Files" to change the namespace and directory paths from our current project to the Upgrade project. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;I've verified that the namespace is set to Upgrade. I noticed that the word "Global" is displayed in a different color in the codebehind file. Is this a reserved word now in 2.0? I tried using a different class name to no avail. I've seen other posts where people are getting this same error in the project model - they say to move the&amp;nbsp;global.asax code to the App_Code directory.&amp;nbsp;Since this is an application model project, there is no App_Code directory.&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;Any help would be greatly appreciated.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;Thanks!&amp;nbsp;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>