摘要: IIS7.5中将一网站应用程序池托管管道模式改为经典后,网站页面打不开,错误信息:引用内容HTTP 错误 404.2 - Not Found由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法提供您请求的页面。解决方法打开IIS7.5,左侧选择根节点,在功能视图中找到"ISAPI和... 阅读全文
posted @ 2014-11-26 13:43 thomaswang 阅读(385) 评论(0) 推荐(0) 编辑
摘要: MVC3在IIS7.5发布(部署)报403.14错误的解决办法 错误现象:报403.14 forbidden错误web服务器被配置为不列出此目录的内容。解决办法:检查站点的处理程序映射,看是否存在下列映射:ExtensionlessUrlHandler-Integrated-4.0Extension... 阅读全文
posted @ 2014-11-24 18:00 thomaswang 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 环境:iis6使用silverlight做的上传控件上传文件到某共享目录。已将在目录的共享安全和安全中加了 共享用户的 权限。但通过浏览器访问共享目录文件报错:Access to the path '' is denied,上传也不行。解决办法:1. 添加账号 Network Service 到目录... 阅读全文
posted @ 2014-06-20 12:01 thomaswang 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: IIS7直接部署 分配好IP就行IIS6需要添加2个MIME类型.xap application/x-silverlight-app.xaml application/xaml+xml记得调整ASP.NET版本为4.0另外如果用到了RIA SERVICE复制 System.ServiceModel.DomainServices.Server.dll System.ServiceModel.DomainServices.Hosting.dll System.ServiceModel.DomainServices.EntityFramework.dll (如果使用ADO.NET E... 阅读全文
posted @ 2013-01-29 15:56 thomaswang 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 从网上下载的源码WeCompanySite,运行时报错Error creating context 'spring.root': Error thrown by a dependency of object 'System.Data.SQLite' defined in 'assembly [Spring.Data, Version=1.3.1.40711, Culture=neutral, PublicKeyToken=65e474d141e25e07], resource [Spring.Data.Common.dbproviders.xml] li 阅读全文
posted @ 2012-12-21 16:53 thomaswang 阅读(2331) 评论(1) 推荐(1) 编辑
摘要: 一http://hi.baidu.com/zyb512/blog/item/28ed858b3b88c015c9fc7af9.htmlweb Form 网页是基于HTTP的,它们没有状态, 这意味着它们不知道所有的请求是否来自同一台客户端计算机,网页是受到了破坏,以及是否得到了刷新,这样就可能造成信息的丢失。 于是, 状态管理就成了开发网络应用程序的一个实实在在的问题。 在ASP中能够通过Cookie 、查询字符串、 应用程序、会话(Session) 等轻易解决这些问题。现在在ASP.NET环境中,我们依然可以使用这些功能,并且功能更加强大。状态管理分为服务端和客户端两种情况, 这里只是介绍 阅读全文
posted @ 2012-12-01 13:52 thomaswang 阅读(1031) 评论(0) 推荐(0) 编辑
摘要: 发布mvc3报错:403.14-Forbidden Web 服务器被配置为不列出此目录的内容提示里面的解决方法是: 如果不希望启用目录浏览,请确保配置了默认文档并且该文件存在。 使用 IIS 管理器启用目录浏览。 打开 IIS 管理器。 在“功能”视图中,双击“目录浏览”。 在“目录浏览”页上,在“操作”窗格中单击“启用”。 确认站点或应用程序配置文件中的 configuration/system.webServer/directoryBrowse@enabled 特性被设置为 True。其实检查一下两点即可1. <system.webServer> <validation 阅读全文
posted @ 2012-11-22 23:24 thomaswang 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 使用mvc开发页面,在view中需要提交数据到后台。使用的办法是在javascript中建立一个和参数类相同的类,在javascript赋值,然后序列化为json,通过$.ajax的提交json数据到后台。实际编程中发现参数取值一直为null。view中的代码:1$('#linkSave').click(function(){2vartreeObj=$.fn.zTree.getZTreeObj("treeDemo");3varnodes=treeObj.getCheckedNodes(true);4vardatas=[];5$.each(nodes,func 阅读全文
posted @ 2012-04-25 16:03 thomaswang 阅读(1667) 评论(0) 推荐(0) 编辑
摘要: 代码:View Code 1try2{3excelApplication=newExcel.ApplicationClass();4excelWorkBooks=excelApplication.Workbooks;5excelWorkBook=((Excel.Workbook)excelWorkBooks.Open(excelOpenFileName,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Va 阅读全文
posted @ 2012-01-16 10:45 thomaswang 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 如果数据源是MsSql,则别名用[]括起来。如:SELECT s.id as [ID],realname as [学生名字],workplacename as [校区],w.id as [校区ID],companyid as [分公司ID],s.create_time as [发生时间] from students sleft join offices o on s.currentplace=o.IDleft join workplaces w on o.workplaceid=w.idwhere w.id in ('86')order by w.id,s.create_tim 阅读全文
posted @ 2011-05-11 12:53 thomaswang 阅读(730) 评论(0) 推荐(0) 编辑