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 6125935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:18:26+00:00 2026-05-23T16:18:26+00:00

This issue is driving me insane: I was working on a recently created project

  • 0

This issue is driving me insane: I was working on a recently created project and suddenly I was unable to debug that specific project.

I’m using a local IIS 7.5 with the IIS UrlRewrite 2 module. My development machine is a Windows 7 x64 with Visual Studio 2010 Professional.

Debugging in other projects does still work. I’ve set an entry in the local IIS and I start debugging my ASP.net 4.0 projects on my local IIS.
I was able to track the debugging issue down to unexpected behaviour with the URL Rewrite 2 module and to reproduce the problem with a freshly created 4.0 Web Application Project:

After adding an simple URL Rewrite rule with the administrative designer in the IIS I’m unable to start debugging, because I receive the error message

Unable to start debugging on the web server. Could not start ASP.Net debugging.  
More information may be available by starting the project without debugging.

(I’ve also tried copying URL-Rewrite settings from other projects, without success so far)
Starting the project without debugging works perfectly and does not reveal any error!

Other than that, I only added some characters to the default text of the default.aspx

Site settings in the IIS:
– I created a new site, assigned a binding (which port doesn’t matter, for instance I tried port 86) just like I always do.
– I set the user identity in the newly created application pool to ‘networkservice’
– Set the framework version of the newly created application pool to ‘4.0’
– I’ve given the user ‘networkservice’ full directory permissions to the solution directory

I’ve also tried several other settings combination, like enabled WindowsAuthentification, FormsAuthentication et cetera. Without luck so far.

This is Web tab of the project:
Servers: Use Local IIS Web Server, Project Url “http://localhost:86/” (I’ve also tried using “http://localhost:86”, does not seem to make a difference)

What is going on here? I’m losing my mind here. Any ideas on how to fix this? (Not using the UrlRewrite 2.0 module is no option)

And finally the web.config:

<?xml version="1.0" encoding="UTF-8"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
  <connectionStrings>
    <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
  </connectionStrings>

  <system.web>
    <compilation debug="true" targetFramework="4.0" />

    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    </authentication>

    <membership>
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
      </providers>
    </membership>

    <profile>
      <providers>
        <clear />
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
      </providers>
    </profile>

    <roleManager enabled="false">
      <providers>
        <clear />
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
      </providers>
    </roleManager>

  </system.web>

  <system.webServer>
     <modules runAllManagedModulesForAllRequests="true" />
        <rewrite>
            <rules>
                <rule name="LowerCaseRule1" stopProcessing="true">
                    <match url="[A-Z]" ignoreCase="false" />
                    <action type="Redirect" url="{ToLower:{URL}}" />
                </rule>
            </rules>
        </rewrite>
  </system.webServer>
</configuration>

Update:
Apparently I can debug with the ActionType=”Rewrite” but not with ActionType=”Redirect”. Still no real option though, because I want that issue fixed in the first placed and not stubling around with some workaround. I’d really like to offer a bounty right now, but the system won’t let me.

Can anybody please reproduce my steps? (I got this on 2 different computers so far)

  • 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-23T16:18:28+00:00Added an answer on May 23, 2026 at 4:18 pm

    The problem is that all files will be forced to use a rule, unless they are explicitly excluded by a condition. I don’t have the source code anywhere near me, but I guess this made the trick:

      <conditions>
        <add input="{URL}" matchType="Pattern" pattern="^.+\.((axd)|(js)|(xaml))$" ignoreCase="true" negate="true"/>
      </conditions>
    

    The LowerCaseRule entry should look like this:

    <rule name="LowerCaseRule1" enabled="true" stopProcessing="true">
      <match url="[A-Z]" ignoreCase="false"/>
      <conditions>
        <add input="{URL}" matchType="Pattern" pattern="^.+\.((axd)|(js)|(xaml))$" ignoreCase="true" negate="true"/>
      </conditions>
      <action type="Redirect" url="{ToLower:{URL}}"/>
    </rule> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are struggling with a problem that is driving me insane. Using this code...
I am facing an issue that is driving me insane. I have one and
I have an issue that is driving me a bit nuts: Using a UserProfileManager
This issue is driving me crazy. I have a WCF service that uses a
This issue has been driving me insane. On two separate projects (both of which
This issue is driving me mad. I have several tables defined, and CRUD stored
Hoping someone can help me here as this is driving me insane. I used
This issue/quirk/side-effect is driving me crazy. Near the bottom the code, the response code
Ok, I have an issue that is driving me nuts. In certain xaml files
I'm currently working on a flash project that has an intro video that plays

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.