The re-return of the ambiguous reference

as per - http://www.jetbrains.net/devnet/message/5220646#5220646
and - http://www.jetbrains.net/devnet/thread/277148

Hi All,


I have been using 4.5 for a good while (5/6 weeks) on a project with no issues and recently (last week or so, but I can't pin it down when it started sadly) started getting this error for all classes in app_code :(.

I dont recall I have made any major changes in the app_code directory? BUT I have started using telerik controls which was mentioned in a previous post? I have no clever base classes my pages use either?


I have tried clearing all temp, clearing reshaper files and reloading everything to no avail.


Is this supposed to be fixed now? what else can I look for/try in order to locate this issue, its making R# go from great to not so great at all?


Thanks
Matt

10 comments

Hello Matthew,

Is it possible to strip your project down to a small sample that reproduces
the problem and mail it us for investigation?

--
Kirill Falk
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

as per - /message/5220646#5220646
and - /thread/277148
Hi All,

I have been using 4.5 for a good while (5/6 weeks) on a project with
no issues and recently (last week or so, but I can't pin it down when
it started sadly) started getting this error for all classes in
app_code :(.

I dont recall I have made any major changes in the app_code directory?
BUT I have started using telerik controls which was mentioned in a
previous post? I have no clever base classes my pages use either?

I have tried clearing all temp, clearing reshaper files and reloading
everything to no avail.

Is this supposed to be fixed now? what else can I look for/try in
order to locate this issue, its making R# go from great to not so
great at all?

Thanks
Matt
---
Original message URL:
http://www.jetbrains.net/devnet/message/5238697#5238697



0

When i get chance (the usual deadlines) I can try, but its knowing what to strip,

are there any known issues I need to be aware of that I could have tripped up on to cause this?

Thanks
Matt

0

HI,

This has driven me nuts, but I "seem" to have got it down to, if I comment this section of code out of one of our app_code classes, the ambig goes away? -


public enum MyDateInterval
{
Second,
Minute,
Hour,
Day,
Week,
Month,
Quarter,
Year
};
public static long MyDateDiff(MyDateInterval Interval, DateTime StartDate, DateTime EndDate)
{
long lngDateDiffValue = 0;
TimeSpan TS = new TimeSpan(EndDate.Ticks - StartDate.Ticks);
if (Interval == MyDateInterval.Day)
{
lngDateDiffValue = TS.Days;
}
else if (Interval == MyDateInterval.Hour)
{
lngDateDiffValue = (long) TS.TotalHours;
}
else if (Interval == MyDateInterval.Minute)
{
lngDateDiffValue = (long) TS.TotalMinutes;
}
else if (Interval == MyDateInterval.Month)
{
lngDateDiffValue = (TS.Days/30);
}
else if (Interval == MyDateInterval.Quarter)
{
lngDateDiffValue = ((TS.Days/30)/3);
}
else if (Interval == MyDateInterval.Second)
{
lngDateDiffValue = (long) TS.TotalSeconds;
}
else if (Interval == MyDateInterval.Week)
{
lngDateDiffValue = (TS.Days/7);
}
else if (Interval == MyDateInterval.Year)
{
lngDateDiffValue = (TS.Days/365);
}
return (lngDateDiffValue);
}//end of DateDiff

Now looking at this, i think its a cut+paste job from the web that may be a bit redundant.

But! why does it cause the ambig reference?

Does this help?

Cheers
Matt



0

I stand corrected, I think this was because when I commented it out the proj was in a temporary non-compiled intermediate errored state and thats why r# was 'happy' for a bit!

I give up

0

Hi,

I have tried to strip the project to no avail, is there any way we can go further with this? log files?

Thanks
Matt

0

Matthew,

The best thing thing would be if you send us your website for investigation (NDA will be signed if necessary). Just an idea, how this could happen.
If you're using custom build provider and its implementation resides in App_Code (not in subfolder marked in web.config as subCode folder) as well as other classes references to which become ambiguous.

0

Thanks Sergey,

I dont think I am using a "custom build provider".

I'll see what I can put together to send over to help sort this out.

Where would I send it?

Regards
Matt

0

Matthew,

There might be web references that lead to the same effect but it's less likely.
My e-mail is: qx [at] jetbrains [dot] com
Thanks in advance.

0

HI,

Sent a test email to that address, had no reply?

Thanks

0

Ooops. My anti-spam filter was too greedy. Waiting for the project. Thanks in advance.

0

Please sign in to leave a comment.