Results 1 to 9 of 9

Thread: Network BIOS

  1. #1

    Thread Starter
    Hyperactive Member Greyskull's Avatar
    Join Date
    Dec 2003
    Location
    somewhere in England
    Posts
    382

    Network BIOS

    Good morning Guys,

    Not sure if this is the best place in the forum to put this on but here goes..

    The application that I've written seems to keep showing the below error:

    Code:
    The network BIOS command limit has been reached
    
    System.ComponentModel.Win32Exception: The network BIOS command limit has been reached
    Bit of background:

    Application contains some filewatchers watching a network directory and is looking for created events.

    Application is written in C# and is running on a 64Bit machine running Windows 7 Professional with .Net Framework 4.

    Network it connects to is a 32Bit Windows 2003 Server.

    We have edited a registry setting already on the server the MaxCmds and MaxCpts values but still getting it. Seems to get it at random times but of late it just seems to get worse.

    Any ideas on this?

    Thanks
    Please go to the Thread Tools menu and click Mark Thread Resolved when your post is answered
    If someone helped you today then please consider rating their post.

  2. #2
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Network BIOS

    Are you using the FileSystemWatcher?
    Delete it. They just clutter threads anyway.

  3. #3

    Thread Starter
    Hyperactive Member Greyskull's Avatar
    Join Date
    Dec 2003
    Location
    somewhere in England
    Posts
    382

    Re: Network BIOS

    Yes I am.
    Please go to the Thread Tools menu and click Mark Thread Resolved when your post is answered
    If someone helped you today then please consider rating their post.

  4. #4
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Network BIOS

    At what statement do you get the error?
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  5. #5

    Thread Starter
    Hyperactive Member Greyskull's Avatar
    Join Date
    Dec 2003
    Location
    somewhere in England
    Posts
    382

    Re: Network BIOS

    I only get it at run time...can't seem to get it when I'm debugging..

    The error is being chucked at by the ErrorEventHandlers attached to the filewatcher. I've got a script on there to destroy the filewatcher again before recreating it but there seems to be occasions when the app takes a long while before the filewatcher goes alive.
    Please go to the Thread Tools menu and click Mark Thread Resolved when your post is answered
    If someone helped you today then please consider rating their post.

  6. #6
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Network BIOS

    Is there any specific reason you are recreating the filewatcher?
    And how occasionally does that happen?
    Delete it. They just clutter threads anyway.

  7. #7

    Thread Starter
    Hyperactive Member Greyskull's Avatar
    Join Date
    Dec 2003
    Location
    somewhere in England
    Posts
    382

    Re: Network BIOS

    No specific reason to recreate the filewatcher other than I had this theory that the network connection drops out every now and then so recreating the filewatcher was best suited because i have noticed that occasionally, before I've added the recreation of FWs, FWs just seem to ignore newly created files until app restart.

    Network BIOS error has been happening almost daily (at most) recently, before Christmas.

    I really am confused as to why this is all happening as the filewatcher has been installed for at least 2 years and I know I've done a couple of upgrades to the app along the way but it was like at least a year ago since the app had been modified. :S
    Please go to the Thread Tools menu and click Mark Thread Resolved when your post is answered
    If someone helped you today then please consider rating their post.

  8. #8
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Network BIOS

    But at what frequency do you recreate the FW?
    Is it at a fixed rate, or do you recreate when the connection drops?
    Delete it. They just clutter threads anyway.

  9. #9

    Thread Starter
    Hyperactive Member Greyskull's Avatar
    Join Date
    Dec 2003
    Location
    somewhere in England
    Posts
    382

    Re: Network BIOS

    I recreate it whenever the fw triggers the ErrorHandler event.

    If it helps, here is an extract code of one of my filewatchers

    Code:
    void fswJetForm_Error(Object sender, ErrorEventArgs e)
            {
                Exception mainEx = e.GetException();
    
                this.FormExceptions(mainEx, "JetForm Filewatcher");
    
                _fswJetform.Dispose();
    
                _fswJetform = new FileSystemWatcher();
    
                while (!_fswJetform.EnableRaisingEvents)
                {
                    try
                    {
                        if (!Directory.Exists(_strJetFormLocation))
                            Directory.CreateDirectory(_strJetFormLocation);
    
                        this._fswJetform.SynchronizingObject = this;
    
                        this._fswJetform.Path = _strJetFormLocation;
                        this._fswJetform.Filter = "RDI_*.txt";
    
                        this._fswJetform.Created +=
                            new FileSystemEventHandler(fswJetForm_Created);
                        this._fswJetform.Error +=
                            new ErrorEventHandler(fswJetForm_Error);
    
                        this._fswJetform.EnableRaisingEvents = true;
                    }
                    catch
                    { Thread.Sleep(5000); }
                }
    
                this.lstLog.Items.Add("JetForm filewatcher back online @: " + 
                    DateTime.Now.ToString("dd-MM-yyyy HH:mm"));
            }
    Please go to the Thread Tools menu and click Mark Thread Resolved when your post is answered
    If someone helped you today then please consider rating their post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width