And it is actually good news for you!!!
What you saw here is security in action...
Imagine that anyone, who whish so can write a web site that can access your C: drive without any restriction...
So, by definition web pages have no access to the local drives on the computer on which the browser runs...
...
But I suspect that you meant to open a file from the C: drive of the server from where you served the web page...and it should be a real security disaster if a could access the drives on the web server from within a web page just because it was served from that server originally...
If you want to share a file from your server you have several secure options:
1. Create a download button that does it for you
2. Share the file using Virtual Directory
3. Create a page to stream the files directly to client...(
Stream Your Documents Using Simple Web Page[
^])