Network error a network error occurred

Fix Instagram Error An Unknown Network Error has Occurred – Techanges

Fix Instagram Error An Unknown Network Error has Occurred:  Instagram is the most popular app when it comes to showcasing your photographs on social media. People usually find it a good way to connect with their mates through pics. With this much of popularity, I also thought of joining Instagram. However, I wasn’t fortunate enough to be a part of it in one go. As soon as I tried to log in, I got an error message, “An Unknown Network Error has Occurred“. I searched a bit over web and after working for few hours, I came up with some significant solutions to fix Instagram Error An Unknown Network Error has Occurred.

In the upcoming section, you will be getting few methods to fix Instagram Error An Unknown Network Error has Occurred. You can go through any of them as per your convenience. In case of any issues regarding this error, feel free to reach out to us via comments or contact page.


In this section, you will be getting few methods to fix Instagram Error An Unknown Network Error has Occurred.


Follow the steps given below to set the time and date automatically. This method has helped many to fix Instagram error an unknown network error has occurred.

  • Go to Settings.
  • Tap on Date and Time.


  • Turn on Automatic Date & Time.

  • Now try to Log in to Instagram and check if the error still persists.


Follow the steps given below to clear data and cache for Instagram.

  • Go to Settings.
  • Tap on Installed Apps.


  • Scroll down to select Instagram.

  • Tap on Clear Data and Clear cache.

  • Now try to Log in to Instagram and check if the error still persists.


For a significant number of users, reinstalling Instagram on their devices has really worked well. So if the above two methods did not work out well for you, you can try reinstalling this app.

So these were the few methods to fix Instagram Error An Unknown Network Error has occurred. Among the three methods mentioned above, first two methods have proven to be most successful. So you can start off with these two methods. Hope you liked this article on How to Fix Instagram Error An Unknown Error has Occurred. In case of any issues regarding this, feel free to ask via comments.

Nov 21, 2016Akhil Prajapati

Fix Instagram Error "An Unknown Network Error Has Occurred"

Instagram is the world most popular online photo-sharing social networking app. The app has given a good way to connect with friends and family through photos. It has just taken the world of photo-sharing to whole new level. But sometimes the Instagram shows Errors messages. “An Unknown Network Error Has Occurred” is also one of the errors of Instagram. If you are one of the users who came across this error then you have come to right place. Here, I will let you know some of the methods to Fix Instagram Error “An Unknown Network Error Has Occurred”.

Don’t conclude that you are unable to fix this error just by trying one method. I recommend you to try every method unless you don’t fix the issue. Also, different method have worked for different people

Fix Instagram Error “An Unknown Network Error Has Occurred”

Method 1: Re-start your device

 Sometime just by re-starting your device can solve the issue. So, why not try this once. To re-start your device:

• Unlock the screen of the devices.• Press and hold the “Power” button until a menu appears.• Select “Power off“.• Wait for the device to power off.• Wait 10 seconds, then press and hold the “Power” button to power the device back ON.• After that, try to connect with the app again. It may solve your error problem.

Method 2: Check your Internet Connection

Many of time it has found that the error is caused due to the problem in WiFi. Make sure your internet connection is working properly and has good speed because many users have found that the Error is caused due to slow internet connection. You can also try switching your internet connection from WiFi to Mobile Data and vice-versa, Also try restarting the connection (you can also Turn it OFF and then ON) which has worked for many users. If you are still getting the error try other internet connection to open the app.

Note: If you are connected to Wi-Fi then it is better to restart your router. Just switch off the router for 5 minutes and turn ON back. It should fix the error. (if the issue is associated with Wifi /router)

Method 3:  Clear Cache and data of the app

App cache and data may be corrupted so that we see error. Clearing the cache and data may fix the error. So let’s try clearing the app cache and data. Just follow the step to clear the cache and data.

  •  Go to Setting >> Go to Application Setting (In some devices application setting is named as apps).
  • Go to, All the apps > >Find the Instagram >> Clear Cache and Data
  • Once you have clear everything, Next you need to Force Stop the application.

