在 Windows 7 (64 位) 的 IIS 7 上运行 32 位应用程序 24 May 2014 Jeff ASP.NET, Computer Network 计算机网络 问题: 你发布了一个网站应用到 Windows 7 (64 位)的 IIS 7 服务器上,当你从网页上打开时,显示“试图加载格式不正确的程序”的错误。如: Server Error in ‘xxx’ Application. Could not load file or assembly ‘System.Data.SQLite’ or one of its dpendencies. 解... [More]
Bundle javascripts safely in ASP.NET MVC 01 April 2014 Jeff ASP.NET, MVC, C# Problem: The other day I spent a lot of time to figure out that why my web application didn’t work correctly is because of the ASP.NET MVC default JavaScript bundle renamed the function name of Canva... [More]
Replace Telerik window with jquery-ui dialog 28 February 2014 Jeff ASP.NET, C#, JavaScript When you need to display some information via pop up window, it's better to use jquery-ui dialog than Telerik window. Not only because the Telerik is not supported any more, but also because the jquer... [More]
Fixed: HTTP Error 500.19 - Internal Server Error 04 July 2013 Jeff ASP.NET Problem: After deployed a website on localhost, when visit the web, the following error occurred: ___________________________________________________________________________________ Error Summary ... [More]
Fixed: The name 'ViewBag' does not exist in the current context 01 July 2013 Jeff ASP.NET, MVC Problem: Newly published a MVC web site, got a error message when trying to visit a page: Compiler Error Message: CS0103: The name 'ViewBag' does not exist in the current context Analyze: The MV... [More]
Fixed: unable to cast object of type 'asp._page_admin_default_cshtml' to type 'system.web.ihttphandler' error 14 February 2013 Jeff BlogEngine.NET, ASP.NET 1. Background: I host my BlogEngine.NET (this blog) as a sub application under a main ASP.NET MVC 3 web application (zizhujy.com), it runs well until one day I tried to enter the administrator contro... [More]
HTTP/1.1 405 Method Not Allowed 的原因 07 February 2012 Jeff ASP.NET, BlogEngine.NET 一、问题: 在XP系统的IIS 5.1上部署了一个站点,使用Ajax调用该站点的Web Service时碰到如下错误: HTTP/1.1 405 Method Not Allowed。 以下是使用Firefox查看到的网络请求截图 二、原因: 从http://support.microsoft.com/kb/216493得知,这是IIS 5.1的一个周知Bug。: ( 三、解决... [More]
A base request plugin for soap+msbin1 encoded service 29 January 2012 Jeff ASP.NET, C# Problem: I need to create a web test for a service method, but the service only accepts soap+msbin1 encoded message payload. That means even I pass a valid SOAP message to it, the service will still ... [More]
IIS and web.config configurations for Large File Upload 13 December 2011 Jeff ASP.NET 1. Background: Generally, an ASP.NET web site may only accept a request with less than 4 Mb size. If you want your site can accept large file uploading, you must modify the default settings in IIS, as... [More]
使用 HttpHandler 对 js/css 文件进行压缩 05 October 2011 Jeff ASP.NET, C# 一、简介 在对网站进行开发时,为了给开发人员以好的可读性,需要对代码进行良好的排版,给变量起有意义的名字,进行合理的注释。然而,当网页呈现在用户面前时,之前提及的都不再重要,而另一方面,网页的呈现速度则变得很重要,这时候,又需要对代码进行压缩(以减少文件大小,节省网络带宽,从而加快了页面的加载时间),删掉不必要的空白字符,缩短变量名,删除注释等。如果网站上线后仍然一直处于持续更新状态,则每次在发布... [More]