HTTP Error 404.17 – Not Found, The requested content appears to be script and will not be served by the static file handler
2012-12-10 15:40
676 查看
http://support.microsoft.com/kb/2019689 微软官方提供的资料。看了一遍之后还是没有找到方案。。貌似这里只是解决映射不同的时候,并没有涉及到与Wcf的程序部署有关。
大海捞针的一样搜了一票文章出来阅读,找到能用的。以此记载。希望也能为其他的同志解决此烦恼。
.Net3.5的WCF服务在IIS7中发布后,在IE中访问.svc文件出现以下错误:
后来发现在II7的WCF服务网站中<处理程序映射>中
*.svc文件已经被.Net Framework4.0的处理程序aspnet_isapi.dll接管,看来是由于装了.Net Framework4.0 beta和vs.net 2010 beta2导致的,把原先的3.5给废了.不影响开发,但影响布署
结果,问题解决!<处理程序映射>中.svc也重新被.net 2.0接管
大海捞针的一样搜了一票文章出来阅读,找到能用的。以此记载。希望也能为其他的同志解决此烦恼。
.Net3.5的WCF服务在IIS7中发布后,在IE中访问.svc文件出现以下错误:
HTTP 错误 404.17 - Not Found
请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理。后来发现在II7的WCF服务网站中<处理程序映射>中
*.svc文件已经被.Net Framework4.0的处理程序aspnet_isapi.dll接管,看来是由于装了.Net Framework4.0 beta和vs.net 2010 beta2导致的,把原先的3.5给废了.不影响开发,但影响布署
注:根据观察,.Net3.0\3.5没带处理程序aspnet_isapi.dll,所以IIS中指定网站适用框架时,看不到.Net3.0\3.5 |
结果,问题解决!<处理程序映射>中.svc也重新被.net 2.0接管
相关文章推荐
- WCF+IIS HTTP Error 404.17 – Not Found, The requested content appears to be script and will not be ..
- [bug]The file ‘/xxx/xxx.aspx’ has not been pre-compiled, and cannot be requested
- The file '/ApplicationName/Default.aspx' has not been pre-compiled, and cannot be requested
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- the file contains top level spacers. They will not be saved.Perhaps you forgot to create a layout
- HTTP Error 404.2 - Not Found The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server(转)
- HTTP Error 404.2 - Not Found "The page you are requesting cannot be served because of the ISAPI and
- linux下安装PHP的CI框架,出现Your view folder path does not appear to be set correctly. Please open the following file and correct this: i
- - Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
- Android eclipse unable to launch:The selection can not be launched,and there are no recent launches
- Solution to "The breakpoint will not currently be hit. The source code is different from the original version."
- Tomorrow I will fly......but I will return in the future, of course, to be by your side
- Linux 'XXXXXX' "is not in the sudoers file. This incident will be reported" 解决方法
- Zox's code life 人生就是不停的战斗! xxx is not in the sudoers file.This incident will be reported.的解决方法
- Unable to allocate and lock memory. The virtual machine will be paused. Please close applications to
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it
- xxx is not in the sudoers file. This incident will be reported的解决方法
- Error: The INF file contains Unicode characters that could not be converted correctly to ANSI的彻底解决
- SimpleCV install and "You need the python image library to save by filehandle"
- xxx is not in the sudoers file.This incident will be reported.的解决方法