Aamir Shahzad
Aamir Shahzad

Reputation: 6834

Access error opening a video through absolute url on IIS

I need a absolute url for my video player that i am using. When i try to access the video it gives me following error while url is 'http://mywebsite.com/w/videos/vid.mp4'

404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

I have tried it by shortening the url 'http://mywebsite.com/w/videos/'

403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.

Same way when i try to access a image it opens up. no access error here http://mywebsite.com/w/img/logo.png

I am a front end developer - i have created html pages with javascript/jquery. The server on which i am placing the files have Asp.net hosting (other website on the server is in asp.net). I have tried many helps but all are vain. I will be grateful if someone help me out. If i am not clear do let me please.

Thanks

Upvotes: 1

Views: 1310

Answers (2)

Ashok Patel
Ashok Patel

Reputation: 11

Go to your hosting--->>virtual directory---->>MIME Type -->>

add your video extension after adding your access video.

Upvotes: 0

Aamir Shahzad
Aamir Shahzad

Reputation: 6834

I have just added the extension .mp4 in MIME type (Multipurpose Internet Mail Extensions) in IIS. By defualt this extension was missnig. Just by adding extension fixed the issue for me.

Upvotes: 2

Related Questions