Clearing Cache and data should fix your issue. If you are still receiving the Error,continue to the next step.

Method 4: Check your Date and Time

In many of the cases it has found that the error is caused due to wrong Date and Time. So, make sure you have the current date and time. Also an additional tip is given below. You can follow that in case your Date and Time is correct.

  • Go to Settings >>Date & Time
  • Enable Automatic Date and Time.

Now, check the app, if you are getting the same error also try below steps.

  • Set the device to manual and set year to 4 years in the future, then open to the app.
  • Once the app opens without Error
  • Go back to time settings and reset to Automatic

Method 5: Update the app

Many of the time the error and other many issue related to the app is fixed in the new/updated version of the app. So, if the update is available you should go for it. Many of the users have fixed their issue just by updating their app.

If there is no update available then you can uninstall and then re-install the app. It should fix your Error.

So, these are some of the methods to Fix Instagram Error “An Unknown Network Error Has Occurred”. Hopefully you have solved the error. Let us know which method worked for you.

Error 0x8007003b: An Unexpected Network Error Occurred Fixed

The Windows error code 0x8007003b a rarely talked about but, has become very familiar. Most computer users who encounter this error happen to be using Windows 8 OS or higher. The


Like with any Windows errors, it is critical that you fix 0x8007003b error as soon as you can. This is because although it is network related, it can cause your computer to start running slow. You may also notice some installed programs not working correctly.

It particularly happens when you try to move a large file, which in most cases is a file of 100MB and above.

The file can start transferring very smoothly only to stop abruptly before the appearance of the error and the accompanying message just like below Picture.

is network related, it can be caused by various factors including factors that related directly to your computer. Some of the main notable reasons include but not limited to;

There is no single solution that solves windows error 0x8007003b. It depends on the particular cause on your computer, which may not necessarily be the same with another person’s computer. You may, therefore, need to try out several solutions before you find

It is crucial to ensure that your computer’s health is in the good state. It is also important to ascertain whether or not your computer has certain limitations.

Note that FAT32 formatting has limitations. In most cases, the format cannot support any installation/file transfer of more than 4GB. If indeed a file you are trying to move (copy) is more than 100MB, you will need to transfer it to parts to overcome the error.

Try to transfer a file you were transferring after these Basic Troubleshooting measures to find out if doing so resolves the error 0x8007003b.
Solution 2: Disable Anti-Virus Program
The installed anti-virus program can cause different errors including error 0x8007003b in windows. Disable it for the period you transfer a file to find out if the error is resolved. Remember to enable it once you are, though.

1. Right-click on the anti-virus program’s icon.2. Select Disable.3. Select how long the program will remain disabled before clicking OK.

In Some Anti-Virus Programs, you need to open it and then disable it. So do the needful and try to transfer the files.

Solution 3: Disable Firewall
The built-in firewall can also interfere with the smooth transfer of a file. Disable it for the period of data transfer to find out if doing so resolves the error.

1. Press the combination of Win + R keys to open the Run window.2. Type “Control Panel” in the window before hitting ENTER.3. Select “System and Security” within the control panel.4. Look for the option “Turn Windows Firewall on or off” on the right pane.5. Select “Turn Windows Firewall Off” just beneath “Home or Work” network location settings.

Disabling Firewall will make sure that it doesn't interrupt while transferring the files over network. If this doesn't work to solve error 0x8007003b, You can skip to next solution.

Solution 4: Run File Check Utility (SFC)
You may encounter error 0x8007003b in case you recently installed a program that may have damaged some of your computer’s system files. Running the built-in SFC utility can easily find and repair any such files.

1. Press the combination of Win + I keys to open up the settings app.

2. Click on “Update and Security”.

3. Click on “Recovery”.

4. Click “Restart Now” just under the advanced startup options.

5. Click on “Troubleshoot”.

