Visual Studio 2008 can't find file

N

Nathan Sokalski

I have an ASP.NET Page in Visual Studio 2008 that has the following tag in
the header:

<link href="/nathansokalski_com.css" rel="stylesheet" type="text/css"/>

The css file is there, and when I debug my application (or when I compile
and upload the code like this) it works (including using the styles in the
stylesheet), so I know my code is correct as well. Also, before I migrated
to Visual Studio 2008 and ASP.NET 3.5, Visual Studio 2005 was able to find
it perfectly fine with the same code. I do have the file marked as Include
In Project (it is not excluded from the project). Why can't Visual Studio
2008 find the file? Thanks.
 
M

maffyoo

could you clarify what you mean by "why can't visual studio find the
file?" do you mean it doesnt show up in Solution explorer? or is there
another error you haven't told us about, if its just missing from
solution explorer, right click the part of your project where you expect
it to appear (maybe a style or themes folder) and select add existing
item and pick it in the file brower ... ?? not clear what your problem
is from the description...
 
N

Nathan Sokalski

The file is visible in Solution Explorer, and it is set as "Include In
Project'. In the Text Editor it is underlined with the squiggly green line
and gives the error message "File '/nathansokalski_com.css' was not found.".
Everything works fine except the Text Editor which is complaining that the
file was not found, even the browsers are happy when I test my page (they
find and apply the stylesheet as they should).
 
M

maffyoo

Nathan said:
The file is visible in Solution Explorer, and it is set as "Include In
Project'. In the Text Editor it is underlined with the squiggly green line
and gives the error message "File '/nathansokalski_com.css' was not found.".
Everything works fine except the Text Editor which is complaining that the
file was not found, even the browsers are happy when I test my page (they
find and apply the stylesheet as they should).

which text editor is complaining, sorry im not clear where you are
seeing the "green squiggly line"
 
N

Nathan Sokalski

When editing a file in Source View (such as a *.master, like I am here) in
Visual Studio 2008, errors and warnings are highlighted by being underlined
using a colored line. When I say "Text Editor", I basically mean Source View
in Visual Studio 2008 (if you look at the options for customizing VS2008,
you will notice that there is a section labeled Text Editor). Hopefully this
clears up where I am seeing the problem. If you need a screenshot of the
green squiggly line, let me know. Thanks.
 

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

Top