LLamaSharp icon indicating copy to clipboard operation
LLamaSharp copied to clipboard

Llama.web app published into iis windows 64bit server, after deployment model values not loaded from appsettings

Open pxramesh opened this issue 1 year ago • 4 comments

Localhost is working fine. When we publish the code in iis it's not working. We created the sub app and folder permission provided. Still unable to load the models

pxramesh avatar Mar 13 '24 13:03 pxramesh

@saddam213 Hi, would you like to take a look into this issue? And a possibly similar issue #598

SanftMonster avatar Mar 15 '24 09:03 SanftMonster

You may have to check the ASPNETCORE_ENVIRONMENT environment variable is set correctly on the server or it will try use the appsettings.Development.json

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-8.0

And double check your launchSettings.json make sure its correct

This is a IIS configuration issue and not related to LLamaSharp.

saddam213 avatar Mar 15 '24 19:03 saddam213

We tried with all the environment files like appsettings.json , appsettings.Production.json, appsettings.Development.json Once modify the appsettings file we restart tha app in iis, Still models not loaded

pxramesh avatar Mar 18 '24 12:03 pxramesh

@pxramesh Did you resolve the issue? I am also facing the same issue. Tried everything, still it is not working.

vinaychavadi avatar Aug 16 '24 17:08 vinaychavadi