473,770 Members | 4,999 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp on IIS7

I'm running IIS7(2008 Server) and SQL both 64 bit. There's a simple client
side code...that just doesn't make any sense. Is there something in IIS7
that could possibly have some effect on including the file. The problem is:

<script src="myfiletoin clude.inc"></script>

it works fine on my 2000 and 2003 box....running IE8 emulating IE7. No
problems....but on the 08 box...it won't pull in the page. Is there a
setting or a place I can go to fix this? I'm clueless....

Thanks!
Apr 10 '08 #1
6 5215
"Jason Hartsoe" <Ja**********@d iscussions.micr osoft.comwrote in message
news:41******** *************** ***********@mic rosoft.com...
I'm running IIS7(2008 Server) and SQL both 64 bit. There's a simple
client
side code...that just doesn't make any sense. Is there something in IIS7
that could possibly have some effect on including the file. The problem
is:
>
<script src="myfiletoin clude.inc"></script>

it works fine on my 2000 and 2003 box....running IE8 emulating IE7. No
problems....but on the 08 box...it won't pull in the page. Is there a
setting or a place I can go to fix this? I'm clueless....

Change the .inc file extension to .js or .vbs which ever matches the
content.

A possible cause of the problem is the server not having a .inc in its
mimemap, without a catch all .* being present (which is not recommended) the
file won't be served.

Another possible cause is IE being more restrictive, it may not like
treating a .inc file that doesn't have a text/javascript or text/vbscript
content type as a script. Thats a guess I haven't played with IE8 yet.

--
Anthony Jones - MVP ASP/ASP.NET
Apr 11 '08 #2
well i did try changing it to a js...but still ended up with nothing...it's a
weird thing. The exact same page served on two different machines...one
works, the other doesn't. IIS7 is still new to me...I wouldn't think it'd be
anything to do server side...rather than client side...

I'll keep looking.

Thanks Anthony!

"Anthony Jones" wrote:
"Jason Hartsoe" <Ja**********@d iscussions.micr osoft.comwrote in message
news:41******** *************** ***********@mic rosoft.com...
I'm running IIS7(2008 Server) and SQL both 64 bit. There's a simple
client
side code...that just doesn't make any sense. Is there something in IIS7
that could possibly have some effect on including the file. The problem
is:

<script src="myfiletoin clude.inc"></script>

it works fine on my 2000 and 2003 box....running IE8 emulating IE7. No
problems....but on the 08 box...it won't pull in the page. Is there a
setting or a place I can go to fix this? I'm clueless....


Change the .inc file extension to .js or .vbs which ever matches the
content.

A possible cause of the problem is the server not having a .inc in its
mimemap, without a catch all .* being present (which is not recommended) the
file won't be served.

Another possible cause is IE being more restrictive, it may not like
treating a .inc file that doesn't have a text/javascript or text/vbscript
content type as a script. Thats a guess I haven't played with IE8 yet.

--
Anthony Jones - MVP ASP/ASP.NET
Apr 11 '08 #3
I found the problem. IIS7 requires the MIME Type to be defined for all files
used. Currently the file was serving a 404...but with the added type it now
serves it correctly without any problems.

THanks again!

"Jason Hartsoe" wrote:
well i did try changing it to a js...but still ended up with nothing...it's a
weird thing. The exact same page served on two different machines...one
works, the other doesn't. IIS7 is still new to me...I wouldn't think it'd be
anything to do server side...rather than client side...

I'll keep looking.

Thanks Anthony!

"Anthony Jones" wrote:
"Jason Hartsoe" <Ja**********@d iscussions.micr osoft.comwrote in message
news:41******** *************** ***********@mic rosoft.com...
I'm running IIS7(2008 Server) and SQL both 64 bit. There's a simple
client
side code...that just doesn't make any sense. Is there something in IIS7
that could possibly have some effect on including the file. The problem
is:
>
<script src="myfiletoin clude.inc"></script>
>
it works fine on my 2000 and 2003 box....running IE8 emulating IE7. No
problems....but on the 08 box...it won't pull in the page. Is there a
setting or a place I can go to fix this? I'm clueless....
>

Change the .inc file extension to .js or .vbs which ever matches the
content.

A possible cause of the problem is the server not having a .inc in its
mimemap, without a catch all .* being present (which is not recommended) the
file won't be served.

Another possible cause is IE being more restrictive, it may not like
treating a .inc file that doesn't have a text/javascript or text/vbscript
content type as a script. Thats a guess I haven't played with IE8 yet.

