Hi All need your help in migrating from IIS7 to IIS8.Our requirement is we are migrating Windows Server 2008 to Windows Server 2012 R2.What are the componenets need to be migrated.
Thanks in advance,
Sri
Hi All need your help in migrating from IIS7 to IIS8.Our requirement is we are migrating Windows Server 2008 to Windows Server 2012 R2.What are the componenets need to be migrated.
Thanks in advance,
Sri
Service unable to start on windows 10 showing "ERROR 1053:The service did not respond to the start or control request in a timely fashion"
I am getting a 500 error from php as below:
Hi,
I'm using Server.GetLastError() on my custom 500 error page, and it works fine when there's an ASP error.
But when there's an IIS error such as trying to load an ISAPI module that doesnt exist and things like that, I can't seem to get the cause of the error.
Is there a way to do that or does using custom errors cancels your ability to see IIS configuration errors?
Greetings,
I've made a thread a few weeks on another subforum, I'm not opening this one here as spam but because I think it's better suited to the subforum and also because I have more information that may help in shedding some light on something that honestly flies above my head. My experience with servers is very basic, I've never had to worry aside from configuring minimal aspects and since I never had issues I never had to worry about it much. That is until the institution I work at acquired a real server with Windows Server 2008 R2. The stability of our PHP app has been... worrysome, to say the least. In comparison, this used to run on a regular PC and it never had issues, which makes this situation all the more baffling. Anyway, that small introduction out of the way, having monitored the event logs I run into a lot of errors with the following culprits:
Log Name: Application
Source: Application Error
Date: 01/02/2018 02:34:29 p.m.
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: <computername>
Description:
Faulting application name: php-cgi.exe, version: 5.5.38.0, time stamp: 0x578fc02c
Faulting module name: kernel32.dll, version: 6.1.7601.23572, time stamp: 0x57fd0378
Exception code: 0xc0000005
Fault offset: 0x00011380
Faulting process id: 0x15ec
Faulting application start time: 0x01d39b6fdbbf5925
Faulting application path: C:\Program Files (x86)\PHP\v5.5\php-cgi.exe
Faulting module path: C:\Windows\syswow64\kernel32.dll
Report Id: 2767b2e8-0776-11e8-ab09-842b2b771d30
When I was notified that the site was unresponsive the first thing I tried was to recycle the appPool, that derived in the following errors:
Log Name: Application
Source: Microsoft-Windows-IIS-W3SVC-WP
Date: 01/02/2018 02:53:29 p.m.
Event ID: 2281
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: <computername>
Description:
The worker process failed to initialize communication with the W3SVC and therefore could not be started. The data is the error.
Log Name: Application
Source: Microsoft-Windows-IIS-W3SVC-WP
Date: 01/02/2018 02:53:29 p.m.
Event ID: 2276
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: <computername>
Description:
The worker process failed to initialize correctly and therefore could not be started. The data is the error.
In the end, there was no other choice but to restart IIS; the only viable "solution" to whenever we run into these issues. A few minutes after that restart though these two other errors also popped up on the event log:
Log Name: Application
Source: Application Error
Date: 01/02/2018 03:07:09 p.m.
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: <computername>
Description:
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8
Faulting module name: iisfcgi.dll, version: 7.5.7601.17514, time stamp: 0x4ce7b85c
Exception code: 0xc0000005
Fault offset: 0x000070d3
Faulting process id: 0xfe8
Faulting application start time: 0x01d39b85912f4014
Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe
Faulting module path: C:\Windows\System32\inetsrv\iisfcgi.dll
Report Id: b78de2f6-077a-11e8-ab09-842b2b771d30
Log Name: Application
Source: Application Error
Date: 01/02/2018 03:07:49 p.m.
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: THEGLORIOUS
Description:
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8
Faulting module name: iisfcgi.dll, version: 7.5.7601.17514, time stamp: 0x4ce7b85c
Exception code: 0xc0000005
Fault offset: 0x000070d3
Faulting process id: 0x27c
Faulting application start time: 0x01d39b877f608768
Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe
Faulting module path: C:\Windows\System32\inetsrv\iisfcgi.dll
Report Id: cfbdccb0-077a-11e8-ab09-842b2b771d30
At the same time, the custom view for IIS on the event log registered the following warnings (x4):
Log Name: System
Source: Microsoft-Windows-WAS
Date: 01/02/2018 02:53:28 p.m.
Event ID: 5013
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: <computername>
Description:
A process serving application pool 'DefaultAppPool' exceeded time limits during shut down. The process id was '2252'.
Those errors, along with a few instances where I get the infamous "the fastCGI process exited unexpectedly" have been the bane of my Life since migrating on December. The PHP version we are running is 5.6, IIS is 7.5, the basic configuration for the appPool is set to Net Framework v4 for the Net Framework version and Integrated for the managed pipeline mode. Needless to say, I'm at a total loss, any kind of pointers or suggestions will be extremely appreciated.
Hello,
I have default configuration with ovelapped application pool recycles enabled. It works as expected when application pool recycle is initiated from IIS Manager, you can see both processes alive. This does not work though with web.config changes. As soon as web.config is changed old process is terminated and new is span up. Is it expected?
Hello everyone,
I'm administrating IIS 10 Web Farm with 3 servers and 1 session state server (StateServer mode).
Sometimes, during high load on the web servers the CPU utilization become 90-100% on session state server and our site performance decrease dramatically.
Today, I increased load on web servers via JMeter in order to see web server and session state servers behavior, but they work properly.
My question is why ASP session state utilize 90 % CPU with 5000 user and sometime 5% with 7000 users?
How to troubleshoot ASP Session State service?
Hi, I am running Windows Server 2016 / IIS 10, and really hoping someone can help me with an ongoing problem.
We are having sporadic but persistent problems downloading large files over HTTPS (not HTTP). Here is what I've learned so far:
1. The problem only happens when downloading files - there are no problems with browsing web pages.
2. While some downloads work perfectly, others go for a while - usually several MB (sometimes say 20-30MB or more) - but then just stop. I've captured the traffic to the browser, and the data just stops coming from the server with no HTTP error. The browser
eventually times out. After it stops, I can resume the download which usually works for another few seconds and then fails again.
3. This is sporadic and seemingly random: some large downloads work fine, but it's still happening frequently enough to be a problem. Sometimes I can download a large file OK, but then a re-download fails part way through, for no apparent reason.
4. There are no relevant events in the Event Log. ASP.NET throws a "remote host closed the connection" error, as it does if the user closed their browser. I've confirmed (through traffic capture) that the browsers certainly are not 'disconnecting'. But to the server, it looks as if the browser has disconnected.
5. The same behavior happens whether serving a static file via IIS or via ASP.NET (using Response.TransmitFile) so I am sure it isn't an ASP.NET issue.
6. A key thing: it only applies to HTTPS downloads. I've confirmed this by testing. I have tested downloading a file over HTTPS and it fails repeatedly. I then immediately download the same file using HTTP and it works perfectly. I immediately try again via
HTTPS and it fails again. I've even had an HTTP download running perfectly while simultaneously seeing HTTPS downloads fail. I've confirmed the SSL certificate is valid, and the HTTPS downloads often do work, so I doubt anything wrong with the cert. Plus,
I tried with a self-signed cert and got the same result.
7. Large downloads over FTP and RDP work fine (like HTTP) - it's only HTTPS downloads that fail sporadically.
8. I doubt it is a network card error, because everything works perfectly over HTTP (and other protocols) at same time as an HTTPS download is failing repeatedly.
9. Have tried with firewall disabled, and get the same result.
I'm really out of ideas for this, so any suggestions will be gratefully received.
Thank you!
I accidentally deleted the contents of the wwwroot folder. I managed to go into the waste bin and restore them. But now my website won't respond (specifically, it's a web API). Why is that?
Here is a screen shot of what's in my wwwroot folder:
Does everything look right?
aspnet_client contains a folder called system_web, which in turn contains two folders: 2_0_50727 and 4_0_30319, both of which are empty. <-- I find that suspicious.
A few things to note: we renamed the Default Web Site to Default_Web_Site (and had it working until today). Not sure if that would have an effect or not. We tried rebooting, redeploying our web API, restarting IIS... nothing works.
Any thoughts?
Hi everyone,
Apologies in advance as I know this has probably been asked hundreds of times before.
Basically I'm trying to redirect all HTTP traffic to HTTPS and url rewrite was working on IIS v8.x fine. We've now got a host running on Windows Server 2016 & IIS v10 and I'm having absolutely no luck getting it going. I just get 404's when I browse to the HTTP version of the page.
URL Rewrite is installed correctly and I've configured this string in the web.config file
<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><rule name="Redirect to HTTPS" enabled="false" stopProcessing="true"><match url="(.*)" /><conditions><add input="{HTTPS}" pattern="^OFF$" /></conditions><action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" /></rule></rules></rewrite></system.webServer></configuration>
Once it was in web.config I've enabled the rule through the GUI (so that should sort out the enabled="false" side of things.
Simply put, I need help on this one as I can't figure out what's wrong.
Thanks in advance.
Hello everyone,
I am facing a issue with the IIS logs function.
My objective is to get the real sitename into the IIS logs files instead than the website intance ID gave by s-sitename field :W3SVC6 or W3SVC1.
I think the actual s-sitename field will not give me this value and I already tried couple server variables fields, do you know how I can get it?
My actuel logs fields:
#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken X-FORWARDED-FOR
Thank you in advance for your help.
Lud
We run a relatively high-traffic site on IIS 10 and have recently been setting up output caching to improve performance on static and static dynamic (resized images for instance) resource files.
The default IIS settings don't appear to be very useful for large websites with footprints of tens of thousands of files, so we tweaked the configuration to reflect some lessons we learned elsewhere online. These may be useful to diagnose the problem, or just for someone else looking to optimise:
Updating the registry setting to define how long files are kept in the cache using HKLM\System\CurrentControlSet\services\InetInfo\Parameters\ObjectCacheTTL updated to 21600 (6 hours)
Likewise, increasing the MaxCachedFileSize to 6291456 (6 MB in bytes)
Updating httpCompression maxDiskSpaceUsage="2048" (mb) in applicationhost.config
Setting the app pool timeout to 0, and start mode to always running
Setting <serverRuntime frequentHitTimePeriod="12:00:00" frequentHitThreshold="2" /> in applicationhost.config so that output caching kicks in on the second request for any file in a 12 hour period
Adding extension profiles in web.config for .jpg, .png, .gif, .mp4, .css, .js, .woff, .ttf, etc. with policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" varyByQueryString="v" location="Any" (location=any to remove the cache-control: no-cache header
And in IIS, turning on keep-alive and setting expire web content to 28 days using http response headers > set common headers
In our MVC image resizer, we set:
Response.Cache.SetSlidingExpiration(true);
Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.SetExpires(DateTime.Now.AddDays(28));
Response.Cache.SetMaxAge(new TimeSpan(672, 0, 0));
Response.Cache.SetLastModified(lastModified);
Having recycled the app pool to clear the cache, the first hit on a file returns all of the correct headers. But after the second hit, when IIS output caching has kicked in, the expires, last modified and max-age headers all disappear.
Does anyone have any ideas about why this is the case?
Hello,
I'm in the basic settings for my website. I'm trying to connect as a specific user. I enter the user's username and password. I say OK. I test the connection. It works. Then I click OK on the main Basic Settings dialog and it gives me this error:
I am returned to the dialog with the Alias highlighted.
What does it mean that the value is outside the expected range? Range of what? What IS the expected range? What does it have to do with the Alias?
Thanks.
I’m trying to get URL Rewrite working on an asp.net application, but am getting the error:
Faulting application name iisexpress.exe version 8.0.84180, timestamp 0x4fbaa9e8
Faulting module name rewrite.dll, version 7.1.1485.0, time stamp 0x4f440c88
Exception code 0xc000000.
when the <rewrite> tags are added to the the <system.webServer> section of the applications web.config. My environment is
Visual Studio 2012 Professional – Update 2, .NET 3.5 ASP.NET application, IIS Express 8.0, and Window 7 Professional SP1.
--Rewrite xml added to web.config. The application runs correctly if it is deleted.
<system.webServer>
<rewrite>
<outboundRules rewriteBeforeCache="true">
<rule name="Remove Server header">
<match serverVariable="RESPONSE_Server" pattern=".+" />
<action type="Rewrite" value="Your Own Server Message" />
</rule>
</outboundRules>
</rewrite>
<system.webServer>
I’ve tried:
-- Several variations of the above xml including just adding <rewrite></rewrite> tag, but the error still occurs.
-- Uninstalling and reinstalling IIS Express 8.
-- Using the 2.0 and 2.1 rewrite.dlls.
-- Reinstalling the URL Rewrite 2.1 msi, but the installer throws an error “Product: IIS URL Rewrite Module 2 - The IIS 7.0 CoreWebEngine and W3SVC features must be installed to use IIS URL Rewrite Module 2.” This error can be passed by adding the following
four keys to registry.
Computers\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Components\CoreWebEngine, W3SVC, StaticContent
StaticContentBinaries
however another error “Product: IIS URL Rewrite Module 2 -- Error 30001. Setup failed to detect shared configuration.” is displayed.
The intranet home page application/website is currently set to anonymous. one application contains some code that must run in a directory that is locked down with Windows Authentication , so we created a new subsite with WindsAuth enabled.
Now the subsite code must be able to pass information in the PHP session to the parent application in the web root. the session contents of code running in a subsite are inaccessible to application code running within the web root.
the work-around right now is to move the whole parent application into the subsite. This work-around has managed to alleviate this issue in the past. However in this case we are unable to move the parent application into a subsite because the application is
the home page for the intranet website.
what is the downside of changing anonymous to windows auth?
Hi There;
problem solved.
Hello,
We have several sites configured on a windows 2008 server with IIS 7 and using NTLM authentication.
We know using fiddler that 401.1 responses are being sent by this server, but they are not shown in the IIS logs.
In fiddler we see the 2 401 responses and then the 200, but the log only shows a single 401.2
I've tried to search for a configuration setting or explanation without any luck.
Does anyone know why they are not displayed or how to enable them?
Thanks,
Aidan
Hi everyone!
I want to set a web site to run under domain\user account and I want to accomplish this using the appcmd.exe' tool. How can I do that? Is it possible?
Thanks.
Doria
I am trying to log web method name for ASMX services using IIS logs. Currently, it only logs the web URL and not the actual method name. Hence, I am unable to visualize through log management which method is getting hit the most for a particular ASMX.
This is what it logs -
2018-02-07 18:06:26 111.111.11.111 POST /Services/Service.asmx - 8000 - 222.22.22.222 Layer7-SecureSpan-Gateway/v9.2.00-b9999 - 200 0 0 3
Can anyone please let me know there is a way to log actual web method name alongwith the URL ?
I am trying to setup a short url on our network to redirect it to https connection for just one site with different applications
I have more than one of these to add for the same site. so Please let me know how I can add all of them for one site.
http://qaxyz it should redirect it to https://abc.com/xyz
http://qaone it should redirect to https://abc.com/one
http://qatwo should redirect to https://abc.com/two