[Reshaper 4.1] Ambiguous Reference incorrect error!

Hello to everybody,
I've got an asp application, each .aspx page inherits from a page called JAPage defined as this way :


public class JaPage : System.Web.UI.Page
{
public JaPage()
{
}

protected override void InitializeCulture()
{
string lang = String.Format("{0}", Session["Lang"]);
if (!String.IsNullOrEmpty(lang))
Thread.CurrentThread.CurrentUICulture = new CultureInfo(lang);
else
Thread.CurrentThread.CurrentUICulture = CultureInfo.CurrentUICulture;
}
}


When I use it on the aspx pages for example


public partial class Administrator_AdsList : JaPage


I got a red underline....... even on the Administrator_AdsList method I get Methods as Request/Response marked red ....
How To fix It?
Thanks in advance

P.S. : I forgot to say that my Japage.cs is defined inside the App_Code folder (I've got similar problem with all the classes inserted into this folder)

Edited by: Paolo Ponzano on Sep 4, 2008 12:41 PM

Specified More information

36 comments
Comment actions Permalink

Paolo, could you create a small sample solution for us?

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Hi,
I've created a new solution and the problem doesn't happen,
I've tryied with goto Declaration and on first item it doesn't make anything, on the second one, it jump to App_Code\Japage.cs

I can't send you the files I'm working on... my situation is this one

DefaultPage.aspx :JAPage.cs : System.Web.UI.Page and DefaultPage.aspx has got a MasterPage
Hope it helps..... Thanks

0
Comment actions Permalink

I attched an image about this error, it seems ReSharper is caching some
files.

"J.W." <JSunnewsgroup@gmail.com> wrote in message
news:g9oqsp$mmp$1@is.intellij.net...
>
>

"Paolo Ponzano" <no_reply@jetbrains.com> wrote in message
news:10903311.101691220535810032.JavaMail.jive@app4.labs.intellij.net...

>> Hi,
>> I've created a new solution and the problem doesn't happen,
>> I've tryied with goto Declaration and on first item it doesn't make
>> anything, on the second one, it jump to App_Code\Japage.cs
>>
>> I can't send you the files I'm working on... my situation is this one
>>
>> DefaultPage.aspx :JAPage.cs : System.Web.UI.Page and DefaultPage.aspx has
>> got a MasterPage
>> Hope it helps..... Thanks
>

The same issue here, so you are not alone..

>

J.W.



Attachment(s):
Ambiguous refence.png
0
Comment actions Permalink


"Paolo Ponzano" <no_reply@jetbrains.com> wrote in message
news:10903311.101691220535810032.JavaMail.jive@app4.labs.intellij.net...

Hi,
I've created a new solution and the problem doesn't happen,
I've tryied with goto Declaration and on first item it doesn't make
anything, on the second one, it jump to App_Code\Japage.cs

>

I can't send you the files I'm working on... my situation is this one

>

DefaultPage.aspx :JAPage.cs : System.Web.UI.Page and DefaultPage.aspx has
got a MasterPage
Hope it helps..... Thanks


The same issue here, so you are not alone..

J.W.

0
Comment actions Permalink

Yeah , me too - the exact same problem. Also with an ASP.NET Project with Sources in the App_code-Folder ....

0
Comment actions Permalink


"amorph" <no_reply@jetbrains.com> wrote in message
news:13237989.102691220541687860.JavaMail.jive@app4.labs.intellij.net...

Yeah , me too - the exact same problem. Also with an ASP.NET Project with
Sources in the App_code-Folder ....


I hope a patch is coming soon, for now, it seems that I install too
quickly..

0
Comment actions Permalink

Count me in on people seeing this error. I get the ambiguous error regarding extending classes.

0
Comment actions Permalink

I just want JetBrains send a message to its users , it seems this bug
affects a lot of people.


"Ron Lamb" <no_reply@jetbrains.com> wrote in message
news:2921447.103571220550945874.JavaMail.jive@app4.labs.intellij.net...

Count me in on people seeing this error. I get the ambiguous error
regarding extending classes.


0
Comment actions Permalink

Oh Yeah.. The source files it seems to effect is when I extand a file in my Controls directory with a class in App_Code.

0
Comment actions Permalink

Paolo,

what happens if you clear caches and reopen solution?
Could you describe your file structure? Is it a website or a web
application?

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

yup, seeing this too. I've cleared all cache directories, uninstalled 4.1, reinstalled, and it's still not recognising core asp.net elements.

Attached a screenshot, this exact file was working yesterday with 4.0, and has seen no changes other than an install (clean) of 4.1.

Please resolve this asap - I'm having to actually code for a living!



Attachment(s):
vs2008.gif
0
Comment actions Permalink

Hello J.W.,

We were not able to reproduce the problem, could you please send us sample
solution with the problem, or at least describe in details your configuration,
locations of files, project kinds, etc. Thanks.

Sincerely,
Ilya Ryzhenkov

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


J> "amorph" <no_reply@jetbrains.com> wrote in message
J> news:13237989.102691220541687860.JavaMail.jive@app4.labs.intellij.net
J> ...
J>
>> Yeah , me too - the exact same problem. Also with an ASP.NET Project
>> with Sources in the App_code-Folder ....
>>
J> I hope a patch is coming soon, for now, it seems that I install too
J> quickly..
J>


0
Comment actions Permalink

Hello Ron,

We were not able to reproduce the problem, could you please send us sample
solution with the problem, or at least describe in details your configuration,
locations of files, project kinds, etc. Thanks.

Sincerely,
Ilya Ryzhenkov

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


IR> Count me in on people seeing this error. I get the ambiguous
IR> error regarding extending classes.
IR>


0
Comment actions Permalink

Hello.....sorry for my delayed answer..... it's a web application, I've cleaned the cache file and the problems happens to me and to the other 2 guys work with me...

0
Comment actions Permalink

I am busy today, and my solution is too large.

I will check to see if I can make a small sample solution and send to you.

Do I get "free license" if I help you troubleshoot this issue :)

J.W.


"Ilya Ryzhenkov" <orangy@jetbrains.com> wrote in message
news:76a2bd0b16074d8cadd7781ea12f0@news.intellij.net...

Hello J.W.,

>

We were not able to reproduce the problem, could you please send us sample
solution with the problem, or at least describe in details your
configuration, locations of files, project kinds, etc. Thanks.

>

Sincerely,
Ilya Ryzhenkov

>

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

>
>

J> "amorph" <no_reply@jetbrains.com> wrote in message
J> news:13237989.102691220541687860.JavaMail.jive@app4.labs.intellij.net
J> ...
J>

>>> Yeah , me too - the exact same problem. Also with an ASP.NET Project
>>> with Sources in the App_code-Folder ....
>>>

J> I hope a patch is coming soon, for now, it seems that I install too
J> quickly..
J>


0
Comment actions Permalink

Paolo,

We managed to reproduce the problem and fix the case. There will be a
nightly build tomorrow morning.
Hope it fix your problem. If not, we need a sample solution. If you don't
manage to narrow it down, we could sign an NDA in order to get your complete
sample.

NB The paragraph above applies to everyone who experience problems with
ReSharper. Being able to reproduce the issue we can (and will) provide a fix
quickly. Otherwise we cannot guarantee anything :(

PS Thanks for using ReSharper.

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Hi Sergey,
it worked for me... thanks a lot!
Bests from italy

Paolo

0
Comment actions Permalink

It worked for me too..
"Paolo Ponzano" <no_reply@jetbrains.com> wrote in message
news:2758034.121521220944805541.JavaMail.jive@app4.labs.intellij.net...

Hi Sergey,
it worked for me... thanks a lot!
Bests from italy

>

Paolo


0
Comment actions Permalink

Is there a way to get to the nightly build so I can see if this fixes my situation? I looked on the site and could not find where to download it.

0
Comment actions Permalink

Here you go
http://www.jetbrains.net/confluence/display/ReSharper/ReSharper4.0Nightly+Builds

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"WeeJavaDude" <no_reply@jetbrains.com> wrote in message
news:8665245.15311222276266818.JavaMail.jive@app4.labs.intellij.net...

Is there a way to get to the nightly build so I can see if this fixes my
situation? I looked on the site and could not find where to download it.



0
Comment actions Permalink

Thanks.. Looks like that fixed my issue too and should help until the next release.

0
Comment actions Permalink

Me too, thanks.

0
Comment actions Permalink

Hello - pardon the late post. JetBrains - has this update made it into the released builds yet? I'm getting this error after downloading and installing Resharper 4.1 yesterday. I'm using VS 2008, trying to build a web folder (not application). Builds fine, but Resharper throws the 'Ambiguous Reference' errors. This appears somewhat related to file placement in the /App_Code folder.

Thanks,
wbrproductions

0
Comment actions Permalink

It happens even in 4.5 builds (1158 for example). I'll try to make a minimal soultion.

0
Comment actions Permalink

Supposed minimal web project.



Attachment(s):
test2.rar
0
Comment actions Permalink

Fixed. Thanks for the sample.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Is there any option to get a fix for this in 4.1, or is the only option available to download and install the 4.5 nightly build? From looking at the defect (http://www.jetbrains.net/jira/browse/RSRP-92804) it appears the fix should be in 4.5 build 1166 or 1167 -- can you confirm this?

Thank you

0
Comment actions Permalink

Partially fixed for 1164, fully for 1168.

0
Comment actions Permalink

I just installed build 1170 and I'm still getting this error.  I can't believe you're not even attempting to fix this in version 4.1, and our only recourse is to install nightly builds of 4.5 which is still in development stages.  This is a total showstopper bug and you shouldn't even be selling 4.1 while this is outstanding.

I'm going back to Resharper version 3 and not upgrading at all.  Nor will the 20 other developers that work for me.  What a waste of my afternoon.

0

Please sign in to leave a comment.