pdf and djvu

A

Aleks Kleyn

I use asp.net in windows vista. IIS7 is setup there.
In small application I want to display pdf or djvu files. When I click link
to pdf file I do not have any problem. When I click djvu file I get responce
HTTP Error 404.3 - Not Found
Description: The page you are requesting cannot be served because of the
Multipurpose Internet Mail Extensions (MIME) map policy that is configured
on the Web server. The page you requested has a file name extension that is
not recognized, and is not allowed

Because design of IIS changed it is not clear how I can add djvu to MIME,
what is difference between djvu and pdf. I do not see pdf in MIME also, but
I can see it on the client site.
Thank you, Aleks Kleyn
 
N

Nasser Dassi

The first Internet search results for "djvu" display results for plug-ins
and readers, and further info.

I hope that helps.
 
A

Aleks Kleyn

No This search gives you reference to plug in for IE which alows to brows
djvu file on client PC. I have it installed and it works fine. However when
I try to create link on asp page which referes to djvu file i get error. I
cannot understand why link for pdf works and for djvu does not. Code is very
simple
<%@ Page Language="VB" %>
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<%
Dim strFile As String = Request("File")
'Response.ContentType = "text/HTML"
'response.ContentType = "image/djvu"
'Response.Redirect("http://localhost/eBooks/" &Replace(strFile, "%20",
" "))
%>
<iframe src='http://localhost/eBooks/<%=strFile%>' width='100%'
height='100%' scrolling="auto" />
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top