1、在iis中直接設置
.obj application/octet-stream
.mtl application/octet-stream
2、在配置文件中加
<?xml version="1.0" encoding="utf-8"?>
<!--
有關如何配置 ASP.NET 應用程序的詳細消息,請訪問
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
</compilation>
</system.web>
<appSettings>
<add key="SQLString" value="Database=SDApp;Data Source=(local);User Id=sa;Password=skey123!@#;" />
</appSettings>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".cxml" mimeType="text/cxml" />
<mimeMap fileExtension=".dzc" mimeType="text/xml" />
<mimeMap fileExtension=".dzi" mimeType="text/xml" />
</staticContent>
</system.webServer>
</configuration>
這個就是在web.config里面直接改,加上了三種文件類型,cxml.dzc.dzi文件類型,你嘗試這種方式看看。