Questions tagged [iisreset]
29 questions
17
votes
5 answers
iisreset error on windows 10
I have recently upgraded my desktop from Windows 7 to Windows 10
However when I run iisrest from an administrator console, I am getting the following error:
Restart attempt failed.
The IIS Admin Service or the World Wide Web Publishing Service,…

Darren Guy
- 1,123
- 2
- 13
- 39
6
votes
2 answers
Stop and Start IIS programatically. Quickly and safe way
My situation: when I deploy assemblies .NET in GAC, I get errors (Cannot access to xxx.dll because is in use for another process). The IIS use those dll (assemblies).
Which is the best way (more performance,quick and safe way) or all ways to stop,…

Kiquenet
- 14,494
- 35
- 148
- 243
4
votes
4 answers
How to restart IIS on remote windows server from windows 7 client machine?
I am trying to restart iis remotely (Windows Servr 2012) from my local machine (Windows 7). The below command in command line doesn't work to restart IIS;
iisreset servername /restart
but the below command works fine when I tried in command…

user28
- 249
- 2
- 7
- 20
4
votes
7 answers
How to reduce the need for IISRESET for developing ASP.NET web app in IIS 5.1
I have a web application project on my dev PC running WinXP and hence IIS 5.1. The changes I'm making to this site seem to "take effect" only after I do IISRESET. That is, I make a source change, Rebuild the project and then Start without Debugging…

John Adams
- 4,773
- 25
- 91
- 131
4
votes
5 answers
Automating IISRESET via remote desktop connection after a TFS build
I want to automate a process, which is invoked after a successful build on TFS. The process will RDP to a test server, then call a C# application on that server, and reset IIS on that server. Each step will return the result so whether or not to…

Pingpong
- 7,681
- 21
- 83
- 209
4
votes
3 answers
Web Role on Windows Azure and iisreset side effects
I noticed that when you RDP to a Web Role instance on Windows Azure to make an iisreset, the World Wide Web Publishing Service shuts down, and the only way to get your role up and running again is either by restarting the aforementioned service or…

gimlichael
- 1,365
- 1
- 15
- 28
3
votes
1 answer
What is the equivalent of an IISReset if I want to use Microsoft.Web.Administration
It would appear that there is more involved than just iterating the ApplicationPools and calling Recycle() on them. How do I most closely mimic an IISReset programatically (from .Net) without resorting to shell invocation?
And I suppose most…

Brian Deacon
- 21,384
- 13
- 39
- 41
3
votes
3 answers
iisreset on remote machine (C#)
Process myProcess = new Process();
ProcessStartInfo remoteAdmin =
new ProcessStartInfo(Environment.GetFolderPath(Environment.SpecialFolder.System) + @"\iisreset.exe /restart");
remoteAdmin.UserName = username;
remoteAdmin.Password =…

Pavel Gr.
- 141
- 2
- 9
3
votes
3 answers
Changes in ascx / aspx files - will it reset application
Changes in ascx / aspx files - will it reset application? Sometimes on dev server they won't cause it whereas on live server I think it sometimes causes it. What is the rule?
Thanks Pawel

dragonfly
- 17,407
- 30
- 110
- 219
3
votes
2 answers
IIS websites stop responding and iisreset gives "The data is invalid. <2147942413, 8007000d>"
Question:
What is the cause of the The data is invalid. <2147942413, 8007000d> error on an iisreset?
Description:
We had an issue with our IIS 7 webserver on Windows Server 2008 where a few clients received "The request channel timed out while…

Kash
- 8,799
- 4
- 29
- 48
3
votes
1 answer
Perform IISRESET if CPU usage above 90%
I'm trying to find out how to do an IISRESET if the CPU usage gets above 90%. I was thinking about using a batch file or something like that, but really I have no clue.
The problem is the CPU usage gets to 99%, the machine slows down and the only…

denimknight
- 301
- 2
- 9
- 22
2
votes
0 answers
How do I allow (remote) IISReset through the firewall on Win Server 2008
I'm trying to run the following, to reset IIS on a remote machine.
IISReset
If I disable the domain firewall, everything works fine. With the firewall enabled, I get
The RPC server is unavailable.
Initially I tried enabling Remote…

Rob
- 4,327
- 6
- 29
- 55
2
votes
2 answers
Session lifecycle question
I'm a little confused about the life cycle of the session in ASP.NET, here is my test case.
A user logs in, I save some info to a session variable (e.g. Session["bob"]="bob") then I do an "IIS reset". The user is still logged in, but the session…

Eric Brown - Cal
- 14,135
- 12
- 58
- 97
2
votes
0 answers
Batch file to Stop/Start a Website in IIS 6.0
I an IIS reset each time after we do deployments using a batch file that does the following
IISRESET.EXE SERVER01 /RESTART
However, this is now a problem since we are currently hosting other website instances in the same IIS in SERVER01. My…

Smiley
- 3,207
- 13
- 49
- 66
2
votes
2 answers
How to verify my C# code run an IISRESET command in administrator mode
I have created a windows service that checks a database for errors and if a specific one shows up I want it to perform an IISRESET command.
The problem is, if I run and IISRESET command without the elevated privileges then it won't actually do the…

Neil
- 2,659
- 7
- 35
- 57