iis

Sending Mail using PHP on IIS 7 - Windows 2008 Server

Hi, I'm having trouble sending mail using PHP mail() on IIS 7 using Windows 2008 Server. The server is dedicated, thus I have full control over my machine. php.ini looks fine - ([mail function] is configured) I don't get any error from mail() (with the right parameters of course) btw - I got ASP and ASP.NET sending mails without any pro...

Strange error with WIF RTM, occurs after reset IIS

I am hosting my web application on windows server 2008 with IIS 7.5, I have 2 web applications: 1. the first one is the core sso (Single Sign-on) service with a login page. 2. another web application is hosted on the same web server which use the first app for sso. I am using the WIF RTM to implementation the sso, usually, it is runn...

ASP.NET 3.5 Permissions on IIS 6

Hi, I have an asp.net page which changes passwords in the OU, Where do I set the user which actually runs my code? In the virtual directory security settings, the application pool user? or the Webconfig? Which one of the configurations actually configures the user which runs the asp.net code? Thanks. ...

Publish WCF service with Visual studio 2008

I have a WCF service project, and try to host it with IIS. In visual studio 2008, I right mouse click the project, and use the command "Publish" It publish to the directory I pointed to, but it puts the binary dlls in directory bin\release or bin\debug And I try to browse the svc, and it gives me the error message: The type 'xxxxxxxxxx...

Relitve path for MSXML2.ServerXMLHTTP.6.0 not working

I have this code which works but I need to stop using http in the string as it sometimes is on a https servers. Hence my wish to change it to a relative path e.g. Url = "../../path/to/file.asp" but when make the change to this code we get this error. msxml6.dll error '80072ee6' System error: -2147012890. I am sure I missing somethin...

Put all webapps in the server offline

Sometimes we need to do maintenance in the web server. In the period of time that this maintenance occurs, I want that a user-friendly page be displayed to anyone that tries to access our apps. I know about the app_offline.htm file. But using this "trick" I would need to put a file per web application in the server, right? We use IIS ...

How to completely script the process of importing SSL certificate and binding this certificate to a specific site

I have been looking around for a solution for this problem that works across different versions of Windows Server & IIS, but so far I couldn't find a reasonable solution, what I need is some sort of a script or a command line tool, that takes a certificate file (pfx) for example and then either using the same script or tool find a way to...

WCF client side certificate validation : changing address : identity dns value seems to be ignored

I'm using wsHttpBinding with TransportWithMessageCredential, message clientCredentialType="UserName" Trying to configure my service client to work against my public deployed address, I tested first by changing to "localhost", since localhost is the same IIS instance, just going through loopback instead of my PC's hostname. With loopback...

Are there any performance considerations from referencing a 5MB .Net assembly?

Today a co-worker mentioned he had issues with a large "enterprisey frameworky" project that when compiled was 5mb in size. The concern was that to use a even a small piece of functionality of the assembly you had to reference the entire thing and that is bad for some reason. I'm wondering if there are any performance or other disadvan...

Impersonating a user from a Java Servlet

Given a Java Servlet (running on a Windows server) which creates a new process via ProcessBuilder, what are my options for having that new process run as the user who invoked the original web request to the servlet? To clarify, what I want is that something like ProcessBuilder pb = new ProcessBuilder("whoami"); Process p = pb.start();...

IIS Authentication and scaling

Hi me and my team are about to build a Webb service application with Silverlight with a potential to be used by hundred of thousands users. Each user has roles and privileges and belongs to a company and each company has their own database and so on. When a user logs in I thinking of storing the user-id and the connection-string to the ...

IIS6 freezes when running ASP.NET MVC site on Windows Server 2003

I have an ASP.NET MVC website deployed on IIS6 running on Windows Service 2003. Every day around 12:30 (and occasionally at other times), the w3wp.exe process goes up to 99% CPU, won't serve any pages, and will continue to remain stuck until I do an IISRESET. I work at a small place, and I admit that it's not the optimal server setup (...

problem in running website from IIS.

I have pasted my website's folder in wwwroot folder of IIS. now when I try to access default page of my website from Mozilla Firefox I get the following exception. Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please rev...

Which web server I need to install and how?

I would like to install a web server on my Window 7. I found instructions for installation of Apache on Windows 7. But as far as I understood I need to have the administrator permission to do so. Am I right? I also though that it is probably a good idea to install another web server (like a native one) on my Windows 7. I thought it shou...

Increase Stack size IIS ASP.NET 3.5

Hi, I undertand that the stack size on ASP.NET was decreased to 256K instead of 1MB, how can I get it back to 1MB. Please help. Thanks. ...

Asp.Net MVC missing style and defaults to logon page

I just setup an out of the box "W2K8 R2 Web" server and installed IIS 7 out of the box. Then I installed the .NET4 framework and ran "aspnet_regiis -i" command. I created a site using .NET 4.0 Integrated app pool. I created an MVC application using the default MVC project template, without modifying I compiled the project and deploy th...

How to secure Elmah working with ASP.NET and IIS 5.1 URL Routing

This question builds on the following question: How to get Elmah working with ASP.NET and IIS 5.1 URL Routing The solution suggested there worked, as long as elmah.axd is off of the root of the site. What if you want to secure the site as blogged here: Securely Implement ELMAH For Plug And Play Error Logging? Moving elmah.axd to /admi...

C# session object

How do I create a class library where I can get and set like the IIS session object...where I use var x = objectname("key") to get the value or objectname("key") = x to set the value? ...

Browser pops up window asking for username/password with ASP.NET app

This application is using windows integrated authentication in IIS. No anonymous login. It's also using an application pool defined to log on with a domain user. If a try to browse any page, it pops up the username and password dialog box and even though I entered a valid user (including the domain administrator) it doesn't log on into...

Error Type: Microsoft VBScript runtime (0x800A0046) Permission denied

I am getting this error when i try to access an asp website which has been hosted in IIS 5. Error Type: Microsoft VBScript runtime (0x800A0046) Permission denied /Site/Initial.asp, line 164 Please let me know what could be is issue??? ...