ayseff / securityswitch

Automatically exported from code.google.com/p/securityswitch
Other
2 stars 0 forks source link

The supplied validator does not support the type of the property 'securityPort'. #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Create a brand new file based asp.net4 website using the VS2010 wizard. Add 
securityswitch using NuGet.  You will get the following exception.  To fix I 
copied over a securityswitch.dll downloaded manually.

Server Error in '/wwwroot' Application.

The supplied validator does not support the type of the property 'securityPort'.

Description: An unhandled exception occurred during the execution of the 
current web request. Please review the stack trace for more information about 
the error and where it originated in the code. 

Exception Details: System.Configuration.ConfigurationErrorsException: The 
supplied validator does not support the type of the property 'securityPort'.

Source Error: 

An unhandled exception was generated during the execution of the current web 
request. Information regarding the origin and location of the exception can be 
identified using the exception stack trace below.

Stack Trace: 

[ConfigurationErrorsException: The supplied validator does not support the type 
of the property 'securityPort'.]
   System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line) +285
   System.Configuration.BaseConfigurationRecord.CreateSectionDefault(String configKey, Boolean getRuntimeObject, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object& result, Object& resultRuntimeObject) +59
   System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) +1468
   System.Configuration.BaseConfigurationRecord.GetSection(String configKey) +41
   System.Web.HttpContext.GetSection(String sectionName) +52
   System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName) +57
   System.Web.Configuration.WebConfigurationManager.GetSection(String sectionName) +25
   SecuritySwitch.SecuritySwitchModule.Init(HttpApplication context) +254
   System.Web.HttpApplication.InitModulesCommon() +172
   System.Web.HttpApplication.InitModules() +43
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET 
Version:4.0.30319.272

Original issue reported on code.google.com by siwhite...@gmail.com on 27 Mar 2012 at 9:29

GoogleCodeExporter commented 9 years ago
Thank you for reporting this. I've updated NuGet and these downloads/code.

Original comment by vent...@gmail.com on 27 Mar 2012 at 3:26