shweta
shweta

Reputation: 1

How to integrate owin with classic asp project

I have updated classic asp project to .net 4.8 version without restructuring or any code changes and added owin integration for the same. but I am not able to set cookies for the project. I am getting HTTP/1.1 New Application Failed after owin redirection. I want set some cookies in startup.cs which were used previosly for the project.

public void Configuration(IAppBuilder app)
{
    var container = new UnityContainer();

    DependencyResolver.SetResolver(new UnityDependencyResolver(container));
    
    var diConfig = new UnityDependencyInjectionConfigurator(container);

    app.UseInbuildIamOidc(diConfig, diConfig.CreateLazyLoadDependencyResolverBuilder());
}
//UseInbuildIamOidc is method created in common nuget

Upvotes: 0

Views: 165

Answers (0)

Related Questions