In the most current WinInet.h file, the INTERNET_OPTION_CLIENT_CERT_CONTEXT option flag is greater than the INTERNET_LAST_OPTION option flag, which is used at the time of MFC compilation (that is, it is used to produce the debug version of MFC DLLs).
If this problem occurs with the following code:
CHttpFile->QueryOption (HTTP_QUERY_CUSTOM, ...)
the following ASSERT statement occurs in the Inet.cpp file:
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Because ASSERT statements work in the debug build of the project, these problems in MFC are nothing but inconveniences. To work around this problem, you can modify the MFC source files for the MFC debug DLLs.
To build the MFC source files, use the makefile that is named Mfcdll.mak in the Mfc\Src directory of the Microsoft Visual C++ installation.
For more information about this topic, visit the following Microsoft Web site: