我已经查看了这些帖子: wcf System.ServiceModel.AddressAlreadyInUseException, Windows Service通过HTTPS托管WCF, 升级到.NET 4.5后获取AddressAlreadyInUseException,它们都没有解决我的问题.我在.net 4.5中有几个wcf服务.所有这些都在同一个地址中,我在WCF服务主机中得到此异常:
System.ServiceModel.AddressAlreadyInUseException: HTTP could not register URL https://+:443/mafawcf01/ServicioAddin.svc/ because TCP port 443 is being used by another application. ---> System.Net.HttpListenerException: The process cannot access the file because it is being used by another process
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
at System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.DatagramChannelDemuxer`2.OnOuterListenerOpen(ChannelDemuxerFilter filter, IChannelListener listener, TimeSpan timeout)
at …Run Code Online (Sandbox Code Playgroud) 我正在为Excel开发一个vsto插件,并且试图将颜色更改为Excel中的注释。
这是我的代码:
Excel.Range activeCell = _application.ActiveCell;
activeCell.AddComment("some text"));
activeCell.Comment.Shape.Fill.BackColor = Color.Red;
Run Code Online (Sandbox Code Playgroud)
我得到的例外是:
无法将类型“ System.Drawing.Color”隐式转换为“ Microsoft.Office.Interop.Excel.ColorFormat”
我找不到如何在两种格式之间进行转换。