Dear All
I hope you can help me because this is driving me mad.
I have a server on the net running IIS, on it is a simple site which essentially is a list of tests and links to results. The files linked to are a combination of txt, pdf, xda and dat files.
However the links to the xda and dat files do not work, they always report the file missing. I have checked the links and they all point to the right location. I even changed one of the files to a .txt file, which opened perfectly.
The same site on an Apache server works perfectly
So it seems that IIS is somehow preventing me from opening these two file types (dat and xda), any ideas on how I can configure IIS to allow access to these file types?
Thanks
John
Hallo,
Could you please tell me which IIS you are using?, also could you try accessing your dat or xda files and post the last few lines in the IIS log?
Thank you.
Thanks for the feedback guys, sorry to be slow in getting back to you, I had the day of yesterday.
I'm using IIS 6, once I can talk to our backoffice guys I'll have a look into the log filr.
I have had partial success. I managed to get the .dat files working by adding .* to the MIME settings in IIS, no sure why that didnt work for the XDA's though.
I have added XDA to the recognised files formats and that does not seem to have helped so far, though It may just be taking time to flush through the system.
John
Maybe you need to check the permissions on the IIS server. Are you trying to execute these files from the web site? These files could potentially be seen as harmful by IIS if executed.
Hi
I'm not trying to execute these files, just save them to the local machine via a shortcut. XDA files are basically XML files with the first tag stripped out. We strip the first tag out because otherwise it opens in IE rather than it's native application, which is a real pain.
John
Did you say your XDA is a shortcut to an XDA or is this an XDA file itself?
Possibly XDA needs a parser, not sure with XDA or XML formats, not my area of interest, although possibly needed if it were in perl, if it were in perl, it will need a parser.
However, clarify the shortcut you speak of John, if it were a shortcut file it will indeed alert that it's missing.
If you cannot find a way to possibly load XDA, possibly you could use Microsoft's XML parser for IE such as:
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM")
But honestly never heard of XDA, and w3schools.com certainly haven't as they have tutorials on every web language, including XML.
Ok after a bit of wailing and Gnashing of teeth I have sorted it. I did add a catch all into the MIME settings, which logically should have sorted the problem for .xda and .dat files. I've now added .xda in as well and it seems to have worked. The usual logically illogical MS product :)
Thanks for all your thoughts and help.
John.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 6  Replies