Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to resolve Invalid ProgID error?

Status
Not open for further replies.

mnongkhlaw

Programmer
Feb 22, 2002
62
IN
I had a web that was running OK on Win95/98 & PWS. But when this site was deployed on a production server and the default.asp file viewed in IE, I get :-

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/elect2003/global.asa, line 50
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at:
My global.asa :-

<SCRIPT LANGUAGE=VBScript RUNAT=Server>

'You can add special event handlers in this file that will get run automatically when
'special Active Server Pages events occur. To create these handlers, just create a
'subroutine with a name from the list below that corresponds to the event you want to
'use. For example, to create an event handler for Session_OnStart, you would put the
'following code into this file (without the comments):

Sub Session_OnStart
Session.Timeout = 20

'--No. of Active Users
Application.Lock
Application(&quot;intActiveUserNumber&quot;)=Application(&quot;intActiveUserNumber&quot;)+1
Application.UnLock
End Sub
Sub Session_OnEnd

'The appilcation must be locked so that only one user can decrement the Application ActiveUserNumber variable at a time
Application.Lock

'The Application ActiveUserNumber variable is decremented by 1
Application(&quot;intActiveUserNumber&quot;) = Application(&quot;intActiveUserNumber&quot;) - 1

'The application is now unlocked
Application.UnLock

End Sub


'EventName Description
'Session_OnStart Runs the first time a user runs any page in your application
'Session_OnEnd Runs when a user's session times out or quits your application
'Application_OnStart Runs once when the first page of your application is run for the first time by any user
'Application_OnEnd Runs once when the web server shuts down

</SCRIPT>

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
'==Visual InterDev Generated - startspan==
'--Project Data Connection
Application(&quot;cnnElect_ConnectionString&quot;) = &quot;Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=&quot; & Server.MapPath(&quot;watnymtuh123.mdb&quot;) & &quot;;&quot;
Application(&quot;cnnElect_ConnectionTimeout&quot;) = 15
Application(&quot;cnnElect_CommandTimeout&quot;) = 30
Application(&quot;cnnElect_CursorLocation&quot;) = 3
Application(&quot;cnnElect_RuntimeUserName&quot;) = &quot;Admin&quot;
Application(&quot;cnnElect_RuntimePassword&quot;) = &quot;&quot;
'-- Project Data Environment
Set DE = Server.CreateObject(&quot;DERuntime.DERuntime&quot;)
Application(&quot;DE&quot;) = DE.Load(Server.MapPath(&quot;Global.ASA&quot;), &quot;_private/DataEnvironment/DataEnvironment.asa&quot;)
'==Visual InterDev Generated - endspan==
'Create an ActiveUsersNumber variable with Application scope and set it to 0
Application(&quot;intActiveUserNumber&quot;) = 0

End Sub
</SCRIPT>


Please help!

Mark.
 
Make sure this com object is installed on the new server:

&quot;DERuntime.DERuntime&quot;
 
Thanks, but how? Do I need FP Server Extensions? Because I copied the web to another m/c with Win98 and PWS with FP Server Extensions and nothing else (no Visual Studio components etc.) and it worked fine. I didn't need no DE.Runtime component there.

Regards,

Mark.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top