-
未能找到源数据文件 xxx.dll。删除引用-分析器里的数据重新编译
-
xxxxxx是“命名空间”,但此处被当做“类型”来使用”的解决方案。解决:避免类名和项目名重复
-
System.NotSupportExpection:HTTP method get & path"..."overloaded by action
提示信息:Actions require unique method/path combination for Swagger 2.0. Use ConflictingActionsResolver as a workaround---- Change the name of the error
causing GET action method to something else and try?
原因:以下两个方法重复。修改方法名
public async Task<TaskDto> GetTasksDataByIdAsync(int taskId)
public TaskDto GetTasksDataById(int taskId)
-
ABP-AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.
解决: mapperConfig.CreateMap<CreateTaskInput,MyAbpProject.Demo.TasksEntity>().ReverseMap();
List< TasksEntity>转换为List<TaskDto>:
GetTasksOutput result = new GetTasksOutput();
result.Tasks=ObjectMapper.Map<List<TaskDto>>(query.ToList());
-
angular报错StaticInjectorError(RootModule)[EditbevComponent -> MlcComponent]:
StaticInjectorError(Platform: core)[EditbevComponent -> MlcComponent]:
NullInjectorError: No provider for MlcComponent!
解决:module中将component的路径设置为全局路径。并将要调用的component作为@ViewChild('mlcShape') <app-mlc #mlcShape >
-
MongoDB连接localhost换成IP地址后连接不上。
解决:配置文件中的bindIp:换成0.0.0.0 表示可以接受任何IP的连接 防火墙的27017端口开放。