I have a script that creates an app pool, web site - and then I want to use adsutil to add the .xap MimeType.
I see this:
cscript adsutil.vbs set W3SVC//Root/MimeMap “.extension,mimetype”
However, since I am creating the web site in the same script I will not know the ID.
Would anyone know how to do this with adsutil?
Thanks,
Rich...
I've gotten URLRewriter to work on my localhot perfectly, but on production I get 404 errors.
I'm using IIS 6, and from what I read this should just work.
Here is what i have in my web.config:
<rewriter>
<rewrite url="~/(\d+)$" to="~/Items/Details.aspx?ItemId=$1" />
<rewrite url="~/Items/(\d+)$" to="~/Items/Details.aspx?Item...
Hi folks:
As title said, I cannot find aspnet_wp.exe in II6.
Where is it or replaced in IIS6?
Thanks.
...
Hi
I've posted this on Serverfaults also, but since it is a development problem to me, I'll try it here also.
I have a ASP.NET web app with normal login controls.
When I type in the following in my web broser: http_://localhost/WebApp1
The page renders, I input my login credentials, and I get logged in.
But when I type the following...
I have a WCF Syndication Service that works fine when run locally on Windows Vista or Windows 7, but when it is deployed to a Windows 2003 Server, it gets a 404 (Resource cannot be found).
Non-REST WCF services work fine on this machine, so I know that .Net 3.5 is registered correctly in IIS.
Any suggestions?
...
how to debug asp server-side script using MS script debugger.
...
Hi,
My InstallShield installer needs to install a file in the IIS Default Web Site's Home Directory, and set it to the default web page.
Unfortunately, in our environments, I can't assume that the home directory is C:\Inetpub\wwwroot, but I need to find out what it is.
Any idea on how I can do this with a script? We need to support...
I am trying to run my ASP.NET Web Application Project in my Local IIS Web Server instead of using the Visual Studio Development Server. It seems to only allow me to run my application in a Virtual Directory off of the Default Web Site. However, I would like to run the application in the root of the Default Web Site itself.
I go into t...
I'm running asp.net MVC site on IIS6 - I've edited my routing to look like the following:
routes.MapRoute(
"Default",
"{controller}.aspx/{action}/{id}",
new { controller = "Home", action = "Index", id = "" }
);
routes.MapRoute(
"Root",
...
The following is an entry I'm using to attempt to create a virtual directory in IIS 6:
[Run]
Filename: {tmp}\cscript.exe mkvirtdir.vbs; Parameters: "-c LocalHost -w ""Default Web Site"" -v ""ectUpload_Server""", {app},""ectUpload_Server"""; WorkingDir: {tmp}; Flags: skipifdoesntexist; StatusMsg: Creating IIS Virtual Directory"
I get t...
Hi all,
I currently have the following within my view
function loadData() {
var url = "/Testx.mvc/GetData";
var id = "111111";
var format = "html";
$.ajax({
url: url,
type: "POST",
dataType: format,
data: "id=" + id,
success: populateResults
});
}
function popula...
I have read pretty much EVERY blog post, article and help document published regarding this problem and they have not helped. The most common suggestions are:
Internet Explorer -> Tools Menu -> Internet Options -> Advanced -> Show Friendly Error Messages (make sure this is NOT ticked)
IIS -> Home Directory tab -> Configuration... -> De...
I am getting 403 error when publish an Asp.Net MVC app to IIS6. Any clue?
...
I'm running Windows 2003 R2 and IIS 6.0 with web applications written in ASP.NET.
I am looking for good samples of scripts (.bat, .cmd, .VBS, or powershell) to allow me to:
For websites:
Create website
Verify if website exists
Delete website
For virtual directories:
Create virtual directory
Verify if virtual directory exists
Del...
Hello
I have a strange problem with my MVC 1.0 application that I published on IIS6. When I try to surf to the pages no routes match and I get page not found.
I have installed 3.5sp1 on the webserver and everything needed.
Seems like there is lots of files missing (?) or the filestructure isnt the same as in my project folder.
What m...
I've followed advice on how to setup 404s by:
http://www.andornot.com/about/developerblog/archive/2009%5F10%5F01%5Farchive.aspx
and related:
http://stackoverflow.com/questions/667053/best-way-to-implement-a-404-in-asp-net
From Global.asax:
protected void Application_Error(Object sender, EventArgs e)
{
Exception exception = Se...
I have a asp.net 3.5 web application which is deployed on server 2003 and IIS 6. After running fine for a few weeks it goes "Down" and by down I mean that when I try and access it the browser looks like it's loading but never actually serves the page. After an IIS reset it loads quickly again.
My question is what are the steps and tool...
I'm having an issue getting the following syntax to work:
<rewriter>
<!-- This does NOTHING -->
<if url="whywontthiswork\.aspx" rewrite="/default.aspx" />
<!-- This redirects correctly -->
<redirect url="whywontthiswork\.aspx" to="/default.aspx" />
</rewriter>
As noted, the first rule does nothing no matter what I try...
I'm trying to use adsutil in an installation script of a web app I am installing on IIS 6.0 to set access control. There is a command that works as follows:
adsutil.vbs set w3svc/1/root/Authflags 4
This is the command for the default web site, as its Identifier is 1. However, new web apps are given a generated Identifier. In my cas...
Hello,
I have a flex app that allows the user to upload a file. The flex side uses the FileReference.upload method that goes to an .aspx page that handles the upload. It works only intermittently when I have IIS set to integrated windows authentication. That said, for testing purposes,I wrote a separate aspx page that does a file upl...