I am developing a web server in ASP.NET.
There are 2 web services in it. I have a C++ (unmanaged)
Library whose functions are being called from my C# code
with DLLIMPORT attribute.
Problem:
My C++ library has two functions. Both of them are opening
sockets using Winsock.
One function is opening socket
like
(1)
sockRaw = WSASocket(AF_INET,SOCK_RAW,IPPROTO_ICMP,NULL,0
,WSA_FLAG_OVERLAPPED);
and the other function is
(2)
m_Socket = socket(AF_INET, SOCK_STREAM, 0);
I login to my this site from different machine in same
network domain(LAN). I login with my windows user ID and
password of that system. I am able to login with
administrative rights as well as with user rights. All the
users are of the system where the webserver is running.
My problem is :
When I login with normal user ID password API (1) is
failing, I am not able to debug this code. But it is
failing. Whereas in case of administrator every thing is
working fine.
Or in other word I would say that WSASocket is failing in
to create socket because of insufficient user rights.
This is very strange for me , I don't know how it is
happening so kindly help me or suggest me what I should do.
IIS settings:
I set my Directory security to Basic Authentication.
System:
I am using
WINDOWS 2000 service pack 3
IIS 5.0
Dot net 2002 with Framework 1.1.
Thanks in advance
abhijeet