Temporary ASP.NET Files为什么会在这个目录下生成dll
heize 2005-08-23 07:17:34 public string bizCon(string message)
{
string server="221.176.122.36";
Int32 port = 8811;
try
{
TcpClient client = new TcpClient(server, port);
//client.SendTimeout=30;
//client.ReceiveTimeout=30;
Byte[] data = System.Text.Encoding.ASCII.GetBytes(message);
NetworkStream stream = client.GetStream();
stream.Write(data, 0, data.Length);
data = new Byte[256];
String responseData = String.Empty;
Int32 bytes = stream.Read(data, 0, data.Length);
responseData = System.Text.Encoding.ASCII.GetString(data, 0, bytes);
client.Close();
return responseData;
}
catch (ArgumentNullException e)
{
return e.Message;
}
catch (SocketException e)
{
return e.Message;
}
}
上面是我程序中的一段代码.要向中间件发送socket.可是每次发送,防火墙均弹出.说.net在C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\cc_idc_vs\2ced4321\2613acee这个目录下的dll要访问网络.可是每次dll不一样.我想是dll随机生成的.
怎样解决这个问题?不改变防火墙设置.我问了一个自称.net高手的人(成天到晚很忙,多问两句就不理)说要把.net调成什么正式版.我现在是什么发布版.总之就不会在那个目录下随机生成dll了?是这样吗?
忘高手解答.