0 Replies - 516 Views - Last Post: 17 May 2012 - 08:21 AM Rate Topic: -----

#1 RedYote  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 48
  • Joined: 17-May 12

Issues with web.config

Posted 17 May 2012 - 08:21 AM

Writing code to force SSL on a webform at work. The error I'm getting is:

Parser Error Message: Could not load file or assembly 'Force Secure.dll' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 22:     <httpModules>
Line 23:       <!--Used to redirect all the unsecure connections to the secure ones if necessary-->
Line 24:       <add name="Security" type="Account_Request.Handlers.SecurityModule, Force Secure.dll" />
Line 25:     </httpModules>
Line 26: 


The Force Secure is in a different folder under Visual Studios Projects. Account_Request is on the desktop in WIP. Could this be causing the error? I have Account_Request referencing Force Secure (added it in the solution in Visual Studios and manually added the reference to Account_Request project's references). Account_Request is a web form, Force Secure is a code library.

This is the code I pulled it from:

<httpModules>
                <!--Used to redirect all the unsecure connections to the secure ones if necessary-->
                <add name="Security" type="{YourNamespace}.Handlers.SecurityModule, {YourAssembly}" />
                ...
        </httpModules>


Which name space should I be using, and am I referencing the assembly right? Also, I built the code library to make it a .dll, but I do not have Strong Name on it, nor am I entirely sure how to go about that without wrecking the entire thing and having to start over. I am doing this on a copy of the original source code, so if I need to start over, I can.

Any help would be greatly appreciated.


Part of the issue I'm having is that this is my first real foray into the world of security. I've been coding in C# and asp.net for my job (student worker at IT support at a university), but I still run into issues.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1