I have opened our asp.net 3.5 website on a Windows 8 64bit 2012 VS Ultimate (formerly 2010 on Windows 7 32bit VS 2010 SP1) and it has migrated the project. Gave me the Upgrade Report with only 2 warnings - no errors.
Now when I open the project I get errors on the most basic classes like DateTime or HTTPCOntext:
"DateTime is not declared" or "HTTPContext was not declared"
I have checked all the references to the DLLs etc but can't see the problem.
I want to run the website on 3.5, not 4 or 4.5 so its not a real migration IMO.
You could refer this document to learn Visual Studio 2012 Compatibility
here, This document provides the following information about compatibility between Visual Studio assets created in Visual Studio 2010 with SP1 and assets created in Visual Studio 2012.
hope it helps you.
Kind regards
Please mark the replies as answers if they help or unmark if not.
Feedback to us
If this is Visual Basic project, then you need to check the Option Strict and Option Explicit settings on the project. It's possible that the setting is not correctly migrated in the upgrade process.
Hope this helps.
Please "Mark as Answer" if this post answers your question.
Hi guys, thank you for the link - a good overview.
It's an ASP.NET Website, Framework 3.5. I will check the Option issue. Also when I double click on an error in the list, the cursor jumps to line 1 where for example it says "Imports Microsoft.VisualBasic" or similiar. Am not in front of the machine richt
now.
I had the same issue and overcame it by turning off Option Explicit and Option Strict from the Tools --> Options --> Projects and Solutions --> VB Defaults menu and restarting Visual Studio.
After I restarted the erroneous errors went away.
Marked as answer by Angie xu - MSFT on Feb 21, 2013 07:03 AM
matthiasmax
Member
8 Points
20 Posts
Errors on basic classes after 2012 migration
Nov 26, 2012 08:29 AM|LINK
Hi,
I have opened our asp.net 3.5 website on a Windows 8 64bit 2012 VS Ultimate (formerly 2010 on Windows 7 32bit VS 2010 SP1) and it has migrated the project. Gave me the Upgrade Report with only 2 warnings - no errors.
Now when I open the project I get errors on the most basic classes like DateTime or HTTPCOntext:
"DateTime is not declared" or "HTTPContext was not declared"
I have checked all the references to the DLLs etc but can't see the problem.
I want to run the website on 3.5, not 4 or 4.5 so its not a real migration IMO.
Any ideas?
Thanks!
Angie xu - M...
All-Star
18664 Points
1590 Posts
Microsoft
Re: Errors on basic classes after 2012 migration
Nov 28, 2012 08:06 AM|LINK
Hi
You could refer this document to learn Visual Studio 2012 Compatibility here, This document provides the following information about compatibility between Visual Studio assets created in Visual Studio 2010 with SP1 and assets created in Visual Studio 2012.
hope it helps you.
Kind regards
Feedback to us
Develop and promote your apps in Windows Store
ferrymeidian...
Member
500 Points
126 Posts
Re: Errors on basic classes after 2012 migration
Nov 28, 2012 08:16 AM|LINK
If this is Visual Basic project, then you need to check the Option Strict and Option Explicit settings on the project. It's possible that the setting is not correctly migrated in the upgrade process.
Hope this helps.
Regards,
Ferry Meidianto
www.meidianto.com
matthiasmax
Member
8 Points
20 Posts
Re: Errors on basic classes after 2012 migration
Nov 28, 2012 08:57 AM|LINK
Hi guys, thank you for the link - a good overview.
It's an ASP.NET Website, Framework 3.5. I will check the Option issue. Also when I double click on an error in the list, the cursor jumps to line 1 where for example it says "Imports Microsoft.VisualBasic" or similiar. Am not in front of the machine richt now.
WIll keep you posted.
matthiasmax
Member
8 Points
20 Posts
Re: Errors on basic classes after 2012 migration
Dec 07, 2012 01:18 PM|LINK
I have rechecked the project now. Also with an eye on the "Option" settings with no luck.
It must be something really basic because I get errors on such simple classes.
Ruchira
All-Star
43062 Points
7043 Posts
MVP
Re: Errors on basic classes after 2012 migration
Dec 09, 2012 10:56 AM|LINK
Hello,
Can you try be clean and build the solution?
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.ukandyman
Member
12 Points
1 Post
Re: Errors on basic classes after 2012 migration
Feb 14, 2013 01:36 PM|LINK
I had the same issue and overcame it by turning off Option Explicit and Option Strict from the Tools --> Options --> Projects and Solutions --> VB Defaults menu and restarting Visual Studio.
After I restarted the erroneous errors went away.