Link to home
Start Free TrialLog in
Avatar of CodeLover
CodeLover

asked on

ASPFormat.Format problem

Hi all,

I have an asp page with the following codes:

Set objA = Server.CreateObject("ASPFormat.Format")

But there is an error when opening it:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/test1.asp, line 129

Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.

Please help me to fix it. Thanks.
Avatar of rhoggren
rhoggren

That doesn't look like a valid COM object... at least not one I've ever seen...

What are you trying to accomplish?
Avatar of CodeLover

ASKER

Thanks for your response. I use it to format a number as "00", e.g. 5 as "05"

sNum = objA.FormatString(nNum, "00")
Well, I guess the saying is true.. we learn something new every day!

I found this:

http://www.4guysfromrolla.com/demos/FormatDemo.asp

This looks like an interesting little object for sure...

But the thing is that when you get an invalid progID error message, that's saying that the server isn't recognizing the object. Are you sure the IIS server has access to this object? Or is this a *nix operating system running one of the ASP emulators?


SOLUTION
Avatar of seb_gibbs
seb_gibbs

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I dont think Server.CreateObject("ASPFormat.Format") is standard, I suspect you need to install some other software into your webserver to have this.

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial