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?
404
Collapse
This topic is closed.
X
X
-
DaveTags: None -
Cos Callis
RE: 404
Dave, it would help if I could see the line of code you are using to load/open the xml document
Cos Callis, MCAD
-
Cos Callis
RE: 404
Dave, it would help if I could see the line of code you are using to load/open the xml document
Cos Callis, MCAD
Comment
-
Tian Min Huang
RE: 404
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 misunderstandin g. 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.
Comment
-
Tian Min Huang
RE: 404
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 misunderstandin g. 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.
Comment
-
Dave
RE: 404
Thanks for the response
1. Can you access the file via IE? No. When I enter the following link
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\Applicatio nsxsd.xs
2. Code Snippet? The following line bombs
Applicationsxsd 1.ReadXmlSchema (System.AppDoma in.CurrentDomai n.BaseDirectory & "Applicationsxs d.xsd"
A MessageBox on System.AppDomai n.CurrentDomain .BaseDirectory shows that it resolves to
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 misunderstandin g. 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
Comment
-
Dave
RE: 404
Thanks for the response
1. Can you access the file via IE? No. When I enter the following link
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\Applicatio nsxsd.xs
2. Code Snippet? The following line bombs
Applicationsxsd 1.ReadXmlSchema (System.AppDoma in.CurrentDomai n.BaseDirectory & "Applicationsxs d.xsd"
A MessageBox on System.AppDomai n.CurrentDomain .BaseDirectory shows that it resolves to
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 misunderstandin g. 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
Comment
-
Tian Min Huang
RE: 404
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\guarant eed\
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.
Comment
-
Tian Min Huang
RE: 404
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\guarant eed\
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.
Comment
-
Dave
RE: 404
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?
Comment
-
Dave
RE: 404
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?
Comment
-
Tian Min Huang
RE: 404
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" -> "Administra tive 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\v 1.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.
Comment
-
Tian Min Huang
RE: 404
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" -> "Administra tive 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\v 1.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.
Comment
-
Dave
RE: 404
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" -> "Administra tive Tools" -> "Internet Information
Services Manager"
2. Right click the corresponding Web Site and choose "Properties "
3. Select "Home Directory" panel, click "Configurat ion"
4. Add the .xsd extension to the Application Mappings list and linking it
to the executable like
x:\x\Microsoft. NET\Framework\v 1.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
Comment
-
Dave
RE: 404
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" -> "Administra tive Tools" -> "Internet Information
Services Manager"
2. Right click the corresponding Web Site and choose "Properties "
3. Select "Home Directory" panel, click "Configurat ion"
4. Add the .xsd extension to the Application Mappings list and linking it
to the executable like
x:\x\Microsoft. NET\Framework\v 1.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
Comment
Comment