iis

Creating virtual application/directory in physical folder on IIS/ASP.NET

What I want to achieve is simple: I have a website, say "my-site" - http://localhost In this website I have a (physical) folder "foo" - http://localhost/foo Inside the "foo"-folder I want to have a virtual directory (application?) called "upload", so the URL becomes http://localhost/foo/upload Notice that "my-site" is an empty websit...

IIS7 Authentication on Server 2008

I recently upgraded my Server 2000 running IIS6 to Server 2008 running IIS7. Servers are stand alone, no A/D. I have a website designed with Frontpage 2003 running Server Extensions 2003 which I also migrated to my new Server 2008. Site on old server required username and password which I set up to allow access by disabling annonomous a...

Problem with Authorization with IIS and MVC

Hello , Got some problem with settings up the Authorization. First i got : <authorization> <deny users="?" /> </authorization> So i deny all unknown users and then allow them to view those pages: <location path="Default.aspx"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </locat...

Amazon S3 Url rewrite

How can I change the Amazon S3 url from http://bucket.amazons3.com/imagepath.jpg to http://image.mydomain.com/imagepath.jpg EDIT: Basically the whole reason for this is to hide the amazon s3 url from my users. I was thinking about a HttpModule that would redirect the request from image.mydomain.com to bucket.amazons3.com. But ...

Crystal Report RDC on IIS 7

We recently upgraded to a new server, we were running Windows 2000, and now we are running Windows server 2008. We have a bunch of reports created in Crystal reports that are having an issue printing now. We use the ASP RDC(report design component). The reports are loaded and can be displayed, but when you try to print them, it takes abo...

Detecting if a HttpModule is loaded

I'm trying to find a way to programmatically check if a particular HttpModule is loaded (as a component I'm writing requires the module to work correctly). I'm trying: bool ismodulepresent = false; foreach(HttpModuleAction module in ((HttpModulesSection)ConfigurationManager.GetSection("system.web/httpModules")).Modules) { if(module...

Need help with setting up SSL

Newbie IIS question: I want to setup HTTPS access for my XHTML page (not asp.net) hosted on my IIS 6.0 server. So far I have done the following: In IIS Manager, for the particular folder, the following are set: Require secure channel (SSL) Require 128 bit encryption Ignore client certificates However when I try to access the page...

ASP MVC server requirements - Is Server 2008 very desirable?

I read in a few places that MVC requires Windows Server 2008 for full support. Can the same be achieved on a Vista Ultimate dev machine or will some things be missing? If you have worked with MVC, have you had trouble finding relatively inexpensive hosting for Windows Server 2008? Though hosting is not as big a concern for me right (I k...

ISAPI rewrite question on IIS

I have the following rules: RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteRule ^blog/?$ http://blog.example.com/ [P] RewriteRule ^(blog/.*)$ http://blog.example.com/$1 [p] RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule ^(.*)?$ http://www.example.com/$1 [L,R=301] What I'm trying to achieve, and it works up ...

Secure Certificate Problem

I recently installed a secure certificate for a web site I help maintain. When I'm at work and on the network where the webs server is I can navigate to secure pages (https) fine. When I try to access the same pages from outside the network (like from home) I get an error. Here is an example page from my web site: https://www.acpe.org/My...

How to safetly export all IIS settings from one server to another?

I am trying to build a virtual machine that clones one of the servers used in production instances of our webapp so that we can do deployment testing on it. I have gotten all the necessary files over, IIS installed, the database up and running. To my eye all that remains is to copy all the IIS settings from a production environment to ...

How do I set up a local ASP.NET 2.0 site in IIS7 for local testing?

This thing is so confusing compared to the old IIS, I haven't even found where to pick the version of .NET still. I had to comment out the and from my web.config because I kept getting: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by defa...

Deploying an ASP.NET MVC app to IIS7 and keeping a clean web.config

I'd like to deploy my ASP.NET MVC application to a web hosting company (like DiscountASP.net). I'm confused about what needs to be in the web.config file on the web server. When I create the project locally, I get a bloated web.config with all sorts of additional modules, handlers, compilers. Do I need to add all these items to the pr...

iPhone SSL client certificate not working

Authenticating user with RSA certificate through iPhone' Safari browser not working with IIS website. I cant get it working. IIS just gives up with "client certificate required" error and safari doesn't provide certificate. Client: iPhone 3G latest firmware CA and user certificates deployed (it shows them as unsigned) Server: II...

What are the minimum security permissions for a website in ASP.NET?

Can someone guide me to a reference for the minumum security permissions on each webfolder in an IIS7 website? For Users, Admin, System, Network Service? I have Network Service as a DB Owner on SQL as well, is this necessary or should I restrict access from it? EDIT: MVC FOLDERS SPECIFICALLY ...

Track IIS Internal Error

I use JavaScript to post an Asynchronous Request to a Web Service. This works about 95% of the time. Sometimes, the request fails to be processed. Below is the error message in the Trace file of IIS: 2009-02-24 06:14:40 W3SVC861612620 10.248.24.20 POST /TestWebService /TestWebService.asmx - 3112 - 10.250.201.45 Mozilla/4.0+ (c...

Restrict Users from Opening the XML file from a project folder, dot.net

I have a "resource" folder in my solution file which contains the xml files. It is available to remote, unauthenticated Internet users and I wanted to deny access to all the users.If they know the files name they can access it thru url. eg: example.com/common/resources/test.xml Hence I wanted to deny access to that folder or move it to...

What are the performance implications of wildcard mapping all requests through IIS 6.0?

I am interested in using UrlRewriter.NET and noticed in the config page for IIS 6.0 on Win2k3, that they say to map all requests through the ASP.NET ISAPI. That's fine, but I am wondering if anyone has good or bad things to say about this performance wise? Is my web server going to be dragged down to its knees by doing this or will it ...

Is there a good way to create a recurring import for an ASP.NET site?

The site I'm working on is running Windows Server 2003 and SQL Server 8 (2000?), and ASP.NET 3.5. I need to have some sort of script or application run to import data from an FTP'd text file, into the database. There is already a site running on the machine, that uses the current database. Can I use a scheduled task to reliably kick o...

Reset IIS on multiple servers at once instead of looping through

I am trying to reset IIS on a set of servers all at one time instead of looping through and resetting each one individually, but I can't seem to figure out how to do it. Could someone please give me an example? Thank you I am using System.Diagnostics With m_Process.StartInfo .FileName = strFileName ...