namespace and/or intellisense trouble in VS2010 !
-
6 august 2012 11:32More than two weeks has a problem with VS 2010 Pro (ver : 10.0.40219.1 SP1Rel) and .NET Framework (ver : 4.0.30319 SP1Rel).
On my computer I have installed WinXP SP3.
The problem is going to win and asp.net applications.
When you create a win application, the module code entered default namespaces such as
System.Data.
When in some method I try to type SqlClient, this namespace is not offered Intellisense .
As it does not exist. Only when I specify the full path System.Data.SqlClient then becomes visible!
When I try something like :
SqlClient.SqlDataAdapter da = new SqlClient.SqlDataAdapter();
VS shows me an error - > "The type or namespace name 'SqlClient' could not be found (are you missing a using directive or an assembly reference?)..."
I do not know whether the problem with the namespace or the Intellisense.
Many people on the internet complain of this problem (namespace trouble in VS2010), it seems that this is a serious bug.
In VB.Net everything is working properly, Intelisenše shows SqlClient, when I import the namespace
Import System.Data and type SqlClient .
What I tried to do everything, and nothing gave the results:
1) I changed the Target Framework 3.5 with Net Framework Client Profile to Net Framework 4.0 and rebuild app.
it seems that this is a bug per cent when I create an application
VS2010 by default sets the target on the Net Framwork 3.5 Client Profile.
2) I created Empty project and manually added reference - System.Data. Nothing has changed !
3) I set the VS2010 loading namespaces (References Path) from the first location of C: \ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319. Nothing has changed !
4 ) I Create new project and set the VS2010 loading namespaces (References Path) from second location C: \ Program Files \ Reference Assemblies \ Microsoft \ Framework \. NETFramework \ v4.0. Nothing has changed.
Why System.Data.dll has different size but same file version , from these two locations?
4) I did a complete reinstall vs2010. Nothing has changed !
5) Finally , I installed vs2010 SP1 (service pack). Nothing has changed !
Does anyone know what the problem is and how it can be solved ?
forward to thank everyone who offers an answer !!!
Toate mesajele
-
6 august 2012 12:19
Try using the key combination Ctrl+Alt+Space and see if that solves your problemKarthikeya
- Marcat ca răspuns de Lisa ZhuMicrosoft Contingent Staff, Moderator 10 septembrie 2012 04:12
-
7 august 2012 07:14
Hi ,
Also have a look at this link. Hope helps.:)
- Marcat ca răspuns de Lisa ZhuMicrosoft Contingent Staff, Moderator 10 septembrie 2012 04:12
-
10 septembrie 2012 04:12ModeratorHi karadjordje ,
I provisionally marked Karthik9 & Blue's replies as answer.
Please feel free to unmark it if you think the information does not help.
Regards ,
Lisa Zhu [MSFT]
MSDN Community Support | Feedback to us
- Editat de Lisa ZhuMicrosoft Contingent Staff, Moderator 10 septembrie 2012 04:12