Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET process failing DNS lookup with Windows 7

Tags:

.net

windows-7

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

The error being generated is socket error code 11003:

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.

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.

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

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

like image 787
Gus Paul Avatar asked Dec 06 '10 16:12

Gus Paul


1 Answers

Turns out this was caspol.

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

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

Then normal caspol commands will work.

like image 130
Gus Paul Avatar answered Nov 05 '22 17:11

Gus Paul