Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Can't read appSettings of IE hosted control when under SSL

Reply
 
Old 02-26-2009   #1 (permalink)
MichaelMF


 
 

Can't read appSettings of IE hosted control when under SSL

I have the following issue.

..NET Windows Forms control hosted in the Internet Explorer cannot read
application settings from the configuration file when page is accessed over
SSL (https://localhost/default.aspx). Works fine when accessed using
"http://".

In both cases control itself loads and works fine.

Here are related code fragments:
---cut---file:default.aspx---
......
<!-- Configuration -->
<link rel="configuration" href="MyControl.DLL.CONFIG">
......
<object id="MyControl" classid="https://localhost/MyControl.DLL#MyControl">
......
---cut---file:MyControl.cs---
// Doesn't matter if ConfigurationManager.AppSettings are used instead.
string[] allKeys = ConfigurationSettings.AppSettings.AllKeys;
---cut---file:MyControl.DLL.CONFIG---
<configuration>
<appSettings>
<add key="MyKey" value="MyValue"/>
</appSettings>
</configuration>
---cut---

allKeys returns empty if page is accessed using "https://", otherwise keys
are in place as expected.

Environment: Windows XP SP2, .NET 2.0, Internet Explorer 6.0, IIS 5.1,
Self-signed SSL certificate, VS2005


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Setting properties on hosted toolstrip control at design time .NET General
Security questions around browser hosted control interaction. .NET General
appSettings at Web.Config .NET General
Re: Problem running .NET user control hosted on Windows Vista / IE 7 Vista security
Problem running .NET user control hosted on Windows Vista / IE 7 Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46