Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

IIS returning 404 not found for .xsd files

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Author Message
ahockley

External


Since: Jul 28, 2004
Posts: 5



(Msg. 1) Posted: Wed Jul 28, 2004 12:03 pm
Post subject: IIS returning 404 not found for .xsd files
Archived from groups: microsoft>public>inetserver>iis (more info?)

I have a web site that links to several files of various types, all in the same directory. Examples of file types include .doc, .xls, .html, and .xsd.

Everything works fine except the XSD... when linking to it at http://server.domain.com/directory/filename.xsd, IIS 6 (Windows Server 2003, all critical updates) returns a 404 file not found. Opening the file from the filesystem into IE works fine.

I tried adding the XSD type to be handled by aspnet_isapi.dll with no change in results.

Help? Is this a bug? Is there a fix?

 >> Stay informed about: IIS returning 404 not found for .xsd files 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 2) Posted: Wed Jul 28, 2004 4:34 pm
Post subject: Re: IIS returning 404 not found for .xsd files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Aaron B. Hockley" <ahockley.TakeThisOut@newsgroup.nospam> wrote in message
news:F8EE2E7B-E24B-4296-9188-6DBC965382EE@microsoft.com...
 > I have a web site that links to several files of various types, all in the
same directory. Examples of file types include .doc, .xls, .html, and .xsd.
 >
 > Everything works fine except the XSD... when linking to it at
<a style='text-decoration: underline;' href="http://server.domain.com/directory/filename.xsd," target="_blank">http://server.domain.com/directory/filename.xsd,</a> IIS 6 (Windows Server 2003,
all critical updates) returns a 404 file not found. Opening the file from
the filesystem into IE works fine.
 >
 > I tried adding the XSD type to be handled by aspnet_isapi.dll with no
change in results.
 >
 > Help? Is this a bug? Is there a fix?

Not a bug, but by design:
<a style='text-decoration: underline;' href="http://support.microsoft.com/default.aspx?scid=kb;en-us;326965" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;en-us;326965</a>

--
Tom Kaminski IIS MVP
<a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</a>
<a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/" target="_blank">http://mvp.support.microsoft.com/</a>
<a style='text-decoration: underline;' href="http://www.iisfaq.com/" target="_blank">http://www.iisfaq.com/</a>
<a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<a style='text-decoration: underline;' href="http://www.tryiis.com" target="_blank">http://www.tryiis.com</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS returning 404 not found for .xsd files 
Back to top
Login to vote
ahockley

External


Since: Jul 28, 2004
Posts: 5



(Msg. 3) Posted: Wed Jul 28, 2004 4:34 pm
Post subject: Re: IIS returning 404 not found for .xsd files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I tried editing the xsd MIME type as described and see no change in behavior... it's still returning 404 errors.

I've tried setting it to either application/octet-stream or text/xml with the same results. I have restarted IIS between attempts.

Any other ideas?

"Tom Kaminski [MVP]" wrote:

 > "Aaron B. Hockley" <ahockley DeleteThis @newsgroup.nospam> wrote in message
 > news:F8EE2E7B-E24B-4296-9188-6DBC965382EE@microsoft.com...
  > > I have a web site that links to several files of various types, all in the
 > same directory. Examples of file types include .doc, .xls, .html, and .xsd.
  > >
  > > Everything works fine except the XSD... when linking to it at
 > <a style='text-decoration: underline;' href="http://server.domain.com/directory/filename.xsd," target="_blank">http://server.domain.com/directory/filename.xsd,</a> IIS 6 (Windows Server 2003,
 > all critical updates) returns a 404 file not found. Opening the file from
 > the filesystem into IE works fine.
  > >
  > > I tried adding the XSD type to be handled by aspnet_isapi.dll with no
 > change in results.
  > >
  > > Help? Is this a bug? Is there a fix?
 >
 > Not a bug, but by design:
<font color=purple> > <a style='text-decoration: underline;' href="http://support.microsoft.com/default.aspx?scid=kb;en-us;326965</font" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;en-us;326965</font</a>>
 >
 > --
 > Tom Kaminski IIS MVP
<font color=purple> > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/</font" target="_blank">http://www.iisfaq.com/</font</a>>
 > <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<font color=purple> > <a style='text-decoration: underline;' href="http://www.tryiis.com</font" target="_blank">http://www.tryiis.com</font</a>>
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS returning 404 not found for .xsd files 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Thu Jul 29, 2004 12:22 am
Post subject: Re: IIS returning 404 not found for .xsd files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Adding the xsd MIME Type at the website/vdir level and making sure that xsd
extension is NOT ScriptMapped to something else that is NOT enabled in Web
Service Extension will guarantee that the resource is downloadable. No IIS
restart required.


Basically, this is what is going on. When you make a request to a URL, IIS
has to decide how to handle it. IIS classifies requests as either:
1. Static resource
2. Dynamic resource

This determination is made by the extension of the resource. IIS first
looks up the applicable ScriptMap table for the URL, which lists all the
extension-to-script-engine mappings. If a mapping exists, the resource is
dynamic. If no mapping exists, it is a static resource. .dll, .com, .exe,
..cgi, and .isa are special default extension mappings that IIS deems
dynamic.

After IIS determines whether the resource is static or dynamic, then the
appropriate handler takes over.

