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

  • Home
  • SEARCH
  • 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 8419303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:34:16+00:00 2026-06-10T02:34:16+00:00

Basically my code look slike below: [assembly: WebActivator.PreApplicationStartMethod(typeof(OpusOneCorp.Presentation.Client.Mvc.EndUser.App_Start.StructuremapMvc), Start)] namespace OpusOneCorp.Presentation.Client.Mvc.EndUser.App_Start { public static

  • 0

Basically my code look slike below:

    [assembly: WebActivator.PreApplicationStartMethod(typeof(OpusOneCorp.Presentation.Client.Mvc.EndUser.App_Start.StructuremapMvc), "Start")]

    namespace OpusOneCorp.Presentation.Client.Mvc.EndUser.App_Start {
        public static class StructuremapMvc {
            public static void Start() {
                var container = InversionOfControl.InitializeForUser();
                DependencyResolver.SetResolver(new StructureMapDependencyResolver(container));
                ObjectFactory.GetInstance<IThreadRunner>().Check();
            }
        }

}

Well, I am not author of this code but it is implemented to run everytime the project is started and it is using Web Activator attribute to do that. It is really acting is a weird way on my machine. If I put a break point on it then it does not hit the break point at all, which means it is not hitting this code before the application starts.

secondly, when I do iisreset, it hits it the very first time but does not hit it any time further….. At the same time, it hits it every time on my colleague’s computer….It is very inconsistent behavior and it just started acting this was. I have had this code for couple of months and it never broke but it suddenly started doing this. Of course it means something else has changed it but if it has broken it then it should never hit the breakpoints rather than deciding to hit it every time I do iisreset.

  • 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-06-10T02:34:18+00:00Added an answer on June 10, 2026 at 2:34 am

    Are you using IIS on your colleague’s computer or the visual studio built in web server?

    The vs web server will restart the applcation every time you run the website from vs hitting the break point on the app start but IIS will only start the application the first time it is called. That’s why it doesn’t hit the break point again until you do a iisreset.

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

Sidebar

Related Questions

Basically the code below reads in a text file and diplays it on the
My code basically needs to start up a simple chat server with a client.
This code basically translates characters based on position in one string to the character
The following code basically works as expected. However, to be paranoid, I was wondering,
So basically this code: class A { }; class B { B (const B&
So basically this code was working fine before. I had some computer issues and
I have (basically) this code - <script type=text/javascript language=javascript> $(document).ready(function() { $(#loadDiv).load(mypage.html, function(){ alert($(#someText).text())
This is a follow up from my previous question I have this code basically
This is the first time I got this error. This code basically gets the
Last evening I did some housekeeping on our code repository - basically moved the

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.