iis7

IIS redirect url for virtual directory

Hello, How i can set redirect url for virtual directory in iis 7.0.I have installed lates url rewrite module 2. ? I could explain my problem with exsample. I have website on my iis 7.0 server: www.mysite.com I desided to create virtual directory sales under my site which is pointing to website root directory.Now I need create redir...

ASP.NET Dates Deployment Issue

Hi guys, I recently bought some webspace with dailyrazor.com. I have deployed an application I have been working on to the server and am currently trying to workout the bugs but I can't seem to solve this one. I have set up my database in Visual Studio to use the one I have create with dailyrazor the same db the deployed version will u...

Drawing with GDI+ under IIS

I'm running a web application under IIS that we draw graphs with that are sent to the clients. We were previously running under iis6, while migrating to 2008 ( iis7 ) we have encountered some very weird issues with the graphing. I stumbled across the msdn docs for GDI+ stating that "GDI+ functions and classes are not supported for use ...

check status application pool iis7 with csharp (access-denied)

I need to monitor the status of an application in the applications pool of IIS 7 from an other machine on the same domain. My monitoring application must be in C# and running as a Windows service. On my server, I create a user with administration rights and I execute the command aspnet_regiis -ga machine\username wich worked succesfully...

Access problems with IIS 7 and a WCF service

I have a Silverlight app that calls a WCF service, the service calls some stored procedures in an SQL db using Visual Studio 2008's Link to SQL class and returns the information to whatever called it. I have set up the compiled project (website with embedded app and the WCF service) on an remote IIS 7 server. I recompiled my local copy ...

HttpRuntime.Cache scavenging default behavior?

When adding items using the default insert method Insert(key, value) and as such using the default behavior of HttpRuntime.Cache, when does the scavenging take place? The limit on the application pool that hosts my application is 0 (unlimited)... but I see no way to find out how big the cache can get before scavenging occurs? The proble...

How do I cache WCF REST web service in IIS7?

When I turn on output caching for my service it doesn't appear to be cache-worthy in IIS. It really should be since I'm returning the same JSON content over and over. The varyByQueryString option seems like it would do the trick, but since my resources are URI based, there really isn't a query string, just a path to a resource. Has an...

How do I properly host a WCF Data Service that connects to SQLServer in IIS? Why am I getting errors?

I'm playing around with WCF Data Services (ADO.NET Data Services). I have an entity framework model pointed at the AdventureWorks database. When I debug my svc file from within Visual Studio, it works great. I can say /awservice.svc/Customers and get back the ATOM feed I expect. If I publish the service (hosted in an ASP.NET web appl...

IIS redirect from non-www or *.domainname.xyz to www.domainname.com without additional IIS site or DNS entries

Hi everyone, now we all know that the best way to stop the search engine known as Google to avoid indexing http://domain.com as a different site to http://www.domain.com/ is to do a permanent (301) redirect through IIS, or to add a DNS entry that makes www.domain.com the canonial name for pretty much anything under that domain (eg. wild...

URLRewriter.net sends 404 when uploaded to server with IIS 7, but works on localhost

Hi. I have "installed" URLRewriter.net to my website, and it works just fine when I run it from Visual Studio, but as soon as I upload it, I get a 404. Example: http://dkbyg.strandweb.dk/FAQ Application Pool has been changed to "integrated", because my host suggested that could be it. It didn't work though. Any ideas? ...

Mixing Anonymous Authentication with Windows Authentication in IIS 7

Is there any possible way to mix Anonymous Authentication with Windows Authentication, or even Basic Authentication in IIS 7? My ideal setup would all attempt to authenticate with Windows or Basic Authentication and if that fails fall back to Anonymous Authentication. The problem I'm running into is that with any of the possible combin...

securewebpages tag in web.config is not working in IIS 7, with integrated mode app pool.

We have our application running on IIS 7, the application pool configured was classic. I have to changed some url re-writing to change the urls and removed .aspx as an extension from the urls. After deploying I have found that url re writing works with integrated mode only and secure pages stopped working. ie pages which are used to ope...

Creating a HTTP handler for IIS that transparently forwards request to different port?

I have a public web server with the following software installed: IIS7 on port 80 Subversion over apache on port 81 TeamCity over apache on port 82 Unfortunately, both Subversion and TeamCity comes with their own web server installations, and they work flawlessly, so I don't really want to try to move them all to run under IIS, if th...

Disk-based caching of dynamic images in IIS 7

I'm writing an image server which needs to handle a relatively large number of concurrent requests (~5,000). The images being served are dynamically scaled down and cropped based on per-image specifications, which are queried from a database. The number of images is rather large, so an in-memory cache isn't viable (thrashing would most ...

Unable to use IIS7 with Visual Studio 2010, MVC2.0 and NET4

Here is my environment Windows7, Visual Studio 2010, MVC2.0 and NET4 My default web site is configured to use ASP.NET v4.0 application pool. Here is an easy way to reproduce my problem Create a new MVC2 application Open the properties Window Go to the Web tab Check "Use IIS Local Web Server" Click on "Create Virtual Directory" button ...

Deploying WCF Tutorial App on IIS7: "The type could not be found"

Hello, I've been trying to follow this tutorial for deploying a WCF sample to IIS . I can't get it to work. This is a hosted site, but I do have IIS Manager access to the server. However, in step 2 of the tutorial, I can't "create a new IIS application that is physically located in this application directory". I can't seem to find a men...

ASP.NET Configuration granularity between Machine-level and Site-level?

I want to be able specify to do the following: Specify configuration settings such as appSettings and connectionStrings for multiple web apps in IIS7 No editing Machine.config or the machine-level web.config Web apps are distinct web sites in IIS (not subfolder apps) Is this possible without just duplicating the configs for each app?...

Does mod_rewrite work for windows servers too?

Does mod_rewrite work for windows servers too? If not, how does windows use regular expressions the same way you can using the .htaccess file in Apache? ...

ASP MVC: Sending an E-mail

Okay I'm kindoff new to the .NET platform. And currently i'm learning ASP MVC. I want to send an e-mail from my program and i have the following code: public void sendVerrificationEmail() { //create the mail message MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddres...

Does IIS write log information to a temporary file before /LogFiles folder?

I've noticed that on one of our production servers, IIS doesn't seem to immediately write to the log file where you would expect to see it. Is this because it writes the log information to a temporary location before sending it down to the proper location? ...