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

Is it possible to run IIS without Docker? #460

Closed
afernandes opened this issue May 7, 2018 · 10 comments
Closed

Is it possible to run IIS without Docker? #460

afernandes opened this issue May 7, 2018 · 10 comments

Comments

@afernandes
Copy link
Contributor

Is it possible to run IIS without Docker?

@thiennn
Copy link
Contributor

thiennn commented May 7, 2018

Absolutely yes

@thiennn thiennn closed this as completed May 8, 2018
@afernandes
Copy link
Contributor Author

How to publish to IIS without using the docking window?
There were a number of problems trying to publish and run IIS.

One of the problems I had was having to set on all projects:

<RuntimeIdentifier>win-x64</RuntimeIdentifier>

Another problem I had is that the MailKit DLL is not generated in the module folder.

Setting CopyLocalLockFileAssemblies in the project ends up generating many binder files in the folder.

I created a copy of the project in my repository to try to understand the project from the beginning, but this is difficult to publish to IIS and I do not have much experience with docker.

Look at this issue to better understand the problem:
link

@thiennn
Copy link
Contributor

thiennn commented May 11, 2018

https://docs.simplcommerce.com/en/latest/development-tips. Just make sure the gulp-copy is run correctly.
To deploy to IIS, all you need is publish the WebHost using either Visual Studio or dotnet cli, the output folder then ready to deploy to IIS

@afernandes
Copy link
Contributor Author

IIS in-process hosting moved out of ASP.NET Core 2.1
aspnet/Announcements#302

@ViacheslavMelnichenko
Copy link

@thiennn could you please provide simple instruction how to run with IIS.
I receive an error when try to run published site.

@thiennn
Copy link
Contributor

thiennn commented Aug 17, 2018

@ViacheslavMelnichenko Please share the details error mesage

@ViacheslavMelnichenko
Copy link

ViacheslavMelnichenko commented Aug 18, 2018

My steps are next:

  1. Clone the repository;
  2. Check gulp is available - tasks run with no error;
  3. Switch to release and build, here is the log:
    https://gist.github.com/ViacheslavMelnichenko/162459721470c83b8a0259357e0e4bc8
  4. Publish to local file as release:
    https://gist.github.com/ViacheslavMelnichenko/4cf4cd36786c35988ac81e7d5ac48850
    As you mentioned in other topics I should have .dll file in service directories such as SimpleComAuto\Modules\SimplCommerce.Module.ActivityLog, but only module.json file are there.
    And all the dll files are in root SimpleComAuto though.
  5. When I start it via IIS I receive next error HTTP Error 502.5 - Process Failure.
    In my opinion there are something wrong with my publishing? Thank you.

@thiennn
Copy link
Contributor

thiennn commented Aug 18, 2018

  1. That fine.
  2. In the root of the site. Find Web.config. Set log to true. Create the logs folder. Run the site again and view the log

@ViacheslavMelnichenko
Copy link

ViacheslavMelnichenko commented Aug 18, 2018

ok, I have add next one to webconfig:
<configuration> <system.web> <customErrors mode="Off"/> </system.web> <system.webServer> <httpErrors errorMode="Detailed" />

ErrorLog here:
https://gist.github.com/ViacheslavMelnichenko/49735ca993e36f210db4af251edbbe79

Should I add IIS APPPOOL\SImpleComAuto user to DB?

@ViacheslavMelnichenko
Copy link

so, I have switch Identity to LocalSystem in App Pools. And now it is seems working fine. Thank you!

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

No branches or pull requests

3 participants