Connecting Tech Pros Worldwide Forums | Help | Site Map

Intellisense not working

tpenrod
Guest
 
Posts: n/a
#1: Jul 21 '05
I'm running Visual Studio, using C#.

Intellisense (Go To Definition: function has stopped working for most
objects. It seems to work for class variables, but not for other defined
metods and variables. E.g. in the snippet below, if I rclick on the reference
to planXMl and select "Go To Definition", I get a popup message "Cannot
navigate to planXML", even though it's defined two lines above:

[WebMethod()]
public DataSet ReadPlan(string jobNumber, string entpId, string jecCode)
{
DataSet ds = null;
try
{
string planXml = ConfigurationSettings.AppSettings"planByJobNumberX ml"];
StringBuilder sb = new StringBuilder();
sb.AppendFormat(planXml, jobNumber, entpId, jecCode);



W.G. Ryan eMVP
Guest
 
Posts: n/a
#2: Jul 21 '05

re: Intellisense not working


It's because there is at least one error in your code more than likely...
string planXml = ConfigurationSettings.AppSettings"planByJobNumberX ml"];

--
W.G. Ryan MVP (Windows Embedded)

TiBA Solutions
www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"tpenrod" <tpenrod@discussions.microsoft.com> wrote in message
news:411F90CB-B60B-40BD-A581-81E82AA51008@microsoft.com...[color=blue]
> I'm running Visual Studio, using C#.
>
> Intellisense (Go To Definition: function has stopped working for most
> objects. It seems to work for class variables, but not for other defined
> metods and variables. E.g. in the snippet below, if I rclick on the[/color]
reference[color=blue]
> to planXMl and select "Go To Definition", I get a popup message "Cannot
> navigate to planXML", even though it's defined two lines above:
>
> [WebMethod()]
> public DataSet ReadPlan(string jobNumber, string entpId, string jecCode)
> {
> DataSet ds = null;
> try
> {
> string planXml = ConfigurationSettings.AppSettings"planByJobNumberX ml"];
> StringBuilder sb = new StringBuilder();
> sb.AppendFormat(planXml, jobNumber, entpId, jecCode);
>
>[/color]


tpenrod
Guest
 
Posts: n/a
#3: Jul 21 '05

re: Intellisense not working


No, sorry, that was just a typo on my part (omitting the opening [ ). The
code compiles and runs correctly. This was just one example of where it is
not working. I get the same message throughout my project(s) and in other
solutions as well.

"W.G. Ryan eMVP" wrote:
[color=blue]
> It's because there is at least one error in your code more than likely...
> string planXml = ConfigurationSettings.AppSettings"planByJobNumberX ml"];
>
> --
> W.G. Ryan MVP (Windows Embedded)
>
> TiBA Solutions
> www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
> "tpenrod" <tpenrod@discussions.microsoft.com> wrote in message
> news:411F90CB-B60B-40BD-A581-81E82AA51008@microsoft.com...[color=green]
> > I'm running Visual Studio, using C#.
> >
> > Intellisense (Go To Definition: function has stopped working for most
> > objects. It seems to work for class variables, but not for other defined
> > metods and variables. E.g. in the snippet below, if I rclick on the[/color]
> reference[color=green]
> > to planXMl and select "Go To Definition", I get a popup message "Cannot
> > navigate to planXML", even though it's defined two lines above:
> >
> > [WebMethod()]
> > public DataSet ReadPlan(string jobNumber, string entpId, string jecCode)
> > {
> > DataSet ds = null;
> > try
> > {
> > string planXml = ConfigurationSettings.AppSettings"planByJobNumberX ml"];
> > StringBuilder sb = new StringBuilder();
> > sb.AppendFormat(planXml, jobNumber, entpId, jecCode);
> >
> >[/color]
>
>
>[/color]
tpenrod
Guest
 
Posts: n/a
#4: Jul 21 '05

re: Intellisense not working


No, sorry, that was just a typo on my part (omitting the opening [ ). The
code compiles and runs correctly. This was just one example of where it is
not working. I get the same message throughout my project(s) and in other
solutions as well.

"W.G. Ryan eMVP" wrote:
[color=blue]
> It's because there is at least one error in your code more than likely...
> string planXml = ConfigurationSettings.AppSettings"planByJobNumberX ml"];
>
> --
> W.G. Ryan MVP (Windows Embedded)
>
> TiBA Solutions
> www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
> "tpenrod" <tpenrod@discussions.microsoft.com> wrote in message
> news:411F90CB-B60B-40BD-A581-81E82AA51008@microsoft.com...[color=green]
> > I'm running Visual Studio, using C#.
> >
> > Intellisense (Go To Definition: function has stopped working for most
> > objects. It seems to work for class variables, but not for other defined
> > metods and variables. E.g. in the snippet below, if I rclick on the[/color]
> reference[color=green]
> > to planXMl and select "Go To Definition", I get a popup message "Cannot
> > navigate to planXML", even though it's defined two lines above:
> >
> > [WebMethod()]
> > public DataSet ReadPlan(string jobNumber, string entpId, string jecCode)
> > {
> > DataSet ds = null;
> > try
> > {
> > string planXml = ConfigurationSettings.AppSettings"planByJobNumberX ml"];
> > StringBuilder sb = new StringBuilder();
> > sb.AppendFormat(planXml, jobNumber, entpId, jecCode);
> >
> >[/color]
>
>
>[/color]
Closed Thread


Similar .NET Framework bytes