'Refreshing the project failed' error on loading web project

[hope this hasn't been noted already - I did a search of the newsgroup and
didn't see it mentioned, but if I missed this being discussed to death,
please accept my apology in advance]

I've been noticing an issue with an error message box appearing from Visual
Studio when I open a web project:

"Refreshing the project failed. Unable to retrieve folder information from
the server."

The error is non-fatal and everything seems to work fine after the dialog is
dismissed, but it does happen everytime the solution is loaded.

A quick Google suggests that the issue might be that Visual Studio doesn't
like directories that start with a '.' in web project solution directories.

http://www.artima.com/forums/flat.jsp?forum=152&thread=44409



This only seems to be a problem for people who, during development, either
move their solutions to be co-located with their web project files or
vice-versa. (I'm not sure how common this is - we do it to keep all the
files of a product together and to make version control easier)

To verify this, I tried creating a new C# web service solution from scratch.
Saving and reloading the project in the default directory layout was no
problem [web project in c:\inetpub\wwwroot, solution files under my
documents\visual studio projects]. However, when I moved the web project
files from c:\inetpub\wwwroot\ResharperTest to c:\documents and
settings\me\my documents\visual studio projects\ResharperTest [to put it
next to the solution files; also requires deletion and recreation of the IIS
Virtual Directory], I start getting the error message.

Is there any way to control what Resharper names its directory? Or,
alternately, could you just make the default name not start with a '.'?

Stanley Yamane


4 comments
Comment actions Permalink

Stanley,

I believe you can change name of the directory where ReSharper stores
solution
caches via ReSharper->Options->Solution->Caches path.

However, if directory names starting with dot cause troubles for Web
projects we must perhaps think about
inventing other naming convention.

Thanks for your report,
Dmitry

"Stanley Yamane" <stanley@serviceintegrity.com> wrote in message
news:c8301v$k9p$1@is.intellij.net...

[hope this hasn't been noted already - I did a search of the newsgroup and
didn't see it mentioned, but if I missed this being discussed to death,
please accept my apology in advance]

>

I've been noticing an issue with an error message box appearing from

Visual

Studio when I open a web project:

>

"Refreshing the project failed. Unable to retrieve folder information from
the server."

>

The error is non-fatal and everything seems to work fine after the dialog

is

dismissed, but it does happen everytime the solution is loaded.

>

A quick Google suggests that the issue might be that Visual Studio doesn't
like directories that start with a '.' in web project solution

directories.
>

http://www.artima.com/forums/flat.jsp?forum=152&thread=44409

>

>

This only seems to be a problem for people who, during development, either
move their solutions to be co-located with their web project files or
vice-versa. (I'm not sure how common this is - we do it to keep all the
files of a product together and to make version control easier)

>

To verify this, I tried creating a new C# web service solution from

scratch.

Saving and reloading the project in the default directory layout was no
problem [web project in c:\inetpub\wwwroot, solution files under my
documents\visual studio projects]. However, when I moved the web project
files from c:\inetpub\wwwroot\ResharperTest to c:\documents and
settings\me\my documents\visual studio projects\ResharperTest [to put it
next to the solution files; also requires deletion and recreation of the

IIS

Virtual Directory], I start getting the error message.

>

Is there any way to control what Resharper names its directory? Or,
alternately, could you just make the default name not start with a '.'?

>

Stanley Yamane

>
>


0
Comment actions Permalink

Dmitry,

Thanks for the quick response.

It looks like, at some point in the future, changing 'Caches path' will work
to get around this problem. For the moment, however, changing the path
doesn't seem to have affected Resharper. I'm not sure where the
configuration data for Resharper was saved so that I can verify if the new
'Caches path' value was saved or not, but Resharper did not create a new
directory with the name I specified (and if I deleted the old
.Resharper.MyProject directory, it was recreated with the same old name).

I'll try again with the next version - until then, the dialog is annoying,
but everything else continues to work as well as ever.

Stanley Yamane

"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c84oe1$b3q$1@is.intellij.net...

Stanley,

>

I believe you can change name of the directory where ReSharper stores
solution
caches via ReSharper->Options->Solution->Caches path.

>

However, if directory names starting with dot cause troubles for Web
projects we must perhaps think about
inventing other naming convention.

