我在2个独立的Web应用程序中工作,后面和前面的应用程序.有趣的是,当我运行后端时,我没有任何问题.但在前端我得到以下错误:
I have the following error in Netbeans
NetBeans: Deploying on Apache Tomcat or TomEE
profile mode: false
debug mode: false
force redeploy: true
Undeploying ...
undeploy?path=/
OK - Undeployed application at context path /
In-place deployment at D:\WebDevel\WebStore\WebFrontE\target\Web-1.0-SNAPSHOT
Deployment is in progress...
deploy?config=file%3A%2FC%3A%2FUsers%7E1%2FAppData%2FLocal%2FTemp%2Fcontext7815575477480252472.xml&path=/
FAIL - Deployed application at context path / but context failed to start
Run Code Online (Sandbox Code Playgroud)
两者都在同一个Tomcat上运行.我的同事有相同的代码,它工作正常:-s
对象集IdentityUsers'和用户都可以包含net类型的实例
但是我试图创建一个多对多的关系,比如这个教程显示了get-started-with-ef-using-mvc
但我得到了这个错误=>
Multiple object sets per type are not supported. The object sets 'IdentityUsers' and 'Users' can both contain instances of type 'bugs_b_gone.Models.ApplicationUser'.
我在项目类中有一个属性,因此创建项目的用户是管理员但是现在管理员必须创建用户并将其分配给项目
public class Project
{
[Key]
public int ProjectID { get; set; }
//public int AdminID { get; set; }
[Required]
[StringLength(50, ErrorMessage = "Title cannot be longer than 50 characters.")]
[Column("Title")]
[Display(Name = "Title")]
public string Title { get; set; }
[Required]
public string Description { get; set; }
//public int MemberID { …Run Code Online (Sandbox Code Playgroud)