index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: CreateObject Error :: (10)Post a New Message | Post a Reply
Oct 6 2004, 12:45 PM
 CreateObject ErrorPost a Reply
 platinum

View this author's profile Send this author a private message Visit author's homepage

from: Kenosha, WI

This is the error that I get.  I have registered the .dll and the connection string is correct.  My question is, does this work on windows server 2003 or is it something else that is wrong.

Here is the error

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/reportwriter/default.asp, line 17

800401f3


Oct 6 2004, 12:59 PM
 Re: CreateObject ErrorPost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

Yes it does.

Windows 2003 has ASP disabled by default - make sure you enable it. Also make sure that you give the necesary rights to IIS for AWSReportWizard2.dll. because by default, almost no user has permission/rights to access components on Win2k3




-------------------------
Ghost
Oct 7 2004, 6:37 AM
 Re: CreateObject ErrorPost a Reply
 platinum

View this author's profile Send this author a private message Visit author's homepage

from: Kenosha, WI

Here is the code.  It still doesn't work after trying your suggestions.  Thanks.

<%

'TODO: Change the constants below to reflect your database settings
  Const SERVER_NAME = "BENDER"
  Const DATABASE_NAME = "hcs"
  Const USER_NAME = "hcs"
  Const PASSWORD = "client"
  
'declare your variables
  Dim objWiz,  strConnectionString
  
'initialize your variables
strConnectionString = "Provider=MSDASQL;Driver={SQL Server};"& _  
    "Server= "&  SERVER_NAME & ";Database= "& DATABASE_NAME & ";"& _  
    "User ID= "&  USER_NAME & ";Password= "& PASSWORD & ";"
  
  Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2")  
      
'Make sure you initialize before adding any HTML text
objWiz.Init(strConnectionString)  
      
'put this where you want your reports
objWiz.DisplayReports  
      
  Set objWiz =  Nothing

%>

Oct 7 2004, 9:25 AM
 Re: CreateObject ErrorPost a Reply
 whichman

View this author's profile Send this author a private message Visit author's homepage

from: Laurel, MD

If you are having a  Server object error it means that the object was not properly registered or you do not have access rights to this object.

If you belive that you should have access rights to using this object, then try reinstalling the Report Wizard again. Sometimes a simple rebooting of server  can solve the problem


-------------------------
Master of the Game
Oct 8 2004, 6:19 AM
 Re: CreateObject ErrorPost a Reply
 platinum

View this author's profile Send this author a private message Visit author's homepage

from: Kenosha, WI

This still does not work.  I have rebooted the server, made sure the dll was registered, and put full perms on the file.  Is there anything else that I should do.  Is there some other rights that I have to grant to the file, and if so, could you tell me what I need to do.

Thanks

Oct 11 2004, 6:18 AM
 Re: CreateObject ErrorPost a Reply
 platinum

View this author's profile Send this author a private message Visit author's homepage

from: Kenosha, WI

Any idea what might be wrong here?

Oct 11 2004, 8:50 AM
 Re: CreateObject ErrorPost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

We use a Win2k & Win2k3 to test the report wizard and everything is working fine. I can't possibly think of anything else at this point.
Have you tried installing it on another server?


-------------------------
Ghost
Oct 11 2004, 11:21 AM
 Re: CreateObject ErrorPost a Reply
 platinum

View this author's profile Send this author a private message Visit author's homepage

from: Kenosha, WI

Both of my servers are win2k3 and it doesn't work on either.  I tried it on a win2K server about a year ago, and it worked fine.  We don't have that server anymore though, so we are stuck with win2k3.

Oct 11 2004, 12:50 PM
 Re: CreateObject ErrorPost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

Try the following:
1. Uninstal the AspReport Wizard v2 completely.
2. Make sure that you do not have the AWSReportWizard2.dll file anywhere on your computer
3. Make sure that the following registry keys have been deleted

HKEY_CLASSES_ROOT\AspWebSolution.ReportWizard2
HKEY_CLASSES_ROOT\AspWebSolution.SimpleGraph
HKEY_CLASSES_ROOT\AspWebSolution.StringBuffer
HKEY_CLASSES_ROOT\AspWebSolution.DataGrid

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AspWebSolution.DataGrid
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AspWebSolution.SimpleGraph
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AspWebSolution.StringBuffer
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AspWebSolution.DataGrid


4. Restart your server and login as an administrator.
5. Install the latest copy of the report wizard v2.4.62
6. Restart your server and try running your reports.










-------------------------
Ghost
Oct 11 2004, 1:02 PM
 Re: CreateObject ErrorPost a Reply
 whichman

View this author's profile Send this author a private message Visit author's homepage

from: Laurel, MD

I just saw this on the insternet:

CreateObject Error means "Invalid class string" -- in other words the call to CreateObject failed because the name object cannot be found by the OLE sub-system. Causes include:

  1. You really didn't run regsvr32 on the server after all.
  2. You ran regsvr32 but it reported an error.
  3. Someone modified security on part of the registry that's preventing the OLE subsystem from reading all or part of the HKEY_CLASSES_ROOT tree.
  4. The name of the object you are trying to create was mispelled or is incorrect.
  5. Determine if it's a permissions problem
    Add the anonymous user (used by IIS) to the Administrators group. The test page then worked, proving it was a permissions problem. Do not forget to remove the anonymous IIS user from the Admin group!
  6. Determine if it is a file permissions problem:
    After removing the Anonymous user from the Admin group, add failure auditing to the file (smtpsvg.dll), which will determine if the file was ever accessed (by the lack of the failure event). If it isn't, this makes it clear that the failure is prior to file access but go ahead and check file/directory permissions to make sure the anonymous IIS user can access the file.
  7. Check registry permissions
    Using Regedt32, do find on smtpsvg.dll. Check the permissions for the key (and sub keys), and make sure that the anonymous user has read rights. Do a find on the class-id, which contains the location value, and version, and check those permissions as well.



-------------------------
Master of the Game
Pages: (1)   [1]

search this forum: