[wcf] “System.ServiceModel.DiagnosticUtility”的类型初始值设定项引发异常。
ServiceReference1.WCFToSqlClientclient;stringbaseaddress="http://localhost:8000/WCFTo...
ServiceReference1.WCFToSqlClient client;
string baseaddress = "http://localhost:8000/WCFToSql/WCFToSql";
EndpointAddress endpointaddress = new EndpointAddress(baseaddress);
WSHttpBinding binding = new WSHttpBinding(SecurityMode.None)
{
ReaderQuotas = XmlDictionaryReaderQuotas.Max,
MaxBufferPoolSize = 0x80000 * 2,
MaxReceivedMessageSize = int.MaxValue
};
client = new WindowsFormsApplication1.ServiceReference1.WCFToSqlClient(binding, endpointaddress);//这里出错
client.Open();
在大部分电脑都是可以用的!但是有一些电脑电脑就会提示System.ServiceModel.DiagnosticUtility”的类型初始值设定项引发异常。
请高手帮忙看看!
没有的!我已经把net framework删除重装了还是不行! 展开
string baseaddress = "http://localhost:8000/WCFToSql/WCFToSql";
EndpointAddress endpointaddress = new EndpointAddress(baseaddress);
WSHttpBinding binding = new WSHttpBinding(SecurityMode.None)
{
ReaderQuotas = XmlDictionaryReaderQuotas.Max,
MaxBufferPoolSize = 0x80000 * 2,
MaxReceivedMessageSize = int.MaxValue
};
client = new WindowsFormsApplication1.ServiceReference1.WCFToSqlClient(binding, endpointaddress);//这里出错
client.Open();
在大部分电脑都是可以用的!但是有一些电脑电脑就会提示System.ServiceModel.DiagnosticUtility”的类型初始值设定项引发异常。
请高手帮忙看看!
没有的!我已经把net framework删除重装了还是不行! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询