Windows 7 / IE 8 Publisher could not be verified bug?
Not sure if this is a bug or a new feature, but I'm leaning to the formerWe have a web app that allows you to download anMSI from a web site. TheMSI is unsigned.In Vista (with IE 7 or IE 8) when the Internet Explorer - Security Warning : The publisher could not be verified warning pops up, the name of the executable is correct. i.e. MyApp.exeOn Windows 7, (with IE 8 or IE8 in IE 7 Compatibility mode) when the warning is displayed, the name of the executable assumes the name of the web page the executable came from. i.e. the exe becomes 'msidownloadpage.exe'. What's really bizarre is that the 'Do you want to run or save this file?' dialog shows the correct name.Below is the function we launch when we call the download. Any ideas? internal static void DownloadMsi(string msiName, HttpResponse response, ILog log) { byte[] returnedBytes = null; IBlobManager blobManager = UnityFactory.Current.Resolve<IBlobManager>(); try { returnedBytes = blobManager.GetMsi(msiName); if (returnedBytes == null) { log.ErrorFormat("Error obtaining MSI from blob storage service. Returned bytes is zero length."); } } catch (Exception exc) { log.ErrorFormat("Error obtaining MSI from blob storage service. Exception type: {0}, Exception Message {1}.", exc.GetType().ToString(), exc.Message); } if (returnedBytes != null) { // force download response.ContentType = "application/octet-stream"; response.AppendHeader("content-disposition", "attachment; filename=" + msiName); response.BinaryWrite(returnedBytes); response.End(); } else { response.Cookies.Add(new HttpCookie("PageErrorMessage", String.Format("Error obtaining compiled executable from blob storage service."))); response.Redirect(String.Format("~/Public/ErrorPage.aspx?id={0}", Guid.NewGuid())); // pass a unique query string to force client page refresh } }
June 4th, 2009 1:13am

Did you ever find a solution for this? I am seeing the same problem and have not found a solution yet.
Free Windows Admin Tool Kit Click here and download it now
June 21st, 2010 10:07pm

No matter what we do, we still see this problem intermittently. We converted the application to ASP.NET MVC and return a binary result, and that seems to work 90% of the time, but looking back at my bug list, it is still open. Here is thee executee result code we put together to try to handle this issue. If you figure anything else out, let me know. public override void ExecuteResult(ControllerContext context) { try { var returnedBytes = DownloadType == DownloadType.SuppliedByte ? _bytes : GetData(); var res = context.HttpContext.Response; res.Clear(); res.Cache.SetCacheability(HttpCacheability.NoCache); // res.Buffer = true; // force download switch (DownloadType) { case DownloadType.Msi: res.ContentType = "application/x-msi;"; break; case DownloadType.Demo: res.ContentType = "application/exe;"; break; case DownloadType.SuppliedByte: res.ContentType = _contentType ?? "binary/octet-stream;"; break; } res.AppendHeader("X-Content-Type-Options", "nosniff"); res.AppendHeader("content-disposition", "attachment; filename=" + SourceFilename); if (returnedBytes != null) { res.AppendHeader("Content-Length", returnedBytes.Count().ToString()); res.OutputStream.Write(returnedBytes, 0, returnedBytes.Count()); } // res.Flush(); res.End(); } catch (HttpException ex) { // If the user closes their browser before the download completes, a 'Remote Host has closed the connection' error // will be thrown. Log it as a warning, and continue; if (ex.ErrorCode == 0x800703E3) { var log = Log4NetHelper.GetLogger(); log.WarnFormat("User has cancelled download of demo. Exception: {0}", ex); } else throw; } }
June 24th, 2010 3:56pm

I thought it may have something to do with version resources of the application, my app didn't have any. The thought was that IE couldn't find the product name resource so just plugged in the web page name. We found an application which looked promising http://www.codeproject.com/KB/install/VerPatch.aspx?msg=3207401 and actually does what it advertizes but did not fix the problem. I can't help but think the problem is something along this line. Anyway, I'll try what you have here and report back. Appreciate the response.
Free Windows Admin Tool Kit Click here and download it now
July 1st, 2010 10:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics