Can no longer Go To Type for ASP.NET Codebehind types

I have resharper 6.0 on my work environment and for the longest time Go To Type also included the aspx.cs types in my solution from a web site I added.  The nall of a sudden after re-starting visual studio the codebehind types no longer register.  For example, if I had a page TestPage.aspx(.cs) and the type was TestPage_aspx, when I use Go To Type (Ctrl + T by default) then type the name or a fuzzy search of the name, it would appear in the list.  Now it does not appear, I am forced to use the Go To File (Ctrl+Shift+T by default).  This is really irritating as my site has no compile errors and it USED to work.  I just don't like this kind of inconsistency in this product.

13 comments

Hello,

Could you please check if clearing ReSharper caches (ReSharper | Options
| General -> Clear Caches) and reopening the solution helps to avoid this
problem? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I have resharper 6.0 on my work environment and for the longest time
Go To Type also included the aspx.cs types in my solution from a web
site I added.  The nall of a sudden after re-starting visual studio
the codebehind types no longer register.  For example, if I had a page
TestPage.aspx(.cs) and the type was TestPage_aspx, when I use Go To
Type (Ctrl + T by default) then type the name or a fuzzy search of the
name, it would appear in the list.  Now it does not appear, I am
forced to use the Go To File (CtrlShiftT by default).  This is
really irritating as my site has no compile errors and it USED to
work.  I just don't like this kind of inconsistency in this product.

---
Original message URL:
http://devnet.jetbrains.net/message/5321233#5321233



0

That did not resolve the issue.  Does a .net website have to be added in any particular way or configured in a way that Resharper recognizes the page types?  Does it require access to any particular binaries?

0

Also I cannot navigate within javascript or xml files just as with the codebehind.

0

Hello,

Nothing special is required for a web site, so that ReSharper could navigate
to page classes. Does this happen with a web site or with a web application?
Does Go To Symbol navigate to symbol declarations in .aspx.cs files? Thank
you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

That did not resolve the issue.  Does a .net website have to be added
in any particular way or configured in a way that Resharper recognizes
the page types?  Does it require access to any particular binaries?

---
Original message URL:
http://devnet.jetbrains.net/message/5321250#5321250



0

This is on a web project added from iis (Add Existing Website > Local IIS > [Website])

I cannot use Go To Symbo, File structure in aspx(.cs), javascript, or xml like I could at one point.  This had happend to me before and nothing worked short of uninstalling resharper, and even then it's poping up agian.  This is really frustrating.

0

OK, now after compiling my entire web site it is now working.  I don't udnerstand because asp.net compiles the site when it loads, I try to avoid compiling the site because it takes so long.  I thought it pulls the dlls from when it's compiled upon loading the web.

0

Hello,

Thank you for this information! We'll keep investigating this problem. Meanwhile,
please let me know if this behavior starts again.

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

OK, now after compiling my entire web site it is now working.  I don't
udnerstand because asp.net compiles the site when it loads, I try to
avoid compiling the site because it takes so long.  I thought it pulls
the dlls from when it's compiled upon loading the web.

---
Original message URL:
http://devnet.jetbrains.net/message/5321387#5321387



0

Absolutely.  I would only suggest that in the documentation for the features you specify that for it to work on certain projects, you must compile the entire site.  I personally avoid doing this because iis does it for me and it's a rather large web project (several hundred aspx, app_code files) on top of my dlls.  

Can resharper analyze without the binaries, since javascript and xml files dont compile to anything yet I only get the navigation features when I compile the site contained within.

0

So now it no longer works, and building the site does not resolve the issue...

0

Hello,

Is it possible for you to send your solution (or a stripped down version
of it) to me (andrew dot serebryansky at jetbrains dot com)? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

So now it no longer works, and building the site does not resolve the
issue...

---
Original message URL:
http://devnet.jetbrains.net/message/5321475#5321475



0

I couldn't send you a solution that accurately reproduces it, because it's corporate code.  I'll see if I can reproduce it with a similar project, but If I cannot, is there any information other than the solution that can help you identify the issue?


Edit: I cannot reproduce the issue with a simple project in similar structure.  Basically the project is a website that was added from iis, and several C# Class Libraries.

0

OK, I believe I finally resolved the issue.  The problem I believe is with where resharper stores the temp files for "Hybrid Projects' Projects with class libraries and a asp.net web site (not web project).  Apperantly when I add a web project to my solution, a folder in the Visual Studio 2010 projects folder under my documents is created.  Within this folder the _Resharper folder is create it with the AspFileDataCache.dat inside.  I'm guessing if that file disappears or somehow if resharper loses track of where it is (I hadn't touched the web folder under My Documents so I can't recall) then I would lose the ability to navigate the files on the web.

0

I've been going back and forth trying to reproduce the issue and it's very inconsistent.  Perhaps if someone on the resharper team can explain how exactly the cache for the asp.net files are created I can better know how to reproduce it and possibly solve the situation.  I recently tried switching my cache method to temp system folder and I am not able to get asp.net files visible in navigation.

0

Please sign in to leave a comment.