At 08:47 PM 12/12/2004, Tonko Juricic wrote: >--- Jeff White <[EMAIL PROTECTED]> wrote: > >> I have just seen the first >> mod_aspdotnet post on >> Microsoft's newsgroups: > >Confusion reigns! :( > >I was under impression that, lacking xml config file, >assembly runs on runtime version for which it was >compiled ?!
Mostly. Note we load the now-current runtime on the machine; hr = GetCORVersion(wAspNetPath, sizeof(wAspNetPath) / sizeof(WCHAR) - 1, &len); if (FAILED(hr)) { wAspNetPath[len] = L'\0'; ap_log_error(APLOG_MARK, APLOG_ERR, APR_FROM_OS_ERROR(hr), NULL, "mod_aspdotnet: GetCORVersion failed to return " "the .NET CLR engine version."); _com_raise_error(hr); } hr = CorBindToRuntimeEx(wAspNetPath, L"svr", // Or "wks" STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN_HOST | STARTUP_CONCURRENT_GC, CLSID_CorRuntimeHost, IID_ICorRuntimeHost, (void **)&global_conf->pCorRuntime); and pick up and invoke the current CorRuntime when loading our .NET space into the Apache.exe process. Bill