--
Anthony Jones - MVP ASP/ASP.NET

Apr 11 '08 #4
Jason Hartsoe wrote:
I found the problem. IIS7 requires the MIME Type to be defined for
all files used. Currently the file was serving a 404...but with the
added type it now serves it correctly without any problems.
IIS6 has the same requirement.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Apr 11 '08 #5
"Jason Hartsoe" <Ja**********@d iscussions.micr osoft.comwrote in message
news:E9******** *************** ***********@mic rosoft.com...
I found the problem. IIS7 requires the MIME Type to be defined for all
files
used. Currently the file was serving a 404...but with the added type it
now
serves it correctly without any problems.

Strange thats true of IIS6 too. By default it has a .js mapping. Did your
IIS7 not have a .js mapping in the server mimetypes? Or could it be that
you had some mime types at the site level? This is a common problem since
from IIS point of view the mimemap is a single property. Hence assigning
something to the mimemap lower down masks the whole mimemap from the server
level in the metabase.

--
Anthony Jones - MVP ASP/ASP.NET
Jun 27 '08 #6
Jason Hartsoe wrote:
I found the problem. IIS7 requires the MIME Type to be defined for
all files used. Currently the file was serving a 404...but with the
added type it now serves it correctly without any problems.
IIS6 has the same requirement.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7540
by: Vlad Hrybok | last post by:
Hi all, I recently installed 64 bit version of Vista hoping to make it my primary development setup. I was able to do work with IIS7 and ASP.NET 2.0/Visua Studio 2005 combo, but hit a roadblock trying to work with Visual Studio .NET 2003 on ASP.NET 1.1 app. The problem is that I can’t create an application pool in IIS7 that would run .NET Framework 1.1. I noticed that unlinke .NET Framework 2.0, Framework 1.1 only gets installed...
3
5157
by: Brad | last post by:
In a Vista/IIS7 asp.net app, a coded crystal report export is crashing IIS7....but it works just fine in visual studio's cassini web server. And if I create a web form and use the crystal reports web viewer, view the report and then export from the viewer it also works fine (IIS7 and cassini). And I should note this all works fine in IIS6 on win2003 or in xp. So my thought with all this is that something is going on with IIS7, so...
14
9506
by: Brad | last post by:
I have a .net 2.0 web application project that creates a pdf file, saves the pdf to disk (crystal reports does this part), and then my code reads the pdf file and writes it to the httpresponse The web app works great on win2003 and xp and the end result is a pdf file is displayed in the browser. When I run the same code on Vista, the browser displays the message "Internet Explorer cannot display the web page". If I open the same...
5
2680
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it across the network, so i've installed IIS7 on my Vista machine and created a new website, point at the website's directory. After I switched to the 'Classic .net' app pool, it shows up on the port.
0
5984
by: Erwin Moller | last post by:
Hi, I am one of those questionable people that started with Vista (Home Premium). Not because I think it is a ready/steady OS, but partly out of curiousity, and partly because I needed to work on an old project that happens to run on IIS6/W2000/MSSQL7, but my W2000 machine couldn't handle the size of the database in question anymore. :-( My new Vista machine is 5 years younger and is a lot faster, so I started to figure out how to use...
4
4837
by: turnstyle | last post by:
Hi all, I seem to be having some weird problems with PHP on IIS7, and now I wonder -- is anybody here running PHP on IIS7? Thanks! -Scott
6
9644
by: ma | last post by:
Hello, I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to deploy in to a system which has Vista Business and IIS7. I copied my files to the target computer and created a virtual directory. I add default.aspx to the list of default pages for the virtual directory. My problems are: 1- On vista computer I am trying to see the output of my ASP.NET
11
2723
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hello, I have just installed VISTA Enterprise and VS.NET 2008. When pressing F5 to debug my test ASP.NET website, IE 7 display the message "Internet Explorer cannot display the webpage". The local URL that VS.NET 2008 generates is http://localhost:49705/aaa/Default.aspx. In IIS7 Manager, ASP.NET V2.0… is "Allowed" in the ISAPI and CGI Restrictions. Also IIS7 is working and display ASP.NET web sites if I convert them to IIS7...
5
22823
by: abb | last post by:
On a Vista machine, the following code works using the ASP.NET Development Server, but fails in IIS7: book = excel.Workbooks.Open(tempfile, false, false, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, In IIS7, the error is "Microsoft Office Excel cannot access the file ... There are several possible reasons:
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10231
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10005
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.