.NET proccess失败与Windows DNS查找7 [英] .NET proccess failing DNS lookup with Windows 7

查看:179
本文介绍了.NET proccess失败与Windows DNS查找7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Windows 7,该应用程序在XP下正常工作。失败的DNS查找(System.Net.Dns.GetHostEntry)应用程序

I have an application that is failing DNS lookup (System.Net.Dns.GetHostEntry) under windows 7. This application works fine under XP.

而产生的错误套接字错误code 11003:

The error being generated is socket error code 11003:

WSANO_RECOVERY   11003
  这是一个不可恢复的错误。       这表明,某种不可恢复的错误的数据库查找过程中发生的。这可能是因为在数据库文件(例如,BSD兼容主机,服务或协议文件)找不到,或者一个DNS请求,与严重错误返回的服务器

WSANO_RECOVERY 11003
This is a nonrecoverable error. This indicates that some sort of nonrecoverable error occurred during a database lookup. This may be because the database files (for example, BSD-compatible HOSTS, SERVICES, or PROTOCOLS files) could not be found, or a DNS request was returned by the server with a severe error.

什么是特别有趣的是,这个过程是直接从网络共享上运行。如果我在本地运行的Win 7下正常工作。

What is particularly interesting, is that this process is running directly from a network share. If I run it locally under Win 7, it works fine.

我已经给在所有版本caspol的网络位置完全信任(32比特及64位)。

I have given the network location full trust under all versions of caspol (32 bit & 64bit).

是否有任何其他.NET或Windows 7的安全性通过从网络共享位置运行的进程设置了prevents DNS查找?

Is there any other .NET or Windows 7 security setting that prevents DNS lookups by processes running from network shared locations?

推荐答案

原来,这个 caspol。

Turns out this was caspol.

不过,在Windows 7上,Administrators组中摆明了是不够的。

But on Windows 7, just being in the Administrators group is not enough.

您还可以右键点击.NET命令提示符快捷方式并选择以管理员身份运行,以绕过UAC。

You also have to right click the .NET Command Prompt shortcut and pick "Run as Administrator" to bypass UAC.

然后正常caspol命令会工作。

Then normal caspol commands will work.

这篇关于.NET proccess失败与Windows DNS查找7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