IIS6 SSL Config - Have To Log In Twice (once For :80, Once For :443)
Jul 8, 2010
I have a virtual folder containing an administration application, like
[URL]
which requires SSL. In the IIS manager properties for the folder, under "Authentication and access control", Anonymous Access is disabled and "Authenticated Access" is set to "Integrated Windows authentication."
When I connect to the site in Chrome, I receive two login boxes. The first is from mysite.com/alpha:443, and the second is from mysite.com/alpha:80. Firefox appears to re-send my credentials for the second box so it is never shown.
View 2 Replies
Nov 29, 2010
From; ASP.NET Ignores IE7 Compatibility Mode Tag in Web.config
<system.web>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=EmulateIE7" />
</customHeaders>
</httpProtocol>
</system.web>
Related to the answer Chris Shouts added;
When I attempt to add the <httpProtocols> sections into the <system.web> I get
Parser Error Message: Unrecognized configuration section system.web/httpProtocol.
I ideally need to be able to add customHeaders through the IIS6 web.config (I however am assuming this won't work)
View 2 Replies
Mar 8, 2011
I am developing a .NET 3.5 web application. We are using some of the Microsoft Reporting tools, which are a pain but a digress, and when I deploy, I get errors when trying to load the site.
This is the error:
[Code]....
However, my web config reads:
[Code]....
I specify 9.0.0.0 in everything. The only concern I have is that the build server uses .NET 4.0 but I have specified to build with 3.5 and on my deployed server I have the 9.0.0.0 dll files for the report viewer. why the server is looking for 10 when everything says 9?
View 5 Replies
Dec 15, 2010
I have an MVC2 application where i post a DELETE to MyController/Delete/ID.This is working fine if I debug the application, however, when I put it on the application server (IIS6), I keep "Unauthorized" as a result. I googled a lot, but I didn't find any problems the same as mine.
View 21 Replies
May 28, 2010
I have a site .net 2.0 and I redirected users to alogin page when the hit the site. (I think the default.aspx page)
But i cant remember how i did it.
I am now wanting upgrade to asp.net mvc appbut the redirect is still there to a nonexistent page.
View 1 Replies
Aug 18, 2010
I've set up a web app on IIS6 with a "{controller}.mvc/..."-mapping. Everything is running fine - except for the root-path (http://www.myapp.com). The additional routes.MapRoute for "Root" is applied in global.asax (as in the MS-example "Listing 2 - Global.asax (modified with extensions)").In VS2010 debugging mode everything (including the root) works - as well as in the "published" app (on Win7 IIS 7.5). I've copied the whole published app to the IIS6.
View 4 Replies
Jul 23, 2010
I have a fully dynamic application that uses UrlRewriting.Net that works perfectly within the visual studio environment. As you can see from the rules within the web.config file below, UrlRewriting.Net rewrites the destination as "~/index.aspx?URLPath=$1&URLString=$2", basically index.aspx searches the database for the page properties and builds the page based on the parameters passed. There are no physical files for the website, only index.aspx with all pages and its webparts build dynamically on the fly.
The application is compiled as ASP.NET 3.5 and runs on a Windows Server 2003 x64 standard edition.
To my knowledge the configuration you see in the web.config below should work in iis6, however does not
. Does the installment of UrlRewriting.Net require configuration in iis6 as well?
<!-- Web config file start -->
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<sectionGroup name="robo.webProfile">
<section name="webProfileSettings" type="WebProfileBuilder.WebProfileConfigurationSection, WebProfileBuilder, Version=1.3.0.0, Culture=neutral, PublicKeyToken=01d50f1f82943b0c" allowLocation="true" allowDefinition="Everywhere" />
</sectionGroup>
<section name="urlrewritingnet" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"
/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"
/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"
/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<robo.webProfile>
<webProfileSettings className="ProfileUtil" nameSpace="CustomNameSpace" directory="CodeFiles" fileName="ProfileUtil" />
</robo.webProfile>
<urlrewritingnet rewriteOnlyVirtualUrls="true" contextItemsPrefix="QueryString" defaultPage="default.aspx" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
<rewrites>
<add name="SiteWideRewrite" virtualUrl="^(.*)/(.*).html" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/index.aspx?URLPath=$1&URLString=$2" ignoreCase="true" />
<add name="SiteWideRewrite_2" virtualUrl="^(.*)/(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/index.aspx?URLPath=$1&URLString=$2" ignoreCase="true" />
</rewrites>
</urlrewritingnet>
<appSettings>
<add key="MediumImageFolder" value="C:Users" />
<add key="SiteUrl" value="http://www.mysite.com" />
</appSettings>
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="default" connectionString="Data Source=mydbSQLEXPRESS;Initial Catalog=CoreCms;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="LocalSqlServer" connectionString="Data Source=mydbSQLEXPRESS;Initial Catalog=CoreCms;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<profile defaultProvider="CoreCms.ProfileProvider" inherits="CoreCms.Profiles.SiteProfile">
<providers>
<add name="CoreCms.ProfileProvider" type="System.Web.Profile.SqlProfileProvider" applicationName="/" connectionStringName="LocalSqlServer" />
</providers>
</profile>
<roleManager enabled="true" />
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
</providers>
</membership>
<webParts>
<personalization defaultProvider="AspNetSqlPersonalizationProvider">
<authorization>
<allow users="*" verbs="enterSharedScope" />
<allow users="?" verbs="enterSharedScope" />
</authorization>
</personalization>
</webParts>
<authentication mode="Forms" />
<authorization>
<allow users="*" verbs="enterSharedScope" />
<allow users="?" verbs="enterSharedScope" />
</authorization>
<customErrors mode="Off" />
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<webServices>
<protocols>
<add name="HttpSoap" />
<add name="HttpPost" />
<add name="HttpGet" />
<add name="Documentation" />
</protocols>
</webServices>
<httpModules>
<add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpModules>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpHandlers>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5" />
<providerOption name="WarnAsError" value="false" />
</compiler>
</compilers>
</system.codedom>
</configuration>
<!-- Web config file end -->
View 4 Replies
Jun 28, 2010
I've recently upgraded VS 2008 to VS 2010. On our server we have IIS6 installed and we can not change that in near future. Even though we will develop new applications to be deployed on IIS7 but if situation demands we may need to develop an application using .net 4.0 and to be deployed on IIS6, then in this case I wanted to know whether IIS6 supports .net 4.0 application or not?
If I can deploy, then do I need to take care of any configuration or any other setting I should change before deploying it?
View 4 Replies
Aug 30, 2010
I added the following lines to Application_Start method in global.asax:
var provider = new TestVirtualPathProvider();
HostingEnvironment.RegisterVirtualPathProvider(provider);
Yet the 'TestVirtualPathProvider' is never used when deploying this application in IIS6 (it does in the ASP.NET Development Server).
Edit: the default path provider has always done its job correctly and served (non-embedded) views correctly. The problem is simply that I want to use my own path provider to provide embedded views. So, initially, I already had the following wildcard mapping configured:
Any possible reasons why this does not work in IIS6? Are there any other factors (handlers for example) wich might influence the used VirtualPathProvider?
View 4 Replies
Jan 24, 2011
I have a error when I'm trying to browse the web service in IIS6. I checked with a sample textile with the IIS6, its working fine. But when I'm rying to browse the asp.net web service it getting fail. The same web service working with some other machine, but not with this machine. see the screen for the error information
View 11 Replies
Jan 21, 2011
I have a error when I'm trying to browse the web service in IIS6. I checked with a sample textile with the IIS6, its working fine. But when I'm rying to browse the asp.net web service it getting fail. The same web service working with some other machine, but not with this machine.see the screen for the error information
View 17 Replies
Feb 16, 2010
add php Extension to IIS6 and IIS 7 via Code in C# using WMi (System.Management). I cant use DirectoryEntry.
I am stuck with adding a new ScriptMap Object to IIS 6/IIS7.
I have read some posts at here and there and heard that adding new WMi object from Scratch is difficult.
I want to enable IIS 6/IIS7 to handle php as well as aspx files and be able to process them. I have extracted php zip archive to a directory on my system (not installed it). The propblem is i am able to modify existing ScriptMap objects but i dont get to understand the add a new ScriptMap Objects.
Also i am not sure whether adding the a new extensiuon handler to ScriptMap will solve the problem or not.
View 2 Replies
Jan 26, 2011
We have an old windows 2000 running IIS 5.0 on this server we have a few asp pages that use a connection to our SQL database.
This all works fine. But because we are going to deposal this server it has to move to a newer server running IIS 6.0.
I installed IIS and ASP and it looked ok, after that we moved over the webpages to the new server edited the web.config connecting to the new SQL database 2008 ( that's also moved )
But what I try I keep getting the same error, Page cannot be displayed.
View 3 Replies
Feb 5, 2010
I've been tasked with looking into performance tuning my company's intranet server. It runs DotNetNuke which suffers from poor performance. It also runs a number of other web apps (mix of asp and asp.net).
Could anybody give me a brief list of common performance tweaks that can be made to IIS6?
View 1 Replies
Aug 30, 2010
I'm running an Asp.NET MVC 2 app under IIS 6.All pages are behind Windows Integrated Authentication except for some pages that accepts anonymous access.We setup these pages in the web.config with the location element like this
<location path="MyPath/ToThePage">
<system.web>
<authorization>
[code]...
this is an Asp.NET MVC app, the path indicated in the path attribute points to an action method not a physical location.When this was running under IIS 7 integrated mode it was working fine. But when we switched to IIS 6 we get the login prompt even with the pages that are set to accept anonymous users.ow to make IIS 6 authorize anonymous access to non physical paths ?
View 1 Replies
Feb 19, 2010
Recently I got a strange behavior, the website hangs and just doesn't reply unless I go to iis and restart either app pool or whole IIS - BUT what is the most strange thing is that in case I go to remote desktop of the server and try to access it locally it DOES work just fine. I read couple threads about deadlocking and hanging because of memory leaks and non closed sql connections BUT why it still does work from the local?In case there is something wrong with the code - why does it still work from locally?
View 2 Replies
Aug 5, 2010
Deploying my MVC 2 application onto the IIS6 works more ore less fine, but after changing the MapRoute
inside the Global.asax to
routes.MapRoute(
"Default", // Routenname
"{controller}.aspx/{action}/{id}", // URL mit Parametern
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameterstandardwerte
);
routes.MapRoute(
"Root",
"",
new { controller = "Home", action = "Index", id = "" }
);
I changed the Url inside the web.config and the logOn view is called correctly, when I am trying to access
an action with the [Authorize] attribute.
But, after filling in Username and password I am having problems when I want to log on, it is showing :
Cannot find Url Access.aspx..
Looking into the source of the page I can see the following:
[Code]....
View 1 Replies
Oct 26, 2011
IIS6 VS2008 .... I am trying to make a site that some folders will run on different ports of IIS but with the same site name.
So p.e. i would like mysite.com and mysite.com/hello to opetate on port 83 and mysite/otherport to operate(with any subfolders) on port 84.
Is this possible?I want to have 2 different membership databases on the same site so i'm thinkg either host a complete different site inside mysite/otherport or have multiple web.configs on the inner folders.The site is actually redirected to a server IIS so p.e. the site mysite.com is actually redirected to myserver.myiis.com:83
View 5 Replies