Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Cannot find DWG files

Reply
Thread Tools

Cannot find DWG files

 
 
Deepa
Guest
Posts: n/a
 
      03-01-2004
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?
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      03-01-2004
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" <> wrote in message
news:1E64F6D3-42E1-42DF-BB3E-...
> 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?


 
Reply With Quote
 
 
 
 
Deepa
Guest
Posts: n/a
 
      03-01-2004
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
 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      03-01-2004
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" <> wrote in message
news:265DAF2D-1CB1-4264-BB5F-...
> 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



 
Reply With Quote
 
Deepa
Guest
Posts: n/a
 
      03-01-2004
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
 
Reply With Quote
 
Deepa
Guest
Posts: n/a
 
      03-01-2004
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
 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      03-01-2004
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" <> wrote in message
news:1F4B5FD3-06FD-4426-858A-...
> 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



 
Reply With Quote
 
Mark Schupp
Guest
Posts: n/a
 
      03-01-2004
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" <> wrote in message
news:0AAF1423-D723-446A-876A-...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows freeware DWG/DXF editor & JPG or PDF-2-DWG/DWX conversion Jim Digital Photography 6 12-21-2012 06:05 PM
regular expression all string but not '.dwg' xlstatik Java 2 06-09-2006 07:44 PM
DWG API james Java 1 01-16-2004 01:59 PM
[Req] - Is there a free library for java to open, view and modify a DWG autocad file? Packy Java 0 10-15-2003 10:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57