>

Thanks for your report,
Dmitry

>

"Stanley Yamane" <stanley@serviceintegrity.com> wrote in message
news:c8301v$k9p$1@is.intellij.net...

[hope this hasn't been noted already - I did a search of the newsgroup

and

didn't see it mentioned, but if I missed this being discussed to death,
please accept my apology in advance]

>

I've been noticing an issue with an error message box appearing from

Visual

Studio when I open a web project:

>

"Refreshing the project failed. Unable to retrieve folder information

from

the server."

>

The error is non-fatal and everything seems to work fine after the

dialog

is

dismissed, but it does happen everytime the solution is loaded.

>

A quick Google suggests that the issue might be that Visual Studio

doesn't

like directories that start with a '.' in web project solution

directories.
>

http://www.artima.com/forums/flat.jsp?forum=152&thread=44409

>

>

This only seems to be a problem for people who, during development,

either

move their solutions to be co-located with their web project files or
vice-versa. (I'm not sure how common this is - we do it to keep all the
files of a product together and to make version control easier)

>

To verify this, I tried creating a new C# web service solution from

scratch.

Saving and reloading the project in the default directory layout was no
problem [web project in c:\inetpub\wwwroot, solution files under my
documents\visual studio projects]. However, when I moved the web

project

files from c:\inetpub\wwwroot\ResharperTest to c:\documents and
settings\me\my documents\visual studio projects\ResharperTest [to put it
next to the solution files; also requires deletion and recreation of the

IIS

Virtual Directory], I start getting the error message.

>

Is there any way to control what Resharper names its directory? Or,
alternately, could you just make the default name not start with a '.'?

>

Stanley Yamane

>
>

>
>



0
Comment actions Permalink

Stanley,

I've tried to change caches location for a test solution, and it works for
me. I guess that
you'll only see the result when you open the solution for the next time,
because cached data
are saved during solution loading.

We've changed the name of the default location of caches so that it starts
with '_' instead of '.'.

"Stanley Yamane" <stanley@serviceintegrity.com> wrote in message
news:c8b9c5$n08$1@is.intellij.net...

Dmitry,

>

Thanks for the quick response.

>

It looks like, at some point in the future, changing 'Caches path' will

work

to get around this problem. For the moment, however, changing the path
doesn't seem to have affected Resharper. I'm not sure where the
configuration data for Resharper was saved so that I can verify if the new
'Caches path' value was saved or not, but Resharper did not create a new
directory with the name I specified (and if I deleted the old
.Resharper.MyProject directory, it was recreated with the same old name).

>

I'll try again with the next version - until then, the dialog is annoying,
but everything else continues to work as well as ever.

>

Stanley Yamane

>

"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c84oe1$b3q$1@is.intellij.net...

Stanley,

>

I believe you can change name of the directory where ReSharper stores
solution
caches via ReSharper->Options->Solution->Caches path.

>

However, if directory names starting with dot cause troubles for Web
projects we must perhaps think about
inventing other naming convention.

>

Thanks for your report,
Dmitry

>

"Stanley Yamane" <stanley@serviceintegrity.com> wrote in message
news:c8301v$k9p$1@is.intellij.net...

[hope this hasn't been noted already - I did a search of the newsgroup

and

didn't see it mentioned, but if I missed this being discussed to

death,

please accept my apology in advance]

>

I've been noticing an issue with an error message box appearing from

Visual

Studio when I open a web project:

>

"Refreshing the project failed. Unable to retrieve folder information

from

the server."

>

The error is non-fatal and everything seems to work fine after the

dialog

is

dismissed, but it does happen everytime the solution is loaded.

>

A quick Google suggests that the issue might be that Visual Studio

doesn't

like directories that start with a '.' in web project solution

directories.
>

http://www.artima.com/forums/flat.jsp?forum=152&thread=44409

>

>

This only seems to be a problem for people who, during development,

either

move their solutions to be co-located with their web project files or
vice-versa. (I'm not sure how common this is - we do it to keep all

the

files of a product together and to make version control easier)

>

To verify this, I tried creating a new C# web service solution from

scratch.

Saving and reloading the project in the default directory layout was

no

problem [web project in c:\inetpub\wwwroot, solution files under my
documents\visual studio projects]. However, when I moved the web

