Mensaje dentro de Servicios Webs

Responder 
#1 - 21/02/2011 14:11:05 Reporta abuso | Link Permanente
CarlosB
Usuario no registrado
no me funciona mi asp.net en hosting

Responder Citar
Buenas e creado una aplicacion con developer 2008 express con paginas aspx al correrlo en localhost funciona correctamente pero al llevarlo al hosting me arroja el error:

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[SecurityException: Request failed.]
websistema._Default.Button1_Click(Object sender, EventArgs e) in Inicio_Sesion.aspx.vb:58
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
System.Web.UI.Page.ProcessRequest() +80
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.inicio_sesion_aspx.ProcessRequest(HttpContext context) +37
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Como ven el error lo arroja en la linea 58 del archivo Inicio_Sesion.aspx.vb del button1_Click, la linea de codigo 58 es el End Sub del procedimiento del button1_Click, si pudieran ayudarme es urgenete es un trabajo que tengo que entregar a una empresa para hoy y no tengo mas prorroga. gracias
Volver arriba

Respuestas
Mostrar de en 15
#2 - 09/03/2012 15:40:28 Reporta abuso | Link Permanente
Juanjo
Usuario no registrado
RE: no me funciona mi asp.net en hosting

Responder Citar
Llego tarde?
Volver arriba
Mostrar de en 15