The specified network name is no longer available
Environment
Platform - VC 2005, Window server 2003
Hi,
We have developed multithreaded service application which can run 24x7. I
have used two machines to run test. First machine (M1) on which service is
running.
Second machine (M2) on which Microsoft Access Database and half million text
file are placed. More than 20GB of disk space are available on both
machines.
Using API GetFileAttributes() to check directory is present on network
machine or not.
More than one thread from Machine(M1) checks for a directory is present on
machine(M2) or not.
This process is working for 30 to 60 minuts. After that program is returning
error "The specified network name is no longer available" when try to check
perticular directory is exist on network machine.
Calling CoInitializeEx(NULL,COINIT_MULTITHREADED) and CoUninitialize() when
thread start and end respectively.
It will be great help if I get response from someone to fix error "The
specified network name is no longer available" occurred during call of API
GetFileAttributes().
Thanks in advance,
vijay
Re: The specified network name is no longer available
I would start by verifying that the server where you are seeing this message
has the correct DNS entries for Primary and Alternate DNS servers. These
should be DNS servers in your AD domain.
hth
DDS
"vijay singh" <vijaysingh@abosoftware.com> wrote in message
news:%233x8CQvWJHA.868@TK2MSFTNGP06.phx.gbl...
> Environment
>
> Platform - VC 2005, Window server 2003
>
>
> Hi,
>
> We have developed multithreaded service application which can run 24x7. I
> have used two machines to run test. First machine (M1) on which service is
> running.
>
> Second machine (M2) on which Microsoft Access Database and half million
> text
> file are placed. More than 20GB of disk space are available on both
> machines.
>
> Using API GetFileAttributes() to check directory is present on network
> machine or not.
>
>
>
> More than one thread from Machine(M1) checks for a directory is present on
> machine(M2) or not.
>
>
>
> This process is working for 30 to 60 minuts. After that program is
> returning error "The specified network name is no longer available" when
> try to check perticular directory is exist on network machine.
>
>
>
>
>
> Calling CoInitializeEx(NULL,COINIT_MULTITHREADED) and CoUninitialize()
> when
> thread start and end respectively.
>
>
> It will be great help if I get response from someone to fix error "The
> specified network name is no longer available" occurred during call of API
> GetFileAttributes().
>
>
>
>
> Thanks in advance,
> vijay
>
>
Re: The specified network name is no longer available
Hi Danny,
I am fecing this problem from last one week. Earlier it was working fine.
Problem appear some time after 5-6 hours. Network connection get restore
within a minute.
I want to mention one more thing here that program use ms-access database
placed on network machine. Just I want to know is access database is helping
to break network connection. I have noticed the sequence of errors reported
by program is "The specified network name is no longer available" - when try
execute GetFileAttributes() and then program report error "Disk or network
error". This error is related to access database.
When program restore access database connection program works fine for few
hours. Please suggest me if you have any idea to fix issue.
Thanks,
Vijay
"Danny Sanders" <DSanders@NOSPAMciber.com> wrote in message
news:OdGGTWvWJHA.3808@TK2MSFTNGP05.phx.gbl...
>I would start by verifying that the server where you are seeing this
>message has the correct DNS entries for Primary and Alternate DNS servers.
>These should be DNS servers in your AD domain.
>
> hth
> DDS
>
>
>
> "vijay singh" <vijaysingh@abosoftware.com> wrote in message
> news:%233x8CQvWJHA.868@TK2MSFTNGP06.phx.gbl...
>> Environment
>>
>> Platform - VC 2005, Window server 2003
>>
>>
>> Hi,
>>
>> We have developed multithreaded service application which can run 24x7. I
>> have used two machines to run test. First machine (M1) on which service
>> is
>> running.
>>
>> Second machine (M2) on which Microsoft Access Database and half million
>> text
>> file are placed. More than 20GB of disk space are available on both
>> machines.
>>
>> Using API GetFileAttributes() to check directory is present on network
>> machine or not.
>>
>>
>>
>> More than one thread from Machine(M1) checks for a directory is present
>> on machine(M2) or not.
>>
>>
>>
>> This process is working for 30 to 60 minuts. After that program is
>> returning error "The specified network name is no longer available" when
>> try to check perticular directory is exist on network machine.
>>
>>
>>
>>
>>
>> Calling CoInitializeEx(NULL,COINIT_MULTITHREADED) and CoUninitialize()
>> when
>> thread start and end respectively.
>>
>>
>> It will be great help if I get response from someone to fix error "The
>> specified network name is no longer available" occurred during call of
>> API GetFileAttributes().
>>
>>
>>
>>
>> Thanks in advance,
>> vijay
>>
>>
>
>
Re: The specified network name is no longer available
> placed on network machine. Just I want to know is access database is
> helping to break network connection.
No Access works just fine over the network.
The specified network name is no longer available" - when try
> execute GetFileAttributes() and then program report error "Disk or network
> error". This error is related to access database.
>
> When program restore access database connection program works fine for few
> hours. Please suggest me if you have any idea to fix issue.
I have seen this error and the disconnect when the computer has the wrong
entry on it for the Alternate DNS server.
> hours. Please suggest me if you have any idea to fix issue.
From my first post:
>>I would start by verifying that the server where you are seeing this
>>message has the correct DNS entries for Primary and Alternate DNS servers.
>>These should be DNS servers in your AD domain.
hth
DDS
"vijay singh" <vijaysingh@abosoftware.com> wrote in message
news:%23NWAxI5WJHA.4852@TK2MSFTNGP04.phx.gbl...
> Hi Danny,
>
> I am fecing this problem from last one week. Earlier it was working fine.
> Problem appear some time after 5-6 hours. Network connection get restore
> within a minute.
>
> I want to mention one more thing here that program use ms-access database
> placed on network machine. Just I want to know is access database is
> helping to break network connection. I have noticed the sequence of errors
> reported by program is "The specified network name is no longer
> available" - when try execute GetFileAttributes() and then program report
> error "Disk or network error". This error is related to access database.
>
> When program restore access database connection program works fine for few
> hours. Please suggest me if you have any idea to fix issue.
>
> Thanks,
>
> Vijay
>
> "Danny Sanders" <DSanders@NOSPAMciber.com> wrote in message
> news:OdGGTWvWJHA.3808@TK2MSFTNGP05.phx.gbl...
>>I would start by verifying that the server where you are seeing this
>>message has the correct DNS entries for Primary and Alternate DNS servers.
>>These should be DNS servers in your AD domain.
>>
>> hth
>> DDS
>>
>>
>>
>> "vijay singh" <vijaysingh@abosoftware.com> wrote in message
>> news:%233x8CQvWJHA.868@TK2MSFTNGP06.phx.gbl...
>>> Environment
>>>
>>> Platform - VC 2005, Window server 2003
>>>
>>>
>>> Hi,
>>>
>>> We have developed multithreaded service application which can run 24x7.
>>> I
>>> have used two machines to run test. First machine (M1) on which service
>>> is
>>> running.
>>>
>>> Second machine (M2) on which Microsoft Access Database and half million
>>> text
>>> file are placed. More than 20GB of disk space are available on both
>>> machines.
>>>
>>> Using API GetFileAttributes() to check directory is present on network
>>> machine or not.
>>>
>>>
>>>
>>> More than one thread from Machine(M1) checks for a directory is present
>>> on machine(M2) or not.
>>>
>>>
>>>
>>> This process is working for 30 to 60 minuts. After that program is
>>> returning error "The specified network name is no longer available" when
>>> try to check perticular directory is exist on network machine.
>>>
>>>
>>>
>>>
>>>
>>> Calling CoInitializeEx(NULL,COINIT_MULTITHREADED) and CoUninitialize()
>>> when
>>> thread start and end respectively.
>>>
>>>
>>> It will be great help if I get response from someone to fix error "The
>>> specified network name is no longer available" occurred during call of
>>> API GetFileAttributes().
>>>
>>>
>>>
>>>
>>> Thanks in advance,
>>> vijay
>>>
>>>
>>
>>
>
>