Static resources are handled by the static file handler, which does a
MIME-Type check against the extension prior to serving it and will NOT allow
resources without a MIME Type to be served. This is where 404.3 errors come
from.

Dynamic resources are handled by the appropriate script-engine if a
ScriptMapping exists, or by the ISAPI/CGI itself if .dll/.exe/.com/.cgi/.isa
extension. IIS will do a Web Service Extension check against the binary DLL
prior to execution and will NOT allow the binary to load/execute without an
enabled Web Service Extension. This is where 404.2 errors come from.


Thus, adding .xsd MIME Type allows the static file handler to serve the XSD
files, and making sure no XSD ScriptMap exists will ensure that the static
file handler and NOT aspnet_isapi.dll, etc from stealing the request.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Aaron B. Hockley" <ahockley.DeleteThis@newsgroup.nospam> wrote in message
news:338584D0-D3C7-42B5-B3FC-6F281552583F@microsoft.com...
I tried editing the xsd MIME type as described and see no change in
behavior... it's still returning 404 errors.

I've tried setting it to either application/octet-stream or text/xml with
the same results. I have restarted IIS between attempts.

Any other ideas?

"Tom Kaminski [MVP]" wrote:

 > "Aaron B. Hockley" <ahockley.DeleteThis@newsgroup.nospam> wrote in message
 > news:F8EE2E7B-E24B-4296-9188-6DBC965382EE@microsoft.com...
  > > I have a web site that links to several files of various types, all in
the
 > same directory. Examples of file types include .doc, .xls, .html, and
..xsd.
  > >
  > > Everything works fine except the XSD... when linking to it at
 > <a style='text-decoration: underline;' href="http://server.domain.com/directory/filename.xsd," target="_blank">http://server.domain.com/directory/filename.xsd,</a> IIS 6 (Windows Server
2003,
 > all critical updates) returns a 404 file not found. Opening the file from
 > the filesystem into IE works fine.
  > >
  > > I tried adding the XSD type to be handled by aspnet_isapi.dll with no
 > change in results.
  > >
  > > Help? Is this a bug? Is there a fix?
 >
 > Not a bug, but by design:
<font color=purple> > <a style='text-decoration: underline;' href="http://support.microsoft.com/default.aspx?scid=kb;en-us;326965</font" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;en-us;326965</font</a>>
 >
 > --
 > Tom Kaminski IIS MVP
<font color=purple> > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/</font" target="_blank">http://www.iisfaq.com/</font</a>>
 > <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running
IIS
<font color=purple> > <a style='text-decoration: underline;' href="http://www.tryiis.com</font" target="_blank">http://www.tryiis.com</font</a>>
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS returning 404 not found for .xsd files 
Back to top
Login to vote
user1375

External


Since: Feb 03, 2004
Posts: 423



(Msg. 5) Posted: Thu Jul 29, 2004 6:29 am
Post subject: Re: IIS returning 404 not found for .xsd files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Mike,

IIS defines the following 404 errors, in client browser, we can just
see a general 404 file not found error. You can review IIS log to
check its exact error code(with subcode). I assume it should be
either 404.2 or 404.3:

404 - Not found.
404.0 - (None) ?File or directory not found.
404.1 - Web site not accessible on the requested port.
404.2 - Web service extension lockdown policy prevents this request.
404.3 - MIME map policy prevents this request.

Please click 'Web Sites' folder in IIS6 mmc and check the site's
identifier. Then go to \WINDOWS\system32\LogFiles\W3SVC[Site
Identifier] folder and open the site's IIS log to take a look.

Check the .xsd file's records and verify their sc-status and
sc-substatus columns. They are HTTP return code and subcode.
sc-status should be 404. If sc-substatus is 3, then the error is
404.3 - MIME type missing.

IIS6 doesn't serve any file extensions hasn't been included in its
MIME list. You can add .xsd | text/xml as a new MIME in the site's
HTTP Headers tab->MIME Types. Or directly add it to global setting,
right-click the server's computer icon in IIS6 mmc.

aspnet_isapi.dll

If the error is 404.2 - Web Service Extension missing, please the
xsd extension's handler(in your case aspnet_isapi.dll) is included
in an allowed web service extension in 'Web Service Extensions'
folder of IIS mmc(aspnet_isapi.dll by default has been already in
ASP.NET v1.1.4322 service extension).

More info about these issues can be found in IIS6 online help. See
the following topics:
"Working with MIME Types"
"Frequently Asked Questions - What is a Web service extension and how
do I use the Web Service Extensions folder?"

Let me know if the problem still persists.
Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
 >> Stay informed about: IIS returning 404 not found for .xsd files 
Back to top
Login to vote
ahockley

External


Since: Jul 28, 2004
Posts: 5



(Msg. 6) Posted: Thu Jul 29, 2004 11:06 am
Post subject: Re: IIS returning 404 not found for .xsd files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thaniks. The server had IIS, but not ASPNET. I registered ASPNET and allowed the aspnet_isapi.dll service and it is now working correctly.
 >> Stay informed about: IIS returning 404 not found for .xsd files 
Back to top
Login to vote
user1375

External


Since: Feb 03, 2004
Posts: 423



(Msg. 7) Posted: Fri Jul 30, 2004 4:45 am
Post subject: Re: IIS returning 404 not found for .xsd files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You are welcome.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
 >> Stay informed about: IIS returning 404 not found for .xsd files 
Back to top
Login to vote
Display posts from previous:   
   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 ]