Persits Software, Inc. Knowledge Base Articles

Failed to query for IResponse

Problem Description

When using AspUpload, AspJpeg, or AspGrid, this error is thrown:

Failed to query for IResponse.

When using AspPDF, this error is thrown:

QueryInterface for IResponse failed: (followed by a reason)

Solution

This error usually occurs because of tight security settings in the HKEY_CLASSES_ROOT section of the registry. To fix the error, run Registry Editor and select the following key:

HKEY_CLASSES_ROOT\TypeLib\{D97A6DA0-A85C-11CF-83AE-00A0C90C2BD8}

From the Security menu, select Permissions. Add Everyone to the permission list and assign Full Control to the Everyone account. Make sure the setting propagates to the sub-keys as well.

On Windows NT and 2000, you must run RegEdt32 to have access to registry key permissions. On Windows XP and newer, use RegEdit .