Array
(
)

Erro: Cannot create an object of type System.Web.UI.WebControls.TextBoxMode

Alexandre Alves
   - 15 out 2013

Olá pessoal, enviei as páginas ao servidor e está aparecendo esse erro...
#Código

Server Error in ''''/'''' Application.
Parser Error
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.

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

Source Error:


Line 42:             <td>Email ADM:</td>
Line 43:             <td>
Line 44:                 <asp:TextBox ID="txtEmail" runat="server" AutoCompleteType="Email" TextMode="Email"></asp:TextBox>
Line 45:                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEmail" ErrorMessage="Preencha o Email de acesso">*</asp:RequiredFieldValidator>
Line 46:             </td>


Source File: /adm/Usuarios.aspx    Line: 44

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 

Matheus Caldas
   - 16 out 2013

Bom dia Alexandre,

Tenta alterar a versão do framework de 4.0 para 4.5 no servidor.

Obrigado.

Alexandre Alves
   - 23 out 2013

O servidor somente 4.0... estranho que configurei o VS2012 para a versão 4.0...