127.0.0.1 can not be accessed, 0x800A0046 does not have permission: GetObject

  
Generally, when we debug ASP dynamic web page locally, you can enter



http://localhost
http://Local computer name
http://127.0.0.1



When entering http://127.0.0.1, the general machine needs to enter the user name and password to enter, here will be divided two cases:


just the new one is IIS, in order to test IIS, so in this case access that is iisstart.asp under the "system tray \\ Inetpub \\ wwwroot", along with Iisstart.asp jumps to localstart.asp and opens iishelp at the same time. "localhost", "computer name" are all fine, but when you enter 127.0.0.1, a dialog box pops up, you need to enter the account and password.



The second case is
, a virtual directory is created, which can be accessed through "localhost+virtual directory" and "computer name+virtual directory", which is also " 127.0.0.1+Virtual Directory" cannot be accessed. Although



with the same symptoms, but it is a different situation.

First, let's throw the first general tips: To make input http://127.0.0.1 access, either direct access or virtual directory, you must ensure that the "anonymous access" to open .


So now you can quickly solve the problem of the second case, as shown in the following figure: Open IIS, right click on the "Default Site", pop-up menu select "Properties", open the panel, select " "Table of Content Security" is "edited". At this time, if "Anonymous Access" is not checked before, select "Check" to solve this problem.

access at this time "127.0.0.1+ virtual directory" The second has been resolved



But the problem, people experience relatively small, and it is so simple It’s not a bad thing to check the simple one, and then look down.

at this time, although there is no single test requirements 127.0.0.1 password entry dialog, but new problems have emerged, too, now enter http: //The same is so wrong localhost, which is a lot Feedback:



Error Type:
Microsoft VBScript Runtime Error (0x800A0046)
No permissions: 'GetObject'
/localstart.asp, Line 40





So stop here now, analyze the reason

start without "anonymous access", need to provide account password; now have "Anonymous access", there was an error. note! This is for direct 127.0.0.1 access.

then the "anonymous access" is to provide account and password, which makes the "127.0.0.1+ virtual directory," the problem is resolved, of course, to solve some problems directly "127.0.0.1" access (no Account password)

Description This "anonymous account" is useful.

But now to solve this new problem: Microsoft VBScript runtime error (0x800A0046) No permissions: 'GetObject'


The usual method is: separate Cancel "anonymous access" to "iisstart.asp" and "localstart.asp"

and so on, and then look good, I did not type typo

to solve "(0x800A0046) No permission: ' The scheme of GetObject'" is Single
"Cancel these two files
"Anonymous access"

Specific operation flow: Select "localstart.asp" in IIS "File, right click, pop-up menu select "Properties", open the panel, select "File Security" for "Edit", cancel the "Anonymous Access" access before the selection.



The same operation process is repeated for "iisstart.asp".

So now "http://localhost" is already accessible, and the Microsoft VBScript runtime error (0x800A0046) is resolved without permission: 'GetObject'
.

this, again under analysis:

1, to make access to 127.0.0.1 must set the "anonymous access"
2, to make "iisstart.asp" and "localstart .asp" can be accessed normally, it is necessary to set it separately to cancel "anonymous access"

After the above settings, localhost, localhost+ virtual directory, 127.0.0.1+ virtual directory can be accessed normally, leaving a separate 127.0.0.1 access situation, the above analysis seems to be contradictory

Well, look at this "anonymous access" in the end is what?

The username is "BLUECOM\\IUSR_BLUECOM" and the password is controlled by IIS. "BLUECOM" is the "computer name" of my machine, and everyone is different. Then "IUSR_BLUECOM" is the "IUSR_computer name". What

the "IUSR_ computer name" is? It is an "Internet Guest Account" and "built-in IIS anonymous access account," he belongs to

"Guests" group This goes back to when using this account, localhost will display "( 0x800A0046) No permissions", this seems a bit related.



So, my ultimate perfect solution is to use "anonymous access" to ensure that all pages can be accessed without a password input box, and at the same time, "anonymous access" "The account is replaced, instead of using the "IUSR_computer name" account, I use my XP administrator login account.

so heavy head continue to adjust, open the IIS, in the "default site" on the right, the pop-up menu, select "Properties" to open the panel, select "Directory security" were:

1, "Edit"
2, "Browse" user
3, "Advanced"
4, "Query" user
5, "Select" native XP login user name
6, "OK", has been "OK" to the last




in addition, it is important at the time of the update is to select "inherit cover" two files "iisstart.asp" and "localstart. Asp", otherwise you need to add the "anonymous access" of these two files separately, and the added account is the XP login account just set.
Copyright © Windows knowledge All Rights Reserved