Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Microsoft VBScript runtime error '800a0046'

$
0
0

Hello All,

I write a simple code to check the ADODB.Connection. but it's giving below error.

This page was last refreshed on 9/1/2015 3:00:57 PM,
LOGON_USER:
Creating ADODB.COnnection object.

Microsoft VBScript runtime error '800a0046'

Permission denied: 'CreateObject'

/Test1.asp, line 9

====================================================================================

CODE:

<HTML>
<BODY>
This page was last refreshed on <%= now() %>, <br>

<%
Response.Write("LOGON_USER: " & _
Request.ServerVariables("LOGON_USER") & "<br>")
Response.write("Creating ADODB.COnnection object." & "<br>")
Set oScriptHelper = CreateObject("ADODB.Connection")
Response.Write ("SUCCESSFUL!" & "<br>")
set oScriptHelper = nothing
%>

</BODY>
</HTML>

==============================================================================

I given full permission on folder to IUser_ComputerName but same error is coming. I used process monitor to check if I can find access denied error but there is no access denied error. Also when I changed the application pool identity to "LocalSystem" , It's working but when I changed its identity to "NetworkService" or "DefultApplicationPool" , Its not working.

OS: Windows 2008 R2

Please help.

Thanks.


Viewing all articles
Browse latest Browse all 488

Trending Articles