Ver Mensaje Individual
  #10 (permalink)  
Antiguo 30/12/2004, 16:27
Avatar de engonga
engonga
Usuario no validado
 
Fecha de Ingreso: marzo-2002
Ubicación: Buenos Aires
Mensajes: 1.300
Antigüedad: 23 años, 1 mes
Puntos: 8
problema del servidor

sqa212


puede ser que en tu servidor no tengas instalado este componente prueva con esto

Código PHP:
<% @ Language="VBScript" %>
<% 
Option Explicit %>
<%
' there are a number of objects that come with IIS4
these are put in the array that's declared below
Dim theInstalledObjects(9)

theInstalledObjects(0) = "MSWC.AdRotator"
theInstalledObjects(1) = "MSWC.BrowserType"
theInstalledObjects(2) = "MSWC.NextLink"
theInstalledObjects(3) = "MSWC.Tools"
theInstalledObjects(4) = "MSWC.Status"
theInstalledObjects(5) = "MSWC.Counters"
theInstalledObjects(6) = "IISSample.ContentRotator"
theInstalledObjects(7) = "IISSample.PageCounter"
theInstalledObjects(8) = "MSWC.PermissionChecker"
theInstalledObjects(9) = "Microsoft.XMLHTTP"

Function IsObjInstalled(strClassString)
On Error Resume Next
initialize default values
IsObjInstalled 
False
Err 
0
' testing code
Dim xTestObj
Set xTestObj = Server.CreateObject(strClassString)
If 0 = Err Then IsObjInstalled = True
cleanup
Set xTestObj 
Nothing
Err 
0
End 
Function
%>

<
HTML>
<
HEAD>
<
TITLE>Test of installed objects</TITLE>
</
HEAD>
<
BODY>

Enter the ProgId or ClassId of the component you want to test in the textbox below. If you leave it empty, the default
components will be tested.

productes:
theInstalledObjects(0) = "MSWC.AdRotator"<br>
theInstalledObjects(1) = "MSWC.BrowserType"<br>
theInstalledObjects(2) = "MSWC.NextLink"<br>
theInstalledObjects(3) = "MSWC.Tools"<br>
theInstalledObjects(4) = "MSWC.Status"<br>
theInstalledObjects(5) = "MSWC.Counters"<br>
theInstalledObjects(6) = "IISSample.ContentRotator"<br>
theInstalledObjects(7) = "IISSample.PageCounter"<br>
theInstalledObjects(8) = "MSWC.PermissionChecker"<br><br><br>

<
FORM action=<%=Request.ServerVariables("SCRIPT_NAME")%> method=post>
<
input type=text value="" name="classname" size=40>
<
INPUT type=submit value=Submit>
<
INPUT type=reset value=Reset
</
FORM>

<%
Dim strClass
strClass 
Trim(Request.Form("classname"))
If 
"" <> strClass then
Response
.Write strClass " is "
If Not IsObjInstalled(strClassthen 
Response
.Write "<strong>not installed</strong>"
Else
Response.Write "installed!"
End If
Response.Write "<P>" vbCrLf
Else
 default: list 
all components that should be installed
%>

<
TABLE BORDER=0>
<%
Dim i
For i=0 to UBound(theInstalledObjects)
Response.Write "<TR><TD>" theInstalledObjects(i) & "</TD><TD>"
If Not IsObjInstalled(theInstalledObjects(i)) Then 
Response
.Write "<strong>not installed</strong>"
Else
Response.Write "installed!"
End If
Response.Write "</TD></TR>" vbCrLf
Next
%>
</
TABLE

esto te dice que componentes tienes instalados en tu servidor


espero que te sirva