Hello. Subject says it all really -- looks like Microsoft has not tested .NET IE-hosted controls with IE7 protected mode (Vista).

Our customer-facing IE-hosted .NET control has been carefully constructed to work in the Internet Zone so that folks can get started right away without installing anything. However, unless protected mode is disabled it crashes with the stack trace at the foot of this email, after two warnings about csc.exe having to run outside the host process.

Any workaround other than telling our thousands of users to all disable Protected Mode when they upgrade to Vista Happy to provide a demo URL by email.


Could not find file 'C:\Users\XXXXXXXX\AppData\Local\Temp\Low\4xboaoqk.dll'. (System.IO.FileNotFoundException)

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)

at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)

at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)

at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)

at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence)

at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies)

at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)

at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)

at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)

at System.Xml.Serialization.XmlSerializer..ctor(Type type)

[call from user code is next in stack]

Re: ClickOnce and Setup & Deployment Projects .NET IE-Hosted Controls Do Not Work with IE7 Protected Mode

Chief Bromden

Any update on this issue Does this apply to all .net controls hosted in ie7 with protected mode enabled Have you tried making a very simple control that does basically nothing

I am very keen on some answers but do not have access to a Vista environment where I can test the problem.