6. Click on “Command prompt” to reboot your computer.

7. Enter your username and password once your computer restarts with command prompt. Note that you need to have administrative rights on the computer.

8. Type “wmic logicaldisk get deviceid, (volume name), description. This is important because it informs the SFC utility the location of Windows installation files.

9. Type “sfc/scannow/offbootdir=c:\ /offwindir=D\Windows” before pressing ENTER.

The scan should automatically start to run. Close the prompt once the scan is complete before clicking on “Continue” to go exit and return to Windows.

Try to transfer a file to find out if doing this helps you to fix the error 0x8007003b.

Solution 5: Run Disk Check Utility (CHDSK)
Bad sectors on your computer’s hard disk are a cause of various Windows-related errors including 0x8007003b. You need to run the check for integrity of the hard drive to repair any bad sections on it.

1. Click to open File Explorer.2. Right-click on the hard drive you need to be checked.3. Select “Properties”.4. Click on the “Tools” tab.5. Click on “Check” button.

The utility should begin to run. Click close once the run is complete, and no errors are reported.

Solution 6: Perform System Restore
This solution will work in resolving Windows error 0x8007003b in a case where you had enabled it. This mainly applies if your computer is running on Windows 10 OS, which does not have the feature automatically enabled. Note that you can only access this feature through the control panel in Windows 10 and not through the settings app.

1. Press the combination of Win + R keys to open the Run window.2. Type “Control Panel” in the window before hitting ENTER.3. Click on “System”.4. Click on “System Protection” on the sidebar.5. Click on a past date when your computer without any issues.

Your computer will re-boot automatically. Note that you will lose any programs and updates you may have installed after that date. However, all your files will remain intact. Try to transfer a file to find out if the error is resolved.

Any one of these solutions should address error 0x8007003b on your computer. Note that it will be necessary to perform a fresh installation of the OS should the error persist.

A network error occurred while attempting to read from the file:


I am attempting to install Skype on my laptop. My system has the following specifications:

Windows 7 and 64 bit but installer always providing error message

"exe installer file is corrupt", and installer version 5.1


A network error occurred while attempting to read from the file: C:UsershouseAppDataLocalMicrosoftWindowsTemporary Internet FilesContent IE5FPA0QDGYSkype.msi

A network error occurred while attempting to read from the file:

Hi James,

You can try the procedure outlined here to install a new version of Skype without using an installer program:

Community skype com t5 Windows desktop

Skype com en download

I would also advise you to make a copy of your currently installed Skype.exe file, just in case that you regret the update.


Pamela Conley


A network error occurred while attempting to read from the file:


I have also faced this problem. Sometimes it can happen due to the antivirus program.

You need to disable your antivirus software first, then try to install Skype again,

Clearing all the browser cookies will also help.  In Internet Explorer go to "tools" and then "internet options" and then click on "Settings". Here you will see the "view files" button. Click on it and delete all files.

Now try to install Skype again. Remember, after you have deleted cookies in Internet Explorer, don’t open any other browser.

This error can also occur due to your graphics driver. At one point, Skype did not support the new version NVIDIA graphics driver.

You need to install this driver and then try to install Skype again.

It should work now.

Good Luck !

A network error occurred while attempting to read from the file:


Indeed your installed Skype program is corrupt or some files are corrupt.

I will therefore solve your problem by giving you a site where you can obtain a new Skype setup program.

The following is the link or alternative go to the this website


Answered By josiel25 0 points N/A #134637

A network error occurred while attempting to read from the file:


The version of your Skype is not compatible on your operating system which is windows 7.

Try to install another version of Skype.

A network error occurred while attempting to read from the file:

Hello James,

Please make sure you login as an administrator before installing any software's as the system admin might have set constraints on installing and uninstalling software's.

It seems that the software package you are trying to install is corrupted or has some files missing from it.

Download fresh latest copy of the Skype software package from following website and it is for free,

And try installing it again.

Please follow all instructions properly.

