我已经开发了一个可在本地成功运行的ASP .net核心(3.1)应用程序,现在我试图通过Visual Studio 2019发布该Web应用程序,但出现错误消息:
An error occurred while processing your request.
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.
我已经尝试为"ASPNETCORE_ENVIRONMENT": "Production"
增值
我正在使用如下连接字符串:
Data Source=MyDataSource;Initial Catalog=MyDatabase;Integrated Security=True
答案 0 :(得分:0)
您看到的是默认的ASP.NET Core错误页面,其中包括 Development Mode 消息。
您将需要进行调试以找出问题所在。您可以做的一件事是使用dta_long %>% filter(label == 'label1') %>% ggplot(aes(date, value, colour = product)) +
geom_line() + scale_x_date(date_breaks = "3 months",
date_labels = "%b-%y", limits = c((min(dta_long$date)-34), max = max(dta_long$date)))
访问错误处理程序控制器或页面中引发的异常和原始请求路径:
import pandas as pd
import numpy as np
url="https://raw.githubusercontent.com/PawinData/UC/SFBA/DistanceMatrix_shortestnetworks.csv"
Distance_df = pd.read_csv(url, index_col=0)
df=Distance_df.copy()
D = df.to_numpy()
有关如何this的更多信息。
基于您提供的信息的一些指针:
IExceptionHandlerPathFeature
是否可以通过Internet(使用您指定的名称)获得?