Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to publish this web app in local IIS? #904

Open
RMMamun opened this issue May 31, 2020 · 8 comments
Open

How to publish this web app in local IIS? #904

RMMamun opened this issue May 31, 2020 · 8 comments
Labels

Comments

@RMMamun
Copy link

@RMMamun RMMamun commented May 31, 2020

How to publish this web app in local IIS? After publish It's just created 4 files with an EXE type.

@thiennn
Copy link
Contributor

@thiennn thiennn commented Jun 2, 2020

Please describe step you have done to publish.

Publish and deploy SimplCommerce is just like publish and deploy standard ASP.NET Core applications.

Please checkout the docs from Microsoft https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1

@ictnetworks
Copy link

@ictnetworks ictnetworks commented Jun 4, 2020

It does work on IIS on Server 2016

Had to work the web.config file

@altumcon
Copy link

@altumcon altumcon commented Jul 5, 2020

after publish I get error cannot open SimpleCommerce. Login failed for AppPool\DefaultAppPool.

@ictnetworks
Copy link

@ictnetworks ictnetworks commented Jul 6, 2020

What do you have for .NET CLR version: ?
Also, what do you have for Managed Pipeline: ?

Are you able to offer any more details?
Have you modified the web.config file?

Did you install the .NET Core Runtime Environment Hosting Bundle?

@altumcon
Copy link

@altumcon altumcon commented Jul 6, 2020

Hosting bundle is installed installed
DotNet core 3.1.301
I am using the default web.config file that is being generated on publish.
APPPOOL is using no managed code

@altumcon
Copy link

@altumcon altumcon commented Jul 6, 2020

Also if I manually create the database then it gives error Unhandled exception. Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid object name 'Core_AppSetting'.

@ictnetworks
Copy link

@ictnetworks ictnetworks commented Jul 6, 2020

If I understand the error code, is your SQL Server on another Server separate from your IIS Server?
You may need to run Netstat when its trying to connect, so you can see which port its trying to establish a connection with the SQL Server.

In your file " appsettings.json " is it pointing to your SQL Server? If so, are you using User & PW?

You still may need to update the Handlers for ISAPI, Remove WebDavModule, in your web.config file.
My Web.Config file is still being worked out, and still running some Pen-Test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.