티스토리 뷰

[출처] http://support.persits.com/show.asp?code=PS01032622

문제 서술 

When trying to create an instance of a Persits component, the line of code

Set obj = Server.CreateObject("Persits. <ProgID> ")

generates the following error (Windows NT/IIS4)

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
Invalid class string

On Windows 2000/IIS5, the error message is

Server object, ASP 0177 (0x800401F3)
Invalid ProgID.

해결 

This error means that either the component has not been registered on the server or the ProgID passed to the Server.CreateObject method is misspelled. On Windows 2003 and XP, it may also mean a permission problem on a system registry key.

Make sure the component DLL is present on the server. The exact physical location of the DLL is not important. To register the component on the server, open MS DOS prompt and type

c:\> regsvr32 c:\path\abc.dll

(you must use your component's appropriate path and file name).

The correct Persits component ProgID's and file names are listed in the following table:

Name File ProgID
AspEmail aspemail.dll "Persits.MailSender"
AspEncrypt aspencrypt.dll "Persits.CryptoManager"
AspGrid aspgrid.dll "Persits.Grid"
AspJpeg aspjpeg.dll "Persits.Jpeg"
AspUpload aspupload.dll "Persits.Upload"
AspUser aspuser.dll "Persits.AspUser"
XUpload xupload.ocx "Persits.XUpload"
AspPDF asppdf.dll "Persits.PDF"

On Windows 2003 and XP, this error may also mean the component's ProgID key in the system registry has been assigned insufficient permissions. Run regedt32, open the key HKEY_CLASSES_ROOT\ProgID, select Permissions from the Edit menu, and grant the "Everyone" account Full Control over the key. See the table above for the correct ProgID values.


위의 해결 방법 제일 마지막에는
Everyone 에게 전체 권한을 주라고 했는데

아래와 같이 레지스트리 루트에 권한을 줍시다:

[ HKEY_CLASSES_ROOT ]

Administrators : 모든,읽기
CREATOR OWNER : 특정권한
Power Users : 읽기,특정권한
SYSTEM : 모든 권한,읽기
Users : 읽기

[ HKEY_CURRENT_USER ]

Administrators : 모든,읽기
자신의 계정명 : 모든,읽기
RESTRICTED : 읽기
SYSTEM : 모든,읽기

[ HKEY_LOCAL_MACHINE ]  ,  [ HKEY_USERS ]

Administrators : 모든,읽기
Everyone : 읽기
RESTRICTED : 읽기
SYSTEM : 모든,읽기

[ HKEY_CURRENT_CONFIG ]

Administrators : 모든,읽기
CREATOR OWNER : 모든,읽기
Power Users : 읽기
SYSTEM : 모든 권한,읽기
Users : 읽기

---------------------------------------------------------------
다음으로는 Dependency Walker 를 이용하여 의존성 검사를 해 줍시다 

보다보면 dll 파일 중의 하나가 회색으로 표시되어 있고 경고? 마크가 있는데 그 파일이

등록하고자 하는 시스템에 없기 때문에 "지정된 모듈을 찾을 수 없습니다 "라는 메세지가 뜬다.

해당 파일을 찾아서 windows\system32\ 아래에 카피하고 다시 등록하면 OK

댓글