با سلام
بعد از پابلیش سایت با asp core 5 و razor page تمام صفحات به جز صفحاتی که به دیتابیس متصل هستند نمایش داده می شوند.
در صفحاتی که به دیتابیس متصل هستند هم بر روی iis و هم بر روی هاست این ارور مشاهده می شود.
Development Mode
Swapping to the Development environment displays detailed information about the error that occurred.
The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app
خطا بر روی elmah این متن را دارد.
Login failed. The login is from an untrusted domain and cannot be used with Integrated authentication.
برای یوزری که به دیتابیس متصل می شود دسترسی iis دادم ولی باز هم ارور برطرف نشد.
با بررسی های انجام شده مشکل از دیتابیس و سرور هاست نیست و سایت در لوکال با اتصال به همان دیتابیس خطا ندارد.
فقط بعد از پابلیش این ارور نمایش داده می شود.
سلام فایل کانفیگ رو چک کردین؟
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" />
</environmentVariables>
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)