Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7687477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:42:45+00:00 2026-05-31T19:42:45+00:00

I have been implementing RSA security for a project I am working on. I’m

  • 0

I have been implementing RSA security for a project I am working on.

  • I’m using the SecurID4Net files found on the web to get this rolling, which by default are targeted to the .Net 2.0 framework, ANY CPU.
  • I created a derived SqlMembershipProvider which references the SecurID4Net.Interfaces project, targeting .Net 4.0, any CPU.
  • My class lib “Services” references the SqlMembershipProvider, also targeting Any CPU.
  • My web app “Services.Web” references the “Services” lib, .Net 4.0, Any CPU.

I’m not using the client profile for any assembly targeting .Net 4. Every reference I have described here has Copy Local set to True.

I have my local IIS default web site set up to my output folder for the web project, so I can Ctrl-Shift-B and browse my IIS folder. When my client app signs in for the first time (possibly 2 or 3 times), it works fine, but after that sign ins fail. Additionally, when attaching to the IIS7 process (Services.Web), I would get the following error:

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.Assembly.GetTypes()
   at Microsoft.Tools.SvcHost.ServiceHostHelper.LoadServiceAssembly(String svcAssemblyPath)

The DLL it is having problems loading is the SqlMembershipProvider I created.

So, I changed the SecurID4Net.Interfaces project to target .Net 4.0, and recompiled. It seems to work consistently now (still testing this part), but CTRL-ALT-P to attach to the IIS process still results in the WcfSvcHost error popping up before I can actually attach to the process… everything else seems to be working.

  • I’m running my VS as admin so I can attach to an IIS process;
  • All references described are set to Copy Local = true;
  • All assemblies are targeting .Net 4.0 Full Profile;
  • All assemblies are reachable, not blocked by the copy operation to the server where this is hosted;
  • To my knowledge no syntax issues with the web.config.

Anyone have any ideas why this error keeps popping up? Why would this error pop up when everything seems to be working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:42:46+00:00Added an answer on May 31, 2026 at 7:42 pm

    I think I found the answer almost immediately. After inspecting each AssemblyInfo.cs file in the chain of projects, I found this in my SqlMembershipProvider assembly:

    [assembly: AssemblyCulture("EN-us")]
    

    I removed the value so it’s an empty string.

    I had a very similar issue in another project I worked on a few months ago where the web site had this filled in, and the web site worked on the very first load, but every load thereafter failed with a very cryptic error which, after drilling down, found that it could not load the assembly, giving a FileNotFoundException.

    I don’t know why this tiny, simple attribute would cause so many headaches…

    EDIT: I’m 99% certain this was it. When I attach to my IIS process I no longer get a WcfSvcHost error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a data warehousing project, and therefore, I have been implementing
I've have been working on implementing the InfoBox code for one of my web
We've been working on implementing timezone support for our Web app. This great SO
I have been looking at using TDD and implementing proper testing (only just started
I have been studying SOAP and WSDL in preparation for implementing a web service.
So I have been working on properly implementing a quicksort algorithm for a homework
For a personal project I have been implementing my own libstdc++. Bit by bit,
I have been working on implementing the Ancestry gem in my rails app, I
I have been working on implementing a (1) server, (n) worker role servers setup
I've an ASP.NET MVC 3 project and have been tasked with implementing a few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.