|
Home > Archive > IIS Server > August 2005 > Problem with ASP Pages
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problem with ASP Pages
|
|
| Michel 2005-08-29, 5:59 pm |
| Hi, i'm having a problem when i try to request asp pages to my web server..
It was working fin, but in the sudden it stopped working fine, so, i don't
know what to do, in the ASP code errors are alway related to sripting, in
the browser i got this error, 500, internal error, for exapmple:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/shop/includes/config.asp, line 199
800401f3
I don't know if it is realted to permissions... or a patch applied..
Any help?
Thanx in advanced.
Michel
| |
| Chris Crowe [MVP] 2005-08-29, 5:59 pm |
| I beleive that this error means that the "Class String" could not be found.
For example
if your code as
set conn = server.createobject("addb.Connection")
You will get this error
since it should be "adodb.connection"
Maybe re-run
regsvr32 "filename.dll" if it is a custom DLL, or check the COM+ package
settings if it is registered that way.
What object are you trying to create in your code at line 199?
It could also be a permissions problems. Can you create the DLL by creating
a simple vb script and running it as yourself on the server?
eg:
' Top of script
dim X
set X = createobject("MyObject.MyClass")
WScript.echo "All ok"
' Bottom of script
Save it as test.vbs
open a cmd.exe prompt
enter "cscript test.vbs"
Note: If your code in asp uses Server.CreateObject() change it to
CreateObject in the VBScript sample.
--
Cheers
Chris
Chris Crowe [IIS MVP]
http://blog.crowe.co.nz
"Michel" <NoSp@m.com> wrote in message
news:O2Sk5mNrFHA.1032@TK2MSFTNGP12.phx.gbl...
> Hi, i'm having a problem when i try to request asp pages to my web
> server..
> It was working fin, but in the sudden it stopped working fine, so, i
> don't know what to do, in the ASP code errors are alway related to
> sripting, in the browser i got this error, 500, internal error, for
> exapmple:
>
> Server object error 'ASP 0177 : 800401f3'
> Server.CreateObject Failed
>
> /shop/includes/config.asp, line 199
>
> 800401f3
>
>
>
> I don't know if it is realted to permissions... or a patch applied..
>
> Any help?
>
> Thanx in advanced.
>
> Michel
>
>
| |
| Michel 2005-08-29, 5:59 pm |
| Thanks,
The error is not for a custom DLL. It is for a generic VB object. I am
having trouble in 2 cases.
1. For a Server.CreateObject("Scripting.Dictionary")
2. For a simple file system object.
I have already tried registering scrrun.dll with regsvr32, but no luck. I
have rebooted, checked permissions for IUSR, Everyone, Network Service, etc.
We are running IIS 6.
I read something about re-installing VBScripting Engine, but I am not sure
how useful that will be.
Let me know your thoughts.
Thanks.
Michel
"Chris Crowe [MVP]" <IISMVP2005@iisfaq.homeip.net> wrote in message
news:uT1mKzNrFHA.1684@TK2MSFTNGP14.phx.gbl...
>I beleive that this error means that the "Class String" could not be found.
>
> For example
>
> if your code as
>
> set conn = server.createobject("addb.Connection")
>
> You will get this error
>
> since it should be "adodb.connection"
>
> Maybe re-run
>
> regsvr32 "filename.dll" if it is a custom DLL, or check the COM+ package
> settings if it is registered that way.
>
> What object are you trying to create in your code at line 199?
>
> It could also be a permissions problems. Can you create the DLL by
> creating a simple vb script and running it as yourself on the server?
>
> eg:
>
> ' Top of script
> dim X
>
> set X = createobject("MyObject.MyClass")
> WScript.echo "All ok"
> ' Bottom of script
>
> Save it as test.vbs
>
> open a cmd.exe prompt
>
> enter "cscript test.vbs"
>
> Note: If your code in asp uses Server.CreateObject() change it to
> CreateObject in the VBScript sample.
>
> --
>
> Cheers
>
> Chris
>
> Chris Crowe [IIS MVP]
> http://blog.crowe.co.nz
>
> "Michel" <NoSp@m.com> wrote in message
> news:O2Sk5mNrFHA.1032@TK2MSFTNGP12.phx.gbl...
>
>
| |
| David Wang [Msft] 2005-08-30, 8:13 am |
| Reinstalling will not help. If you reinstall then ACLs will be totally
messed up and you will have to fix them manually. Windows Scripting Host
shipped before Windows Server 2003 so it has no ideas about the correct
ACLs.
My guess is that you are running some security software/scanner on the
system which disabled Scripting.FileSystemObject (and Scripting.Dictionary
since it's in the same DLL file), and you'll need to configure/disable that
software to allow Scripting.FileSystemObject work.
Otherwise, regsvr32 scrrun.dll should be sufficient. You shouldn't even need
to do that since it was working by default, as you had seen -- so you must
have run something on your server to break things and need to undo that
damage.
Usually, I recommend undoing the exact action that broke something -- I
discourage doing arbitrary unrelated action like reinstalling Windows
Scripting Host 5.6.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Michel" <NoSp@m.com> wrote in message
news:%23On33HOrFHA.3060@TK2MSFTNGP09.phx.gbl...
Thanks,
The error is not for a custom DLL. It is for a generic VB object. I am
having trouble in 2 cases.
1. For a Server.CreateObject("Scripting.Dictionary")
2. For a simple file system object.
I have already tried registering scrrun.dll with regsvr32, but no luck. I
have rebooted, checked permissions for IUSR, Everyone, Network Service, etc.
We are running IIS 6.
I read something about re-installing VBScripting Engine, but I am not sure
how useful that will be.
Let me know your thoughts.
Thanks.
Michel
"Chris Crowe [MVP]" <IISMVP2005@iisfaq.homeip.net> wrote in message
news:uT1mKzNrFHA.1684@TK2MSFTNGP14.phx.gbl...
>I beleive that this error means that the "Class String" could not be found.
>
> For example
>
> if your code as
>
> set conn = server.createobject("addb.Connection")
>
> You will get this error
>
> since it should be "adodb.connection"
>
> Maybe re-run
>
> regsvr32 "filename.dll" if it is a custom DLL, or check the COM+ package
> settings if it is registered that way.
>
> What object are you trying to create in your code at line 199?
>
> It could also be a permissions problems. Can you create the DLL by
> creating a simple vb script and running it as yourself on the server?
>
> eg:
>
> ' Top of script
> dim X
>
> set X = createobject("MyObject.MyClass")
> WScript.echo "All ok"
> ' Bottom of script
>
> Save it as test.vbs
>
> open a cmd.exe prompt
>
> enter "cscript test.vbs"
>
> Note: If your code in asp uses Server.CreateObject() change it to
> CreateObject in the VBScript sample.
>
> --
>
> Cheers
>
> Chris
>
> Chris Crowe [IIS MVP]
> http://blog.crowe.co.nz
>
> "Michel" <NoSp@m.com> wrote in message
> news:O2Sk5mNrFHA.1032@TK2MSFTNGP12.phx.gbl...
>
>
| |
| Michel 2005-08-30, 6:00 pm |
| Thank You, I appreciate your advise, but, since I don't know what triggered
that behavior, I don't know what to do, the only thing I've recently
installed on my server was a software to control a Smart UPS, but I also
tried uninstalling it, and registering de scrrun.dll, but no luck again.
No recent Windows Updates neither...
I'm still searching, so, any idea...
Thanks again.
Michel.
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:Ohf30ZUrFHA.464@TK2MSFTNGP15.phx.gbl...
> Reinstalling will not help. If you reinstall then ACLs will be totally
> messed up and you will have to fix them manually. Windows Scripting Host
> shipped before Windows Server 2003 so it has no ideas about the correct
> ACLs.
>
> My guess is that you are running some security software/scanner on the
> system which disabled Scripting.FileSystemObject (and Scripting.Dictionary
> since it's in the same DLL file), and you'll need to configure/disable
> that
> software to allow Scripting.FileSystemObject work.
>
> Otherwise, regsvr32 scrrun.dll should be sufficient. You shouldn't even
> need
> to do that since it was working by default, as you had seen -- so you must
> have run something on your server to break things and need to undo that
> damage.
>
> Usually, I recommend undoing the exact action that broke something -- I
> discourage doing arbitrary unrelated action like reinstalling Windows
> Scripting Host 5.6.
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> //
> "Michel" <NoSp@m.com> wrote in message
> news:%23On33HOrFHA.3060@TK2MSFTNGP09.phx.gbl...
> Thanks,
>
> The error is not for a custom DLL. It is for a generic VB object. I am
> having trouble in 2 cases.
>
> 1. For a Server.CreateObject("Scripting.Dictionary")
> 2. For a simple file system object.
>
> I have already tried registering scrrun.dll with regsvr32, but no luck. I
> have rebooted, checked permissions for IUSR, Everyone, Network Service,
> etc.
> We are running IIS 6.
>
> I read something about re-installing VBScripting Engine, but I am not sure
> how useful that will be.
>
> Let me know your thoughts.
>
> Thanks.
> Michel
>
> "Chris Crowe [MVP]" <IISMVP2005@iisfaq.homeip.net> wrote in message
> news:uT1mKzNrFHA.1684@TK2MSFTNGP14.phx.gbl...
>
>
>
| |
| Chris Crowe [MVP] 2005-08-30, 6:00 pm |
| Are you running any Nortons Anti Virus on the server? It use to disable
scripting, there is a configuration in their options.
--
Cheers
Chris
Chris Crowe [IIS MVP]
http://blog.crowe.co.nz
"Michel" <NoSp@m.com> wrote in message
news:eAnN8YWrFHA.3788@TK2MSFTNGP12.phx.gbl...
> Thank You, I appreciate your advise, but, since I don't know what
> triggered that behavior, I don't know what to do, the only thing I've
> recently installed on my server was a software to control a Smart UPS,
> but I also tried uninstalling it, and registering de scrrun.dll, but no
> luck again.
> No recent Windows Updates neither...
> I'm still searching, so, any idea...
> Thanks again.
> Michel.
>
>
>
> "David Wang [Msft]" <someone@online.microsoft.com> wrote in message
> news:Ohf30ZUrFHA.464@TK2MSFTNGP15.phx.gbl...
>
>
| |
| Michel 2005-08-30, 6:00 pm |
| Hey Ppl help with this, trying to solve my problem I messed up everything.
I read that registering some DLLs like, jscript.dll, vbscript.dll and
scrrun.dll can help me, but, no luk again, now I can't see any ASP page..
Now i'm having the following error:
ASP error '0201'
Invalid script language.
Any help?
Thaks in advanced.
Michel
"Michel" <NoSp@m.com> wrote in message
news:eAnN8YWrFHA.3788@TK2MSFTNGP12.phx.gbl...
> Thank You, I appreciate your advise, but, since I don't know what
> triggered that behavior, I don't know what to do, the only thing I've
> recently installed on my server was a software to control a Smart UPS,
> but I also tried uninstalling it, and registering de scrrun.dll, but no
> luck again.
> No recent Windows Updates neither...
> I'm still searching, so, any idea...
> Thanks again.
> Michel.
>
>
>
> "David Wang [Msft]" <someone@online.microsoft.com> wrote in message
> news:Ohf30ZUrFHA.464@TK2MSFTNGP15.phx.gbl...
>
>
| |
| Michel 2005-08-30, 6:00 pm |
| You know what, it was a permission issue, I made a test, I put
IUSR_machinename in the administrator group, and everything work perfectly,
I also found this link:
http://support.microsoft.com/?id=812614
Once I've checked everything I will let you know, any idea would be great
either.
Thank You people.
Michel
"Michel" <NoSp@m.com> wrote in message
news:epDwoGarFHA.2588@tk2msftngp13.phx.gbl...
> Hey Ppl help with this, trying to solve my problem I messed up everything.
> I read that registering some DLLs like, jscript.dll, vbscript.dll and
> scrrun.dll can help me, but, no luk again, now I can't see any ASP page..
> Now i'm having the following error:
> ASP error '0201'
> Invalid script language.
>
> Any help?
> Thaks in advanced.
> Michel
>
> "Michel" <NoSp@m.com> wrote in message
> news:eAnN8YWrFHA.3788@TK2MSFTNGP12.phx.gbl...
>
>
| |
| Michel 2005-08-31, 6:00 pm |
| It doesn't work, I'm having the same error, ASP error '0201', invalid script
language, I don't know what to do...
I need help please....
Thanks in advanced
Michel
"Michel" <NoSp@m.com> wrote in message
news:ecTGsaarFHA.3792@TK2MSFTNGP10.phx.gbl...
> You know what, it was a permission issue, I made a test, I put
> IUSR_machinename in the administrator group, and everything work
> perfectly, I also found this link:
> http://support.microsoft.com/?id=812614
> Once I've checked everything I will let you know, any idea would be
> great either.
> Thank You people.
> Michel
>
> "Michel" <NoSp@m.com> wrote in message
> news:epDwoGarFHA.2588@tk2msftngp13.phx.gbl...
>
>
|
|
|
|
|