Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

IIS 7 Web Site Issues

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  IIS Install Fails  
Author Message
StevieT

External


Since: Dec 03, 2007
Posts: 1



(Msg. 1) Posted: Mon Dec 03, 2007 1:33 pm
Post subject: IIS 7 Web Site Issues
Archived from groups: microsoft>public>inetserver>iis (more info?)

I am using VS2005 and creating a simple web application (file based). Works
fine when running in the Dev environment.

Then I open IIS and create a new web site and application (points to a copy
of my file based web site). Now the site works pretty much but it does not
find any of the referenced gifs, css files etc. When I type the address of a
gif into the browser it does not error, just doesnt show anything. What
silly thing am I overlooking?

Code:
<link id="Link1" rel="stylesheet" type="text/css"
href="~/app_themes/AAF.css" runat="server" />

No style sheet applied by this!

TIA,
Steve

 >> Stay informed about: IIS 7 Web Site Issues 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 3041



(Msg. 2) Posted: Mon Dec 03, 2007 9:01 pm
Post subject: Re: IIS 7 Web Site Issues [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Are you sure that the ASPX is being processed?

If you look in the HTML source of the webpage you see in your browser, do
you see the literal code rather than the proper link?

Cheers
Ken

--
My IIS Blog: www.adOpenStatic.com/cs/blogs/ken

"StevieT" <StevieT RemoveThis @discussions.microsoft.com> wrote in message
news:C4001DDC-4B2A-4885-B5A7-727B822839DB@microsoft.com...
>I am using VS2005 and creating a simple web application (file based).
>Works
> fine when running in the Dev environment.
>
> Then I open IIS and create a new web site and application (points to a
> copy
> of my file based web site). Now the site works pretty much but it does
> not
> find any of the referenced gifs, css files etc. When I type the address
> of a
> gif into the browser it does not error, just doesnt show anything. What
> silly thing am I overlooking?
>
> Code:
> <link id="Link1" rel="stylesheet" type="text/css"
> href="~/app_themes/AAF.css" runat="server" />
>
> No style sheet applied by this!
>
> TIA,
> Steve

 >> Stay informed about: IIS 7 Web Site Issues 
Back to top
Login to vote
David Wang

External


Since: Nov 14, 2007
Posts: 362



(Msg. 3) Posted: Mon Dec 03, 2007 11:10 pm
Post subject: Re: IIS 7 Web Site Issues [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Dec 3, 1:33 pm, StevieT <Stev....DeleteThis@discussions.microsoft.com> wrote:
> I am using VS2005 and creating a simple web application (file based). Works
> fine when running in the Dev environment.
>
> Then I open IIS and create a new web site and application (points to a copy
> of my file based web site). Now the site works pretty much but it does not
> find any of the referenced gifs, css files etc. When I type the address of a
> gif into the browser it does not error, just doesnt show anything. What
> silly thing am I overlooking?
>
> Code:
> <link id="Link1" rel="stylesheet" type="text/css"
> href="~/app_themes/AAF.css" runat="server" />
>
> No style sheet applied by this!
>
> TIA,
> Steve



Sounds like static files (like .css, .gif) are not configured to be
downloadable. This is a problem with your handler definition.
1. Make sure that "Static File" feature is installed. It should be by
default
2. Are you running the application in "Integrated Mode" or "Classic
ASP.Net Mode"
3. If Classic mode, then please provide the <handler> and
<httpHandler> sections applicable to the URL in question. If in
Integrated mode, please provide the <handler> section applicable to
the URL in question

How to do #3 is to look up the appropriate sections in either the
web.config file in the directories or the appropriate <location> tag
for the URL in the applicationHost.config file.

Recently, someone else also had problems with static files not being
shown, no errors, and it was due to improper <handler> definition that
came from some other software installation. It left a handler for
StaticFile that did not serve up downloads, thus no static files were
being handled. Search this newsgroup for that thread, also with me.

IIS7 is highly extensible and configurable, so with a single
misconfiguration any functionality can be crippled or misbehave. It
gives great power to those that want to leverage the server. It also
means it is very sensitive and easy to misconfigure and malfunction.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
 >> Stay informed about: IIS 7 Web Site Issues 
Back to top
Login to vote
Steve Taylor

External


Since: Dec 04, 2007
Posts: 1



(Msg. 4) Posted: Tue Dec 04, 2007 9:13 am
Post subject: Re: IIS 7 Web Site Issues [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Well, I appreciate that! Yes, it was that the "Static File" feature was not
on. So many new things in IIS 7!

"David Wang" wrote:

> On Dec 3, 1:33 pm, StevieT <Stev....RemoveThis@discussions.microsoft.com> wrote:
> > I am using VS2005 and creating a simple web application (file based). Works
> > fine when running in the Dev environment.
> >
> > Then I open IIS and create a new web site and application (points to a copy
> > of my file based web site). Now the site works pretty much but it does not
> > find any of the referenced gifs, css files etc. When I type the address of a
> > gif into the browser it does not error, just doesnt show anything. What
> > silly thing am I overlooking?
> >
> > Code:
> > <link id="Link1" rel="stylesheet" type="text/css"
> > href="~/app_themes/AAF.css" runat="server" />
> >
> > No style sheet applied by this!
> >
> > TIA,
> > Steve
>
>
>
> Sounds like static files (like .css, .gif) are not configured to be
> downloadable. This is a problem with your handler definition.
> 1. Make sure that "Static File" feature is installed. It should be by
> default
> 2. Are you running the application in "Integrated Mode" or "Classic
> ASP.Net Mode"
> 3. If Classic mode, then please provide the <handler> and
> <httpHandler> sections applicable to the URL in question. If in
> Integrated mode, please provide the <handler> section applicable to
> the URL in question
>
> How to do #3 is to look up the appropriate sections in either the
> web.config file in the directories or the appropriate <location> tag
> for the URL in the applicationHost.config file.
>
> Recently, someone else also had problems with static files not being
> shown, no errors, and it was due to improper <handler> definition that
> came from some other software installation. It left a handler for
> StaticFile that did not serve up downloads, thus no static files were
> being handled. Search this newsgroup for that thread, also with me.
>
> IIS7 is highly extensible and configurable, so with a single
> misconfiguration any functionality can be crippled or misbehave. It
> gives great power to those that want to leverage the server. It also
> means it is very sensitive and easy to misconfigure and malfunction.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
 >> Stay informed about: IIS 7 Web Site Issues 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Accessing Intranet Site issues - I have recently installed SBS 2003 on my server and am having a great issue trying to get the machines within the office to connect to my intranet site. Keeps giving the Page cannot be displayed error. I have checked my settings and cannot see why the..

Issues with Accessing a Site hosted on a NT machine. - Hi, This is in regards to an old intranet issue. I work with the MSC support of KPMG. Currently users are experiencing accessing a website which is hosted on an NT machine. Recently all the kpmg machines have been upgraded to XP from Win 2000. However....

IIS issues - Hi! I have installed IIS 5.1 and Visual Studio.NET 2003 and needed to make an ASP.NET Web Application but whenever I try to make one it gives me an error. First of all I cant create a Virtual Directory with IIS which I think is the fundamental..

DSN Issues With IIS - Hello, I have created an ASP appication that runs on my IIS 5.0 server on Windows 2000 Server. The ASP application accesses a FoxPro database using a DSN that I setup. Everything seems to work fine when I move the FoxPro database is under the root..

ASP and .NET issues - Installed .net Framework to a IIS 5.0 server and now all the asp sites stopped working. Now it seems that the server cant read the directories. When you go to the URL you get a 404 error. But then if you type in the file name default.asp the page..
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]