Even if it doesn't work, restart your system and make sure your antivirus software is not blocking new softwares from installing on the system.

Hope it solves your problem and enjoy Skype.


A network error occurred while attempting to read from the file:

Skype is a magnificent technology that allows people with a computer, internet connection and microphone to call others on their phone from their computer. Techyv has a post where you can see many Skype error as well solutions which will be helpful for you.

Guide to solving common errors/issues Skype users may face

Case sesitivity of URLs

Case sesitivity of URLs

Note: Softpanorama site uses case sensitive URLs


Domain names are case insensitive according to RFC 4343. The rest of URL is sent to the server via the GET method. This may be case sensitive or not. Sites that are hosted on Windows tend to be case insensitive as the underlying file system is case insensitive. Sites hosted on Unix type systems tend to be case sensitive as their underlying file systems are typically case sensitive. The host name part of the URL is always case insensitive, it's the rest of the path that varies.

Traditionally Web sites which use apache server have case sensitive URLs. In such sites there may be URLs, or parts of URLs, where case doesn't matter (that can be achieved via softlinks), but identifying these may not be easy. Users should always consider that URLs are case-sensitive. Looks like starting around Apache 2.1/2.2, there is a directive  "CheckCaseOnly on" was introduced could turn off the "spelling" feature and leave only the case feature active.  A side effect is this could possibly help us do #1 by detecting those URL's that are bad, assuming it logs those cases where it got activated.

This W3 guideline is reasonable. It simply states that one shouldn't make an assumption on how the server handles the URL you are submitting. It is up to the server how to handle the request URL. Most of web servers are unix/linux and that means most of web servers are case sensitive.  You can mount you Web site a SAMBA share.  Since SAMBA files are case-insensitive, a request from Apache for a file would succeed regardless of the case.

You can however to implement case insensitivity in Apache by using 'CheckSpelling On' from mod_speling. It is also possible  to convert URL to lower case via mod rewrite:

RewriteEngine on rewritemap lowercase int:tolower RewriteCond $1 [A-Z] RewriteRule ^/(.*)$ /${lowercase:$1} [R=301,L]

On the other hand, Wikipedia is case sensitive except the first character of the title. The URLs and leads to the same article, but returns 404.

Universal Resource Locators (URLs)

Every resource available on the Web --- HTML document, image, video clip, program, etc. --- has an address that may be encoded by a Universal Resource Locator, or "URL" (defined in [RFC1738]).

URLs typically consist of three pieces:

  1. The name of the protocol used to transfer the resource over the Web.
  2. The name of the machine hosting the resource.
  3. The name of the resource itself, given as a path.

Consider the URL that designates the current HTML specification:

This URL may be read as follows: Use the HTTP protocol to transfer the data residing on the machine in the file /TR/WD-html4/cover.html

URLs in general are case-sensitive (with the exception of machine names). There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive. /u

The character set of URLs that appear in HTML is specified in [RFC1738].

Fragment URLs

The URL specification en vigeur at the writing of this document ([RFC1738]) offers a mechanism to refer to a resource, but not to a location within a resource. The Web community has adopted a convention called "fragment URLs" to refer to anchors within an HTML document. A fragment URL ends with "#" followed by an anchor identifier. For instance, here is a fragment URL pointing to an anchor named section_2:

Relative URLs

A relative URL (defined in [RFC1808]) doesn't contain any protocol or machine information, and its path generally refers to an HTML document on the same machine as the current document. Relative URLs may contain relative path components (".." means the parent location) and may be fragment URLs.

Relative URLs may be resolved to full URLs, for example when the user attempts to follow a link from one document to another. [RFC1808] defines the normative algorithm for resolving relative URLs. The following description is for convenience only.

Briefly, a full URL is derived from a relative URL by attaching a "base" part to the relative URL. The base part is a URL that may come from any or all of the following sources:

  • HTTP transfer protocol header information (see [RFC2068]).
  • Metadata (the META element) in the HEAD section of an HTML document.
  • Explicit base path information (the BASE element) in the HEAD section of an HTML document, or the CODEBASE attribute of the APPLET element.

