469,271 Members | 1,484 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Cannot find DWG files

I am trying to locate a file using the following code

Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")

strURL = "http://server/ApprovedAutoCAD/140-00007-01.dwg"
objXMLHTTP.Open "GET", strURL, False, "login", "password"
objXMLHTTP.Send

strReturn = objXMLHTTP.status

I get a 404 status back indicating that the file is not found, which is incorrect. I am able to locate XLS and DOC files on the same directory. Any ideas why I cannot find a DWG (Drawing) file?
Jul 19 '05 #1
9 2835
put that URL into your browser once... what do you get?
I'm betting that the URL isn't valid.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Deepa" <an*******@discussions.microsoft.com> wrote in message
news:1E**********************************@microsof t.com...
I am trying to locate a file using the following code:

Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")

strURL = "http://server/ApprovedAutoCAD/140-00007-01.dwg"
objXMLHTTP.Open "GET", strURL, False, "login", "password"
objXMLHTTP.Send

strReturn = objXMLHTTP.status

I get a 404 status back indicating that the file is not found, which is

incorrect. I am able to locate XLS and DOC files on the same directory. Any
ideas why I cannot find a DWG (Drawing) file?
Jul 19 '05 #2
Are you able to retreive the file through a browser? Is this file hosted on
a server that has case-sensitivity in its file names?

Ray at work

"Deepa" <an*******@discussions.microsoft.com> wrote in message
news:1E**********************************@microsof t.com...
I am trying to locate a file using the following code:

Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")

strURL = "http://server/ApprovedAutoCAD/140-00007-01.dwg"
objXMLHTTP.Open "GET", strURL, False, "login", "password"
objXMLHTTP.Send

strReturn = objXMLHTTP.status

I get a 404 status back indicating that the file is not found, which is

incorrect. I am able to locate XLS and DOC files on the same directory. Any
ideas why I cannot find a DWG (Drawing) file?
Jul 19 '05 #3
The directory cannot be browsed thru the web, just restricted from users viewing. But for test purposes I was able to look at the file thru the browser. I am not sure about case sensitivity on filenames on server; how can I verify this

Thanks
Deepa
Jul 19 '05 #4
You're able to enter the path directly to the file in your browser and get
to the file? If so, copy that exact url into your code and you'll know that
if it's a case sensitivity thing, you have the case right anyway.

Ray at work

"Deepa" <an*******@discussions.microsoft.com> wrote in message
news:26**********************************@microsof t.com...
The directory cannot be browsed thru the web, just restricted from users viewing. But for test purposes I was able to look at the file thru the
browser. I am not sure about case sensitivity on filenames on server; how
can I verify this?
Thanks.
Deepa

Jul 19 '05 #5
Ray

I was incorrect; I was able to check from the list that the file is available in the directory thru the browser, but since I don't have the AutoCAD I wasn't able to open the file.

However, I tried to view the file thru another PC where I had the AutoCAD software and wasn't able to; gives a HTTP error with status 404. Also if I try to save file thru the browser I get a message that the requested site cannot be found. Is there some IIS setting that I need to do

Thanks
Deepa
Jul 19 '05 #6
The URL is correct, but when I try to open the file thru the browser I get a HTTP error with status 404. Also if I try to save file thru the browser I get a message that the requested site cannot be found. Any idea

Thanks
Deepa
Jul 19 '05 #7
If you're getting a 404, that means that the file that you requested does
not exist, most likely.

Are you/your server able to resolve the domain name?

Does the IIS server hosting the file have IIS Lockdown installed?

Ray at work

"Deepa" <an*******@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
Ray,

I was incorrect; I was able to check from the list that the file is available in the directory thru the browser, but since I don't have the
AutoCAD I wasn't able to open the file.
However, I tried to view the file thru another PC where I had the AutoCAD software and wasn't able to; gives a HTTP error with status 404. Also if I
try to save file thru the browser I get a message that the requested site
cannot be found. Is there some IIS setting that I need to do?
Thanks.
Deepa

Jul 19 '05 #8
What version of IIS. I believe that IIS6 will only server files that have
mime types defined.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Deepa" <an*******@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
The URL is correct, but when I try to open the file thru the browser I get a HTTP error with status 404. Also if I try to save file thru the browser I
get a message that the requested site cannot be found. Any idea?
Thanks.
Deepa

Jul 19 '05 #9
then the URL isn't correct

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Deepa" <an*******@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
The URL is correct, but when I try to open the file thru the browser I get a HTTP error with status 404. Also if I try to save file thru the browser I
get a message that the requested site cannot be found. Any idea?
Thanks.
Deepa

Jul 19 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Raed Sawalha | last post: by
reply views Thread by Kim Baker | last post: by
1 post views Thread by Shiva48 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.