Oli*_*her 5 c# asp.net publish asp.net-web-api visual-studio-2013
所以我自己做了一个C#-WebApi REST服务.当我在Visual Studio中构建/运行我的应用程序时,一切都很完美.但每次我尝试将我的项目发布为文件系统时,错误列表中会出现两个错误.这里奇怪的是,几秒钟后这些错误消失,没有显示错误.
ErroMessages:
在此方法中,出现错误:
public override void CopyProperties(object other)
{
base.CopyProperties(other);
Contracts.IEvent _event = other as Contracts.IEvent;
if (_event != null)
{
this.Description = _event.Description;
this.Enddate = _event.Enddate;
this.Host = _event.Host;
this.Location = _event.Location;
this.Name = _event.Name;
this.Color = _event.Color;
this.CreationDate = _event.CreationDate;
}
}
Run Code Online (Sandbox Code Playgroud)
我的类实现的接口如下所示:
namespace Yow.Contracts
{
public interface IEvent : DataObjectBase.IDataObject
{
string Host { get; set; }
string Location { get; set; }
DateTime Startingdate { get; set; }
DateTime Enddate { get; set; }
string Description { get; set; }
string Name { get; set; }
string Privacy { get; set; }
string State { get; set; }
string Agerestriction { get; set; }
int Age { get; set; }
string Color { get; set; }
DateTime CreationDate { get; set; }
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
272 次 |
| 最近记录: |