project

files from c:\inetpub\wwwroot\ResharperTest to c:\documents and
settings\me\my documents\visual studio projects\ResharperTest [to put

it

next to the solution files; also requires deletion and recreation of

the

IIS

Virtual Directory], I start getting the error message.

>

Is there any way to control what Resharper names its directory? Or,
alternately, could you just make the default name not start with a

'.'?

>

Stanley Yamane

>
>

>
>

>
>


0
Comment actions Permalink

Dimitry,

I think I figured out why the rename didn't work for me. I was wondering
where Resharper was storing the new 'Caches path' setting since I wasn't
seeing any files change in my solution directory. I finally noticed that
those settings are stored in the .resharperoptions file - a file that was checked into source control at the time. With that checked out (and the old .ReSharper. directory deleted), the path change now sticks and I can confirm that with a 'Caches path' starting with '_' instead of '.', I can now load the solution without the error dialog. Thanks! I would like to request that Resharper complain in some way (message box or whatever) if it is unable to save its options after the user has changed them. Stanley Yamane "Dmitry Shaporenkov (JetBrains)" ]]> wrote in message
news:c8ccun$pbe$1@is.intellij.net...

Stanley,

>

I've tried to change caches location for a test solution, and it works for
me. I guess that
you'll only see the result when you open the solution for the next time,
because cached data
are saved during solution loading.

>

We've changed the name of the default location of caches so that it starts
with '_' instead of '.'.

>

"Stanley Yamane" <stanley@serviceintegrity.com> wrote in message
news:c8b9c5$n08$1@is.intellij.net...

Dmitry,

>

Thanks for the quick response.

>

It looks like, at some point in the future, changing 'Caches path' will

work

to get around this problem. For the moment, however, changing the path
doesn't seem to have affected Resharper. I'm not sure where the
configuration data for Resharper was saved so that I can verify if the

new

'Caches path' value was saved or not, but Resharper did not create a new
directory with the name I specified (and if I deleted the old
.Resharper.MyProject directory, it was recreated with the same old

name).

>

I'll try again with the next version - until then, the dialog is annoyin

g,

but everything else continues to work as well as ever.

>

Stanley Yamane

>

"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c84oe1$b3q$1@is.intellij.net...

Stanley,

>

I believe you can change name of the directory where ReSharper stores
solution
caches via ReSharper->Options->Solution->Caches path.

>

However, if directory names starting with dot cause troubles for Web
projects we must perhaps think about
inventing other naming convention.

>

Thanks for your report,
Dmitry

>

"Stanley Yamane" <stanley@serviceintegrity.com> wrote in message
news:c8301v$k9p$1@is.intellij.net...

[hope this hasn't been noted already - I did a search of the

newsgroup

and

didn't see it mentioned, but if I missed this being discussed to

death,

please accept my apology in advance]

>

I've been noticing an issue with an error message box appearing from

Visual

Studio when I open a web project:

>

"Refreshing the project failed. Unable to retrieve folder

information

from

the server."

>

The error is non-fatal and everything seems to work fine after the

dialog

is

dismissed, but it does happen everytime the solution is loaded.

>

A quick Google suggests that the issue might be that Visual Studio

doesn't

like directories that start with a '.' in web project solution

directories.
>

http://www.artima.com/forums/flat.jsp?forum=152&thread=44409

>

>

This only seems to be a problem for people who, during development,

either

move their solutions to be co-located with their web project files

or

vice-versa. (I'm not sure how common this is - we do it to keep all

the

files of a product together and to make version control easier)

>

To verify this, I tried creating a new C# web service solution from

scratch.

Saving and reloading the project in the default directory layout was

no

problem [web project in c:\inetpub\wwwroot, solution files under my
documents\visual studio projects]. However, when I moved the web

project

files from c:\inetpub\wwwroot\ResharperTest to c:\documents and
settings\me\my documents\visual studio projects\ResharperTest [to

put

it

next to the solution files; also requires deletion and recreation of

the

IIS

Virtual Directory], I start getting the error message.

>

Is there any way to control what Resharper names its directory? Or,
alternately, could you just make the default name not start with a

'.'?

>

Stanley Yamane

>
>

>
>

>
>

>
>


0

Please sign in to leave a comment.