Para solucionar esto en asp.net mvc,
Tuve que realizar la siguiente modificacion:
Este codigo originalmente estaba asi:
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Account/Login"),
Provider = new CookieAuthenticationProvider
{
// Enables the application to validate the security stamp when the user logs in.
// This is a security feature which is used when you change a password or add an external login to your account.
OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
validateInterval: TimeSpan.FromMinutes(30),
regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
}
});
Y luego, comente lo de OnValidateIdentity quedando asi:
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Account/Login"),
Provider = new CookieAuthenticationProvider
{
// Enables the application to validate the security stamp when the user logs in.
// This is a security feature which is used when you change a password or add an external login to your account.
//OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
// validateInterval: TimeSpan.FromMinutes(30),
// regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
}
});
Mostrando entradas con la etiqueta error. Mostrar todas las entradas
Mostrando entradas con la etiqueta error. Mostrar todas las entradas
miércoles, 30 de octubre de 2019
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
martes, 1 de agosto de 2017
Report Viewer Configuration Error -The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add
Hay que agregar 3 etiquetas:
1)
<compilation debug="true" targetFramework="4.5.2">
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider"/>
</buildProviders>
2)
<assemblies>
<add assembly="Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
3)
<system.webServer>
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</handlers>
...
jueves, 19 de mayo de 2016
Se detectó un posible valor Request.Form peligroso en el cliente
Para solucionar esto, primero hay que tener en cuenta una cosa: La version de .net.
Para versiones inferiores a 4.0
Agregar en la pagina:
o en el web.config
Para versiones superiores a 4.0
agregar en el web.config
Para versiones inferiores a 4.0
Agregar en la pagina:
<%@ Page ValidateRequest="false"%>
o en el web.config
<configuration> <system.web> <pages validateRequest="false" /> </system.web> </configuration>
Para versiones superiores a 4.0
agregar en el web.config
<configuration> <system.web> <httpRuntime requestValidationMode="2.0"/> </system.web> </configuration>
viernes, 2 de agosto de 2013
El controlador "PageHandlerFactory-Integrated" tiene una condición previa incorrecta "ManagedPipelineHandler" en su lista de módulos
El controlador “PageHandlerFactory-Integrated” tiene una condición previa incorrecta “ManagedPipelineHandler” en su lista de módulos
Para solucionar este problema debemos realizar la instalación de asp desde el directorio C:\Windows\Microsoft.NET\Framework\v4.0.30319> y ejecutamos el comando aspnet_regiis -i
Para solucionar este problema debemos realizar la instalación de asp desde el directorio C:\Windows\Microsoft.NET\Framework\v4.0.30319> y ejecutamos el comando aspnet_regiis -i
lunes, 18 de febrero de 2013
parser error message could not load type '.global'
Para solucionar este error se debe seguir los siguientes pasos:
Y eso es todo!!
- Click con el boton derecho sobre el proyecto.
- Propiedades.
- En el tab Build, la opción output.
- Setear la propiedad "Output path:" en
- bin\
Y eso es todo!!
Suscribirse a:
Entradas (Atom)