小编Dav*_*ero的帖子

wcf AddressAlreadyInUseException

我已经查看了这些帖子: 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)

.net wcf .net-4.5

6
推荐指数
2
解决办法
8655
查看次数

如何在C#中从System.Drawing.Color转换为Excel.ColorFormat?更改评论颜色

我正在为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”

我找不到如何在两种格式之间进行转换。

在此处输入图片说明

c# excel vsto system.drawing.color excel-addins

2
推荐指数
1
解决办法
1501
查看次数

标签 统计

.net ×1

.net-4.5 ×1

c# ×1

excel ×1

excel-addins ×1

system.drawing.color ×1

vsto ×1

wcf ×1