404

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Getting a 404 (not found) error when I try to read an XSD file from a web server. The file definitely exists. No problem with XML files. Any ideas?
 
Dave, it would help if I could see the line of code you are using to load/open the xml document

Cos Callis, MCAD
 
Hello,

Thanks for your post. As I understand, the problem you are facing is that
your application fails to read XSD from web server. Please correct me if
there is any misunderstanding. I think more infomration is needed before
moving forward:

1. Can you access the file via IE?
2. Could you please tell me the detailed sympton of the problem, including
some code snippet?
3. I suggest you to "Enable logging" on your web server and check the IIS
log.

I look forward to your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Thanks for the response

1. Can you access the file via IE? No. When I enter the following link

http://aaaa-bbbb-01/guaranteed/applicationsxsd.xs

I get a 404 - File or directory not found

On the other hand, when I enter the following link, it does open in IE

V:\Apps\VS\Net\GUARANTEED\Main\bin\Applicationsxsd.xs

2. Code Snippet? The following line bombs

Applicationsxsd1.ReadXmlSchema(System.AppDomain.CurrentDomain.BaseDirectory & "Applicationsxsd.xsd"

A MessageBox on System.AppDomain.CurrentDomain.BaseDirectory shows that it resolves to

http://aaaa-bbbb-01/guaranteed

3. Enable logging - Logging is enabled but it simply shows that a 404 was issued

----- Tian Min Huang wrote: ----

Hello

Thanks for your post. As I understand, the problem you are facing is that
your application fails to read XSD from web server. Please correct me if
there is any misunderstanding. I think more infomration is needed before
moving forward

1. Can you access the file via IE
2. Could you please tell me the detailed sympton of the problem, including
some code snippet
3. I suggest you to "Enable logging" on your web server and check the IIS
log

I look forward to your response

Have a nice day

Regards

HuangT
Microsoft Online Partner Suppor
MCSE/MCS

Get Secure! -- www.microsoft.com/securit
This posting is provided "as is" with no warranties and confers no rights
 
Hi,

Thanks for your prompt response. It seems that you did not put the file to
the directory of your web appliction. Please put the file
applicationsxsd.xsd to the directory like below and check if it resolves
the problem:

<system root>:\Inetpub\wwwroot\guaranteed\

Note: Suppose that aaaa-bbbb-01is the computer name of your web server.

I am standing by for your result.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
I assure you, the file is there! I can access the file if I change it's extention from .xsd to .xml. Is there a filter somewhere that prevents me from having access to xsd files?
 
Hello,

Thanks for your response. Based on my research, I found a similar issue
which was resolved by adding a MIME type entry in the IIS for the .xsd.
Please follow the steps below and see if it works:

1. Go to "Control Panel" -> "Administrative Tools" -> "Internet Information
Services Manager".
2. Right click the corresponding Web Site and choose "Properties".
3. Select "Home Directory" panel, click "Configuration".
4. Add the .xsd extension to the Application Mappings list and linking it
to the executable like:
x:\x\Microsoft.NET\Framework\v1.0.xxxx\aspnet_isapi.dll

I am standing by for your result.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Still no luck.

Using IIS, I am able to drill into Web Sites - Default Web Site - Guaranteed. When I browse "Guaranteed", I can see all of my files including the xsd. When I click the ApplicationsXSD.XSD, I still get the 404. I've confirmed that the xsd extention was added per your instructions and even restarted IIS. I've even Remote Admin'ed to the IIS server to see if it could open the file locally. Still no luck. Please Help

----- Tian Min Huang wrote: ----

Hello

Thanks for your response. Based on my research, I found a similar issue
which was resolved by adding a MIME type entry in the IIS for the .xsd.
Please follow the steps below and see if it works

1. Go to "Control Panel" -> "Administrative Tools" -> "Internet Information
Services Manager"
2. Right click the corresponding Web Site and choose "Properties"
3. Select "Home Directory" panel, click "Configuration"
4. Add the .xsd extension to the Application Mappings list and linking it
to the executable like
x:\x\Microsoft.NET\Framework\v1.0.xxxx\aspnet_isapi.dll

I am standing by for your result

Regards

HuangT
Microsoft Online Partner Suppor
MCSE/MCS

Get Secure! -- www.microsoft.com/securit
This posting is provided "as is" with no warranties and confers no rights
 
Back
Top