La aplicación funciona correctamente en local, el error solo se produce al subir al servidor.
aspx:
Código ASP:
Ver original
<%@ Page Language="vb" AutoEventWireup="false" CodeFile="mycube.aspx.vb" Inherits="WebApplication1.mycube" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> </div> </form> </body> </html>
vb:
Código ASP:
Ver original
Public Class mycube Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub End Class
El error en el servidor es el siguiente:
Código ASP:
Ver original
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). Source Error: Line 1: Public Class mycube Line 2: Inherits System.Web.UI.Page Line 3:
La versión de .Net es:
Código ASP:
Ver original
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009
Desde ya muchas gracias por vuestro tiempo.