I'm trying to write a PowerShell script that will automate my IIS website deployments. I'm trying to run the scripts on my Windows Server 2008 R2 machine, under 32-bit in:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
Whenever I run a WebAdministration command such as this:
Get-Website -Name "MYWebsite"
I get an error l...
Hi all,
I'm using NLog in my ASP.NET application hosted on IIS and Windows server 2003. When I run the code on my develop machine, everything is Okay. But when I deployed the code to the server. The initialization of NLog target will cause an security exception:
Security Exception
Description: The application attempted to perform an o...
Hi all,
I've been experiementing with URL rewriting in IIS 6 and 7. On IIS 6, I've been using ISAPI Rewrite 3 and am trying to map URLs for one subdomain to another e.g.
http://subdomain1.domain.com/*
would be mapped to:
http://subdomain2.domain.com/*
I've tried to achieve this using:
RewriteEngine on
RewriteCond Host: subdomain1....
We're having some unusual problems with input to an ASPX web page under IIS 10.
Input parameter contains %A3 for the UK Pound Sign symbol.
When the parameter string is accessed within the C# page source, the url un-encoding has been applied and we get a question mark instead.
Believed that this was due to the default codepage being in...
We run various jobs using a Windows 2003 server. Some of these jobs send app pool commands to web servers running IIS 6 (recycle, start, stop). Now we have a Windows 2008 web server running IIS 7, and we want to send the same commands. This is all done using C#.
This is the code we use to send commands for IIS 6:
var methodToInvoke = ...
I find something related, but not same thing.
http://stackoverflow.com/questions/1269706/the-error-login-failed-for-user-nt-authority-iusr-in-asp-net-and-sql-server-2
My issue is that the files are shared on the network, and I would like to debug from local IIS, I find that all static files seems to be access denied (401.3)
I have use...
I am looking to deny access using aspnet_regiis and was hoping if anyone knew how to do this. So the opposite of this:
aspnet_regiis -ga <UserName>
...
Hi!
I discovered a problem related to Word documents (with macros) hosted in an IIS virtual directory.
Here is an example of a document with macro:
http://sites.google.com/site/wjatjoi/ExemploErro42482.doc
After countless tests, I got the problem with replicable success on any computer. It occurs in a very particular situation:
1 - ...
I have a Wix installed which creates a virtual directory in IIS via the following:
<DirectoryRef Id="INSTALLLOCATION">
<Component Id="VirtualDirectory" Guid="29BEECCC-AA5F-11DF-BBB1-9C0AE0D72085">
<iis:WebVirtualDir Id="MyVDir" Directory="INSTALLLOCATION" Alias="MyVDir" WebSite="DefaultWebSite">
<iis:WebApplication Id="MyApp...
I am trying to modify an xml file from my aspx code. The file is in another directory from my project like in D:\folder\file.xml When publishing my code and running it I am receiving an error as not to be able to access this directory, access in denied. Which user account shall I add to this folder in security option to be able to modify...
I'm trying to deploy an ASP.NET application using InnoSetup.
I need to perform the following tasks:
Create an IIS application.
Create a new IIS application pool and set it's .NET version to 4.
Set the application pool of the new application to the new application pool.
I have found a script to create a virtual directory, but I need...
Hello, I want to enable protocols for application in IIS to https,net.tcp using C# code. Can anybody help me with that ?
...
Processes launched via Process.Start seems to have around a 26-second delay when the spawned process (the "child") launches more new processes (the "grandchildren") - I'm trying to find a way to solve this issue. Specifically, this is occurring when the original process (the "parent") is an ASP.Net website or a Windows Service (tried bo...
I'm trying to add functionality to a simple web service that will allow me to log information to an XML file on the hard drive where the application is located. When I employ the functionality in a Console version of the application, the data gets logged to:
bin\x86\Debug MySolution.MyProject\MessageLog\TestMessagess.xml.
However, w...
I have an ASP.net application where Users aren't able to successfully complete certain actions, for reasons, I'm assuming, can only be related to losing their session (which is where I maintain their current user information, and how determine whether they are logged in)
I'm at a loss as to why they would lose their session, so my first...
I have enabled static compression for the websites in IIS, also I have the following settings in IIS applicationHost.Config file.
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
<staticTypes>
<add mimeTy...
I have an IIS hosted WCF service with SOAP 1.2 and MLS.
The service is hosted using a port 18001.
What I need is to access it from the Internet (www.domain.com) using a different port.
The client works from the LAN using the 18001 port, but doesn't work when using it from the Internet.
Fiddler shows an HTTP 500.
WCF tracing shows that th...
I am using a generic error page using ASP.NET's <customErrors> directive.
<customErrors mode="On" defaultRedirect="500.html" redirectMode="ResponseRewrite">
</customErrors>
Problem - when an error occurs, this page does not return HTTP status "500". It comes as 200. So link checkers and spiders do not see that there is any problem.
H...
An error occurred loading a configuration file: Failed to start monitoring changes to '[path]' because the network BIOS command limit has been reached. For more information
on this error, please refer to Microsoft knowledge base article 810886
The KB article talks about how you can increase the MaxCmds or MaxMpxCt registry values ...
I have configuired PHP 5.3 on IIS 7 using the following instructions:
http://www.php.net/manual/en/install.windows.iis7.php and it works fine. Util I enable any extension from .ini file.
After enabling any php extension I am see the following errors :
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - The FastCGI process ex...