求大佬 搞了一天了 右键调试启动新实例 就报错
System.Net.Http.UnsupportedMediaTypeException:“No MediaTypeFormatter is available to read an object of type 'ResponseData`1' from content with media type 'text/html'.”
去文件夹打开 exe. 就不会报错
报错代码如下
var result = await HttpProvider.RequestAsync<ResponseData<flcfDTO>>(
$"{Setting.Url}/Flcf/SelectAll",
new
{
start = pageIndex * pagingBar1.PageSize,
limit = pagingBar1.PageSize,
queryStr = ribbonPageGroup2.CreateQueryStr()
});
System.Net.Http.UnsupportedMediaTypeException:“No MediaTypeFormatter is available to read an object of type 'ResponseData`1' from content with media type 'text/html'.”
去文件夹打开 exe. 就不会报错
报错代码如下
var result = await HttpProvider.RequestAsync<ResponseData<flcfDTO>>(
$"{Setting.Url}/Flcf/SelectAll",
new
{
start = pageIndex * pagingBar1.PageSize,
limit = pagingBar1.PageSize,
queryStr = ribbonPageGroup2.CreateQueryStr()
});
