iis

Custom certificate validation in WCF service

Hi. I want to check client certificates in my WCF service. My goal is to allow only clients with certificates with specific thumbprints to be able to communicate with my service. My WCF service is hosted in IIS, I'm using basicHttpBinding and security mode="transport" with credential type "Certificate". IIS requires client certificat...

IIS WCF service hosting vs Windows Service

Hi, We developped a WCF service and we're looking to deploy it. Our clients will be using it with basicHttpBinding but our internal team will be using it with namedPipesBinding. We are wondering if is it better to host it in IIS 7 or with a Windows Service ? We ran some tests and we found out that when we're adding bindings in IIS, it ...

How do I maintain state across multiple web servers?

Can I have multiple web servers hooked up to a SQL Server cluster and still maintain a user's session? I've thought of various approaches. The one suggested by the Microsoft site is to use response.redirect to the "correct" server. While I can understand the reasoning for this, it seems kind of short sighted. If the load balancer is ...

Deploy WCF Services in SharePoint Without Modifying Web.Config?

I'm exploring the possibility of deploying WCF services to a SharePoint Farm/WebApplication/Site/Web via a SharePoint feature without using the SPWebConfigModification class or manually editing web.config. The Gille virtual path fix has already been applied so it doesn't factor into this. The furthest I've been able to get thus far is cr...

ValidateInput(false) doesn't seem to work when running under IIS

When I run my ASPNet MVC 2 Preview 1 website under VS dev server, it works just fine when I do a form post with Form Method "Get" - the form has a textbox with text that has angle brackets (for ex: "i < 10;") However under IIS, when the same form is posted (using Method "Get"), I get a 404 page not found. The resource cannot be found. ...

Is the Perl .plx filename extension ever used in real-life?

ActiveState Perl installs an IIS script mapping for the extension .plx. Is this actually used in real life or just something specific to ActiveState? ...

Removing a Section from Web.Config

I know you can use <remove /> to remove keys. I tried to use that though for a section in my web.config, I guess that you can't remove sections? And what if I wanted to remove the entire group "webServices" ?? <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Versi...

IIS application with virtual directories running code in ASP.NET

If I have an ASP.NET application in IIS with virtual directories, can aspx pages in the virtual directories access DLLs within that application as well? WEBSITE -App___Data -App_Themes -Bin -MyDLL.dll -Images -MyVirtualDir -MyAspPageThatNeedsToAccessMyDll.aspx Is this possible? ...

Allow special charcters in IIS request URLs

Currently, when I try to hit certain pages of my site via something like http://www.domain.com/&lt; (which is a valid URL), I get a blank page with the text "Bad Request" on it (and nothing else). This happens with both the escaped and unescaped version of the URL. I'm fairly certain this is due to IIS6 not liking the < character (whic...

Com Error on server

Yesterday i started getting server too busy errors on some websites we are hosting. So I logged on the server and took a look at the event viewer about 4 time / minutes im getting this error : Log Name : Application Source : Complus Event ID : 4689 error Msg : The run-time environment has detected an inconsistency in its internal st...

HttpContext.Current.User.Identity.Name is Empty

I have a silverlight application (using MVC) and when i'm building in visual studio, using Visual Studio Development center, there's no problem, the HttpContext.Current.User.Identity.Name has a Value But when i'm using the same project with IIS 7.5 (i'm using Windows 7), HttpContext.Current.User.Identity.Name stays empty Anyone who can...

Setting NTAuthenticationProviders at an Application level in IIS 6

I have the following structure in IIS. Internet Information Services > (local computer) > Web Sites > Default Web Site > MyApplication MyApplication is a Application in IIS. Integrated Windows authentication is NOT set on the Default Web Site. However I want to set Integrated Windows authen...

Mapping classic asp pages to .net in IIS

I'm trying to map requests for classic asp pages to be handled by .net, so that it runs through a custom httpmodule. In IIS I have remapped asp requests to aspnet_isapi.dll - I'm sure I've done this bit right Now in my test app I am getting this error: Server Error in '/TestASPRedirect' Application. -----------------------------------...

HTML form POST to default document (w/o specifying Default.aspx) fails with "405 Method not Allowed"

When an HTML form is posted to a website without specifying the actual page name, it doesn't work. Non-working code <form id="userinput" method="post" action="http://website1/"&gt; Working code <form id="userinput" method="post" action="http://website1/default.aspx"&gt; 'Default.aspx' is the startup page for this website (configu...

Will a Change to the IIS Home Directory Path Trigger a Restart?

In IIS (6.0 specifically), under the Home Directory tab, if I change the local path, will this cause either IIS to restart or the application pool to recycle? Related, is there a reference that outlines which changes to the IIS metabase will trigger either a restart or app pool recycle? I haven't been able to find this yet. ...

Setting permission for PHP (or I_USER [I'm not sure here...]) to connect to iisweb.vbs

I have been trying to figure out a way to manage our domains at work and easily created a SimpleDNS class, but now I'm on the IIS Server Administration side of it and I'm just lost on what is going on. Here is the PHP code I am running to test it. <?php $cmd = 'iisweb /create c:\websites\examplesite.com\www "Example Domain!" /d www.exa...

Calling custom UrlAuthorization module with every page load

I have implemented a custom UrlAuthorization module as shown here The code is as follows: public class CustomUrlAuthorizationModule : IHttpModule { public void Init(HttpApplication context) { context.AuthorizeRequest += new EventHandler(context_AuthorizeRequest); } void context_Author...

Redirect all HTTP-Requests with *.asp to one single file

Is it possible on an IIS to redirect all files with the file extension .asp to one single file (i.e. switch.php, switch.cfm) and how? Thx in advance for the upcoming solutions :) EDIT: version of IIS is "IIS 6.0" ...

Server Error : The server closed the connection while reading the response.

I have windows xp and iis installed , when I want to access localhost to view asp pages , I get the following error : Server Error The following error occurred: [code=SERVER_RESPONSE_CLOSE] The server closed the connection while reading the response. Contact your system administrator. Please contact the administrator thank you . ...

What is the most secure way to connect a ASP.NET 3.5 web application and SQL Server database?

I have a web application developed in .net 3.5, and a SQL Server database. Current auth method is a connection string in web.config, it seems like a good idea to move the authentication details out of plain text. So, I have two questions: Trusted Connection - The password policy here is strict, requiring frequent changes. Does this m...