[RFC1808] specifies the precedence among multiple sources of base information. For the purposes of this explanation, the last piece of base information takes precedence over the others and HTTP headers are considered to occur earlier than the document HEAD.

If no explicit base information accompanies the document, the base URL is that which designates the location of the current document.

Given a base URL and a relative URL (that does not begin with a slash), a full URL is derived as follows:

  • If the base URL ends with a slash the full URL is derived by appending the relative URL to the base URL. For example, if the base URL is and the relative URL is gee.html, the derived URL is
  • If the base URL doesn't end with a slash, the last piece of the base URL is considered a resource, so the full URL is derived by appending the relative URL to the parent of the base URL. For example, if the base URL is and the relative URL is gee.html, the derived URL is


In HTML, URLs play a role in these situations:

  • When referring to metadata describing a document (see the HEAD element).
  • When citing a external reference (see the Q, BLOCKQUOTE, INS, and DEL elements).
  • When including an object directly in a document (see the OBJECT, IMG, MAP, FRAME, and IFRAME elements).
  • When linking to another document or program (see the BASE, A, LINK, AREA, FORM, INPUT, SCRIPT, and APPLET elements).

In each case, authors may use a full URL, a fragment URL, or a relative URL. Please consult the section on anchors for more information about links and URLs.


In addition to HTTP URLs, authors might want to include MAILTO URLs (see [RFC1738]) in their documents. MAILTO URLs cause email to be sent to some email address. For instance, the author might create a link that, when activated, causes the user agent to open a mail program with the destination address in the "To:" field.

MAILTO URLs have the following syntax:


User agents may support MAILTO URL extensions that are not yet Internet standards (e.g., appending subject information to a URL with the syntax "?Subject=my%20subject" where any space characters are replaced by "%20").

Softpanorama hot topic of the month

Softpanorama Recommended

Top articles


Top articles


Case sensitivity - Wikipedia, the free encyclopedia

Should URL be case sensitive - Stack Overflow

google - Should URL paths be case sensitive - Webmasters Stack Exchange

... section 2.7.3

The scheme and host are case-insensitive and normally provided in lowercase; all other components are compared in a case-sensitive manner.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available in our efforts to advance understanding of environmental, political, human rights, economic, democracy, scientific, and social justice issues, etc. We believe this constitutes a 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit exclusivly for research and educational purposes.   If you wish to use copyrighted material from this site for purposes of your own that go beyond 'fair use', you must obtain permission from the copyright owner. 

ABUSE: IPs or network segments from which we detect a stream of probes might be blocked for no less then 90 days. Multiple types of probes increase this period.  


Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers :   Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism  : The Iron Law of Oligarchy : Libertarian Philosophy


War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda  : SE quotes : Language Design and Programming Quotes : Random IT-related quotes :  Somerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose Bierce :  Bernard Shaw : Mark Twain Quotes


Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 :  Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method  : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law


Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds  : Larry Wall  : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOS :  Programming Languages History : PL/1 : Simula 67 : C : History of GCC development :  Scripting Languages : Perl history   : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history

Classic books:

The Peter Principle : Parkinson Law : 1984 : The Mythical Man-Month :  How to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Haters Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite

Most popular humor pages:

Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor

The Last but not Least

Copyright 1996-2016 by Dr. Nikolai Bezroukov. was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License.

The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.

Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.

This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...


The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.

Last modified: September, 12, 2017

"A network-related or instance-specific error occurred"

Lansweeper data, reports and settings are stored in a database, which is hosted in either SQL Compact or SQL Server. If you install Lansweeper under SQL Server, by performing an Advanced Install, and the connection to your SQL Server installation is lost at some point, you may encounter errors like the ones below.

