File 'Downloads/somefile.somextension' was not found

C

CodeMonkey

Hi all,
I have an ASP .NET 2.0 project with the following path on my dev
machine:

D:\Profiles\MyUsername\My Documents\Visual Studio 2005\Projects
\abcWebSite2007\abcWebSite2007\Somefile.aspx

I have a Downloads foler in the above parent folder like this:

D:\Profiles\MyUsername\My Documents\Visual Studio 2005\Projects
\abcWebSite2007\abcWebSite2007\Downloads

The problem is that any files that I place in the downloads folder and
then link using the <a></a> element in the aspx page are not
recognized by the Visual Studio environment.

I get:

File 'downloads/somefile.doc' was not found in the errors list.

However when I run the project the files *can* be found and I can
download them on my dev machine.

I have a similar problem with images that I link to using the <img></
img> element. I get the warning in the errors list and the wavy red
line under the img element in the html, but the image previews fine.
Oddly, sometimes I get the error and sometimes I don't. Swapping
between designer view and Markup seems to usually clear the error, but
it often comes back.

If I use the PickURL popup to try and locate the file from the
designer, then I don't see the Downloads or Images folder. If I put
the files straight into the top level folder (directory path above)
then I don't see the files either.

Does anyone have any idea what is going on? Any help appreciated.

Thanks
Andrew
 
C

CodeMonkey

Hi all,
I have an ASP .NET 2.0 project with the following path on my dev
machine:

D:\Profiles\MyUsername\My Documents\Visual Studio 2005\Projects
\abcWebSite2007\abcWebSite2007\Somefile.aspx

I have a Downloads foler in the above parent folder like this:

D:\Profiles\MyUsername\My Documents\Visual Studio 2005\Projects
\abcWebSite2007\abcWebSite2007\Downloads

The problem is that any files that I place in the downloads folder and
then link using the <a></a> element in the aspx page are not
recognized by the Visual Studio environment.

I get:

File 'downloads/somefile.doc' was not found in the errors list.

However when I run the project the files *can* be found and I can
download them on my dev machine.

I have a similar problem with images that I link to using the <img></
img> element. I get the warning in the errors list and the wavy red
line under the img element in the html, but the image previews fine.
Oddly, sometimes I get the error and sometimes I don't. Swapping
between designer view and Markup seems to usually clear the error, but
it often comes back.

If I use the PickURL popup to try and locate the file from the
designer, then I don't see the Downloads or Images folder. If I put
the files straight into the top level folder (directory path above)
then I don't see the files either.

Does anyone have any idea what is going on? Any help appreciated.

Thanks
Andrew

ok I figured it out. I have to add a folder to the project and then
add the files there to make the IDE recognize the path.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top