Intellisense not working

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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"planByJobNumberXml"];
StringBuilder sb = new StringBuilder();
sb.AppendFormat(planXml, jobNumber, entpId, jecCode);
 
It's because there is at least one error in your code more than likely...
string planXml = ConfigurationSettings.AppSettings"planByJobNumberXml"];
 
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 said:
It's because there is at least one error in your code more than likely...
string planXml = ConfigurationSettings.AppSettings"planByJobNumberXml"];

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

TiBA Solutions
www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
tpenrod said:
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"planByJobNumberXml"];
StringBuilder sb = new StringBuilder();
sb.AppendFormat(planXml, jobNumber, entpId, jecCode);
 
Back
Top