dotnet-architecture / grpc-for-wcf-developers

gRPC for WCF Developers guidance samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deploy tradersys on IIS 10 throws exception

elastiquee opened this issue · comments

I tried to host the WCF service in the tradersys on IIS version 10 on Windows 10, which throws an exception:

The AutofacServiceHost.Container static property must be set before services can be instantiated. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The AutofacServiceHost.Container static property must be set before services can be instantiated.

I'm aware of this issue as discussed several times on stackoverflow, such as this post. Yet the code by Microsft contains the appropriate autofac container.

While it works just fine using the Visual Studio and IISExpress.
Did I miss anything on deploying this as a service?