我最终试图通过WAMP服务器上的C#(使用Visual Studio)访问mysql数据库。我正在localhost:81上运行WAMP服务器,我试图用这个连接到服务器:
string address = "http://localhost:81";
HostProxy = new ServiceHost(typeof(Server), new Uri(address));
但是我得到了AddressAccessDeniedException
,所以我按照指示here保留了地址。
但现在我收到AddressAlreadyInUseException
,因为地址已被保留。
我以管理员身份运行Visual Studio。我已经检查过WAMP服务器正在运行,它是。