visual studio 2015 - asp.net core 1.0 publishing to IIS 7.5 -
i have created simple asp.net core 1.0 application individual user account authentication setting. if run using iis express runs fine.
i following article https://docs.asp.net/en/latest/publishing/iis.html deploy application iis
on browsing, below error-
this added configureservices method of startup.
services.configure<iisoptions>(options => { options.forwardwindowsauthentication = false; options.forwardclientcertificate = false; options.automaticauthentication = false; });
project.json
{ "usersecretsid": "aspnet-aspnet_core1_461_6sep-9ce5b13e-6499-42b3-bf79-944ffded008c", "dependencies": { "microsoft.netcore.app": { "version": "1.0.0", "type": "platform" }, "microsoft.applicationinsights.aspnetcore": "1.0.0", "microsoft.aspnetcore.authentication.cookies": "1.0.0", "microsoft.aspnetcore.diagnostics": "1.0.0", "microsoft.aspnetcore.diagnostics.entityframeworkcore": "1.0.0", "microsoft.aspnetcore.identity.entityframeworkcore": "1.0.0", "microsoft.aspnetcore.mvc": "1.0.0", "microsoft.aspnetcore.razor.tools": { "version": "1.0.0-preview2-final", "type": "build" }, "microsoft.aspnetcore.server.iisintegration": "1.0.0", "microsoft.aspnetcore.server.kestrel": "1.0.0", "microsoft.aspnetcore.staticfiles": "1.0.0", "microsoft.entityframeworkcore.sqlserver": "1.0.0", "microsoft.entityframeworkcore.sqlserver.design": { "version": "1.0.0", "type": "build" }, "microsoft.entityframeworkcore.tools": { "version": "1.0.0-preview2-final", "type": "build" }, "microsoft.extensions.configuration.environmentvariables": "1.0.0", "microsoft.extensions.configuration.json": "1.0.0", "microsoft.extensions.configuration.usersecrets": "1.0.0", "microsoft.extensions.logging": "1.0.0", "microsoft.extensions.logging.console": "1.0.0", "microsoft.extensions.logging.debug": "1.0.0", "microsoft.extensions.options.configurationextensions": "1.0.0", "microsoft.visualstudio.web.browserlink.loader": "14.0.0", "microsoft.visualstudio.web.codegeneration.tools": { "version": "1.0.0-preview2-final", "type": "build" }, "microsoft.visualstudio.web.codegenerators.mvc": { "version": "1.0.0-preview2-final", "type": "build" } }, "tools": { "bundlerminifier.core": "2.0.238", "microsoft.aspnetcore.razor.tools": "1.0.0-preview2-final", "microsoft.aspnetcore.server.iisintegration.tools": "1.0.0-preview2-final", "microsoft.entityframeworkcore.tools": "1.0.0-preview2-final", "microsoft.extensions.secretmanager.tools": "1.0.0-preview2-final", "microsoft.visualstudio.web.codegeneration.tools": { "version": "1.0.0-preview2-final", "imports": [ "portable-net45+win8" ] } }, "frameworks": { "netcoreapp1.0": { "imports": [ "dotnet5.6", "portable-net45+win8" ] } }, "buildoptions": { "emitentrypoint": true, "preservecompilationcontext": true }, "runtimeoptions": { "configproperties": { "system.gc.server": true } }, "publishoptions": { "include": [ "wwwroot", "views", "areas/**/views", "appsettings.json", "web.config" ] }, "scripts": { "prepublish": [ "bower install", "dotnet bundle" ], "postpublish": [ "dotnet publish-iis --publish-folder %publish:outputpath% --framework %publish:fulltargetframework%" ] } }
any additional step required other following above mentioned article?
my environment is- vs 2015 professional update 3, windows 7 os, iis 7.5
thanks & regards vishal
Comments
Post a Comment