在部署到IIS文本框模式DateTimeLocal不工作 [英] Textbox Mode DateTimeLocal not working when deployed to IIS

查看:682
本文介绍了在部署到IIS文本框模式DateTimeLocal不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

描述:资源的解析过程中出现错误
  此请求提供服务所需。请检查下列特定
  分析错误详细信息并适当地修改源文件。

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

分析器错误信息:无法创建类型的对象
  从它的字符串重新presentation'System.Web.UI.WebControls.TextBoxMode
  DateTimeLocal'为'的TextMode'属性。

Parser Error Message: Cannot create an object of type 'System.Web.UI.WebControls.TextBoxMode' from its string representation 'DateTimeLocal' for the 'TextMode' property.

源错误:

设置我的文本框 的TextMode = DateTimeLocal 跑我的项目,它运行良好。当我试图部署我的应用程序IIS和浏览网页我会得到上述错误。 IIS 净4.0.30319 。是否有一个原因,我得到它本地主机(我的电脑上),而不是服务器(ISS)?我该如何解决这个问题?

I set my Textbox TextMode=DateTimeLocal and ran my project and it runs well. When I tried to deploy my application to IIS and visit the webpage i would get the error above. IIS has .Net 4.0.30319. Is there a reason why i get it on localhost (on my computer) and not the server (iss)? how do i fix this?

推荐答案

有在<一个只有三个成员href=\"http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textboxmode%28v=vs.100%29.aspx\"相对=nofollow> TextBoxMode枚举为ASP.NET 4.0 :


  1. SINGLELINE:重新presents单行输入模式

  2. 多:重新presents多行输入模式。

  3. 密码:重新presents密码输入模式

有相当数量更多,包括 DateTimeLocal 中的 TextBoxMode枚举为ASP.NET 4.5

There are a considerable amount more, including DateTimeLocal in TextBoxMode Enumeration for ASP.NET 4.5.

您本地主机正在运行ASP.NET 4.5,显然你的服务器是不是......确保你有ASP.NET 4.5服务器上安装。

Your localhost is running ASP.NET 4.5, and apparently your server is not... ensure you have ASP.NET 4.5 installed on your server.

更新:作为谁也不能升级到ASP.NET 4.5的人,你可以很可能只是将键入=日期时间本地对TextBox作为替代。

UPDATE: for people who can't upgrade to ASP.NET 4.5, you can likely just set the type="datetime-local" for the TextBox as an alternative.

这篇关于在部署到IIS文本框模式DateTimeLocal不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