iis-7

Run PowerShell script from ASP.NET

╄→尐↘猪︶ㄣ 提交于 2019-12-24 20:41:10
问题 I have been trying out running a PowerShell script from asp.net with no success for a few days already. The C# is: using (var process = new Process()) { ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = @"powershell.exe"; startInfo.Arguments = "arguments that call the script here"; startInfo.RedirectStandardOutput = false; startInfo.RedirectStandardError = false; startInfo.UseShellExecute = true; startInfo.CreateNoWindow = true; process.StartInfo = startInfo; process

Non-http Protocol Support in windows xp or Windows Server 2003? (net.tcp)

让人想犯罪 __ 提交于 2019-12-24 20:10:22
问题 Will it be possible for windows xp or windows server 2003 to support net.tcp for WCF, well it works in windows server 2008 as IIS 7.0 supports net.tcp,but is there anyway for IIS 5.1 or IIS 6.0 to support net.tcp,is there any workaround for this? 回答1: No, you will have to host it yourself (windows service for example) to use net.tcp. See this article for a list of hosting options and what transports they can host. 回答2: I don't believe you can host non-HTTP bindings in IIS 6.0. In IIS 7.0 you

Redirect https to http without SSL - IIS 7

自古美人都是妖i 提交于 2019-12-24 19:24:03
问题 I recently moved my website from Wix.com to one that I created on GoDaddy (Windows server). Wix.com version used https, and the latter doesn't. Searching for the website on Google still lists the "https://*" version (which doesn't exist anymore) instead of listing the "http://" version. Question 1: How should I redirect visitors from https to http version without having to set up SSL on the new website? Adding this to web.config didn't help: <rewrite> <rules> <rule name="Redirect to HTTP"

Application Pool Status in IIS 7

有些话、适合烂在心里 提交于 2019-12-24 13:01:55
问题 I want to get status of a Application Pool. I have vbscript taken from here. strArgAppPool = Wscript.Arguments.Unnamed.Item(0) Const noError = False ' Establish the connection to the WMI provider Set oWebAdmin = GetObject("winmgmts:root\WebAdministration") ' Search the AppPool passed as argument in the list of application pools Set oAppPool = oWebAdmin.Get("ApplicationPool.Name='" & strArgAppPool & "'") ' Create nice messages for pool states Select Case oAppPool.GetState Case 0

mvc mini profiler - IIS7 issue

試著忘記壹切 提交于 2019-12-24 11:09:19
问题 similar to this question mvc mini profiler (1.4) & IIS I am running IIS 7.5 and my app pool is run in integrated mode on a Webforms site and when the requests for the mini-profiler-includes files happen i get a bunch of 404 errors? the only things i have changed are that i removed the MVChelpers folder and the MVC reference because we do not have them installed on our site. It works fine from VS2010 Any ideas what I need to do to fix this? THANKS 回答1: google knows all... sometimes i just need

IIS Application Pool Identity to use Logged On User Windows Identity

亡梦爱人 提交于 2019-12-24 11:03:15
问题 I'm developing a web app that performs Active Directory updates using LDAP . When I host the app on an IIS 7, I get the Access is denied error at the statement directoryEntry.CommitChanges(); . Then I found out that the application pool is using the identity "IIS APPPOOL\ASP.NET v4.0" to perform the update. I need the window's account of the user who is using the web application to be the identity of the application pool. I have done the following: Add > authentication mode="Windows" in web

Deploy MVC 3 Site From LocalHost to IIS (Directory Listing Denied)

邮差的信 提交于 2019-12-24 10:56:12
问题 I have my site at: http://localhost:55649/ I want to move it to: \\10.0.0.169\Inetpub\wwwroot\MyOldWebsite\NewSite I read this http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx and clicked "Add Deployable Assemblies" but I get the error: Directory Listing Denied This Virtual Directory does not allow contents to be listed. What can I do to fix this error to make the site work? 回答1: When you get that message it tends to be because routing isn't working and the site is

Why does HttpContext.Current.Request.Url.AbsolutePath return an empty string?

时光怂恿深爱的人放手 提交于 2019-12-24 10:14:54
问题 When user requests http://localhost/WebApp1/Default.aspx , txtApplicationPath.Text should be assigned “/WebApp1” , while txtAbsolutePath.Text should be assigned “http://localhost/WebApp1/Default.aspx” , but instead both textboxes display empty strings. Why? Default.aspx: <asp:TextBox ID="txtApplicationPath" runat="server" Text='<%# HttpContext.Current.Request.ApplicationPath %>'> </asp:TextBox> <br /> <asp:TextBox ID="txtAbsolutePath" runat="server" Text='<%# HttpContext.Current.Request.Url

Sessions/Session IDs being assigned to more than one user

依然范特西╮ 提交于 2019-12-24 09:37:25
问题 I hope someone out there has some update to date information on sessions and their IDs. I'm running on IIS 7 and we're seeing Sessions assigned to more than 1 IP address. I ruled out the possibility of it being caused by users resetting their IP addresses, for instance by unplugging their modems. In at least one instance a user logged in and found data from a different user in had been saved to his account (the user IDs that determine in which account the data is stored are kept in session

WCF Service. Can't host in IIS7

纵饮孤独 提交于 2019-12-24 09:26:05
问题 I have a very simple WCF service and I am trying to host it in my local IIS. I get this error all the time: HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. I tried to change Application Pool to Classic, but still doesn't work. I tried bunch of other web sites but no success. Can anyone help on this please. UPDATE 1: I have my dll and pdb file in the bin folder and I have web.config like this: <configuration>