The errors below indicate that Lansweeper is unable to locate the SQL Server instance hosting your Lansweeper database. It's important to note that this does not point to database corruption or an issue with the database itself. Though there are many possible causes for a loss of SQL connectivity, below are some troubleshooting steps you can try to resolve the issue. Some of these steps must be performed within SQL Server Management Studio. If SQL Server Management Studio was not installed along with your SQL Server instance, we recommend downloading it online. (You will need to perform a search for the Management Studio that’s compatible with your particular edition and version of SQL Server.)

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.

Sqlcmd: Error: Microsoft SQL Native Client: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.

Do the following:

  1. Stop the Lansweeper Server service in Windows Services
  2. Stop your web server service in Windows Services. Your web server service is either World Wide Web Publishing Service (IIS) or IIS Express.
  3. Make sure your Data Source (SQL instance name) is correctly submitted in *both* of the configuration files below, found on the servers hosting your Lansweeper Server service and web console. The first config file is used by the Lansweeper service, the second by the web console. Open the files with Notepad or another text editor, perform a search for connectionString and make sure the instance name submitted in your connection string matches what you see in SQL Server Management Studio.

    Program Files (x86)\Lansweeper\Service\Lansweeperservice.exe.config

    Program Files (x86)\Lansweeper\Website\web.config

    - Make sure DNS is up-to-date and your database server's NetBIOS name resolves to an IP address. In the example above, the database connection will fail if DELPHINE cannot be successfully pinged from Command Prompt on the servers hosting the Lansweeper Server service and web console.

    - Within your Lansweeper configuration files you can replace your database server's NetBIOS name with its IP address, e.g.\SQLEXPRESS. This may not be a good idea in DHCP enabled networks however, as IP changes will break the database connection.

    - If (and only if) your Lansweeper Server service and web console are hosted on the same machine as the Lansweeper database, you can replace your database server's NetBIOS name with localhost, e.g. localhost\SQLEXPRESS.

  4. Make sure the SQL Server and SQL Server Browser services are running at all times on the server hosting your SQL instance.

    - Right-click one of the services in Windows Services.

    - Select the Properties menu item.

    - Set the service's startup type to Automatic in the resulting popup and hit OK.

    - Right-click the service and select Start, if the service is not already started.

  5. Make sure your SQL instance is configured for mixed (Windows and SQL) authentication, as the Lansweeper service and web console use a SQL user called lansweeperuser to connect to the database.

    - Right-click your SQL instance name in SQL Server Management Studio.

    - Select the Properties menu item.

    - Select the Security tab in the resulting popup.

    - Tick SQL Server and Windows Authentication mode

    - Right-click your SQL instance name and select Restart.

  6. If your Lansweeper service and/or web console are hosted on a different server than the Lansweeper database, make sure your SQL instance is set up to allow remote database connections.

    - Right-click your SQL instance name in SQL Server Management Studio, select Properties and open the Connections tab in the resulting popup.

    - Tick Allow remote connections to this server

    - Open SQL Server Configuration Manager and select the Protocols item under SQL Server Network Configuration. There should be a shortcut to SQL Server Configuration Manager in your Start menu.

    - Right-click Named Pipes and select Enable, right-click TCP/IP and select Enable.

    - Right-click TCP/IP, select Properties and ensure that connectivity is enabled for the appropriate IPs in the IP Addresses tab.

    - Right-click the SQL Server service under SQL Server Services and select Restart.

    - For SQL Server 2005, additional steps may be required to allow remote database connections. More information on allowing remote connections under SQL Server 2005 can be found in this Microsoft knowledge base article.
  7. If your Lansweeper service and/or web console are hosted on a different server than the Lansweeper database, make sure SQL Server traffic is allowed through your firewall(s). TCP port 1433 is the most basic port used by SQL Server, though other ports are sometimes used as well. More info on allowing SQL Server traffic through firewalls can be found in this Microsoft knowledge base article.
  8. Restart the Lansweeper and web server services in Windows Services.

Смотрите также