Quantcast
Channel: All Forums
Viewing all 27852 articles
Browse latest View live

IIS 10 after installing SSL, web site asks for a username and password

$
0
0

Friends need your help, me installed a IIS 10 server a couple of days ago on Windows 2019 base, I am using this product for the first time. Moved the site to PHP in a new environment, as it turned out it’s easy to work with if you figure it out) the site is working fine, I'm satisfied.

The time has come to install an SSL certificate, I managed to make a .pfx file and i install the certificate. But as soon as I switch to https an authorization form appears and asks for a username and password. I can’t understand where it came from and how to remove it. Please help the newcomer)
Thank you!


Custom permission using WebDAV

$
0
0

Dear community,

I've been trying setting up custom permission on different directories for different users using Server 2019 and IIS10.

I created a website for WebDAV, added virtual directories and then enabled WebDAV. Authoring rules were set at top level (Website). This is working fine for myself because I do have full permission to all virtual directories. However, I would like to grant individuals permission to specific directories and these should not have R/W permission to any other directory.

It looks like I can grant a user permission to a virtual directory but that user is then not able/allowed to authenticate.

In the below example, permission in RED is desired but won't work:

  • - WebDavRoot (Authoring: User 1 R/W/S)
  • -- VirtualDirectory1 (Authoring: User 1 inherited)
  • -- VirtualDirectory2 (Authoring: User 1 inherited | User 2 R/W/S)
  • -- VirtualDirectory3 (Authoring: User 1 inherited | User 3 R/W/S)

HTTPS error code 503 on IIS 10

$
0
0

Friends, I need your help again, today launched a laptop that is running Windows Server 2019 with IIS 10 on which I am developing a site, there is a site written in php which later I plan to rebuild for asp.net core, I made a certificate import mydomain_com.pfx and made https binding to the desired domain by selecting a certificate for this domain. When I access the domain through http, everything works fine, when through https protocol, I get "HTTP Error 503. The service is unavailable." however, whatever the contents of the php site files or static html file, the result is the same err 503.

My experience with Windows Server for less than a week, found a log file with the following contents C:\Windows\System32\LogFiles\HTTPERR
2020-01-06 08:37:35 127.0.0.1 2031 127.0.0.1 443 HTTP/2 GET / 17 503 - N/A -
2020-01-06 08:50:21 127.0.0.1 2356 127.0.0.1 443 HTTP/1.1 GET / - 503 - N/A -

I noticed an interesting feature, everything works fine on the main server and the protocol is active, everything just happens on my laptop. Perhaps it matters, the server and laptop are on the same network, both behind a NAT router, port 443 and 80 were forwarded to the server.

Thank you!

Exclude subdomain from HTTPS redirect

$
0
0

I need to exclude a specific subdomain (sub.domain.com) from the REDIRECT TO HTTPS rule in the web.config below. How do I do that?

<rules>
<rule name="www" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www." negate="true" />
</conditions>
<action type="Redirect" url="https://www.{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>
<rule name="Redirect to https" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>
</rules>

hello

HTTP to HTTPS Rewrite Issues with Exchange 2016

$
0
0

Hi Everyone,

I've got an Exchange 2016 server that I'm using for webmail access as well as hosting our website.  I have a rewrite rule to redirect http traffic to https. 

<rule name="Redirect to HTTPS" stopProcessing="true"><match url="(.*)" /><conditions><add input="{HTTPS}" pattern="^OFF$" /></conditions><action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" /></rule>

The rule works fine, however I'm running into issues with some of the services that run related to Exchange.  Powershell scripts connecting to exchange don't work and some other items I noticed in the log files.  I've posted some snippets from the logs below.  I guess my question, is there any modifications or tweaks to the rewrite rule that can be done that won't affect Exchange?  The only option I can think of is to create a separate site in IIS to move the regular website to and leave the default website with Exchange. 

2020-01-06 00:00:15 192.168.1.37 GET /powershell ping=probe&CorrelationID=<empty>; 443 - 192.168.1.37 - - 401 111 0 13

2020-01-06 00:00:25 127.0.0.1 GET /PowerShell/ &CorrelationID=<empty>; 443 - 127.0.0.1 AMProbe/Local/ClientAccess - 401 111 0 15

2020-01-06 23:59:58 fe80::5ddd:2033:9069:dd92%6 RPC_IN_DATA /rpc/rpcproxy.dll 45c1e908-7e0c-45fe-8022-8c37565c241d@domain.com:6001&CorrelationID=<empty>;&RequestId=ff81bd3b-231a-43da-90de-689d467a0755&cafeReqId=ff81bd3b-231a-43da-90de-689d467a0755; 443 - fe80::5ddd:2033:9069:dd92%6 MSRPC - 401 1 2148074254 1

2020-01-06 23:59:58 fe80::5ddd:2033:9069:dd92%6 RPC_OUT_DATA /rpc/rpcproxy.dll 45c1e908-7e0c-45fe-8022-8c37565c241d@domain.com:6001&CorrelationID=<empty>;&RequestId=68615a29-35b5-464f-b7e0-aa2261c1f380&cafeReqId=68615a29-35b5-464f-b7e0-aa2261c1f380; 443 - fe80::5ddd:2033:9069:dd92%6 MSRPC - 401 1 2148074254 0

Any suggestions or thoughts on other options?

Thanks in advance!

Josh

help The expected token is 'DOCTYPE'. Line 1, position 3

$
0
0

Unable to download the Web Platform product list. Check your network connection and try again. If the problem persists, report the issue on the Web Platform Installer forum at: http://go.microsoft.com/fwlink/?LinkId=145244.
Details:
'doctype' is an unexpected token. The expected token is 'DOCTYPE'. Line 1, position 3.

Unable to download the Web Platform product list. Check your network connection and try again. If the problem persists, report the issue on the Web Platform Installer forum at: http://go.microsoft.com/fwlink/?LinkId=145244.
Details:
'doctype' is an unexpected token. The expected token is 'DOCTYPE'. Line 1, position 3.

System.InvalidOperationException: Unable to download the Web Platform product list. Check your network connection and try again. If the problem persists, report the issue on the Web Platform Installer forum at: http://go.microsoft.com/fwlink/?LinkId=145244.
Details:
'doctype' is an unexpected token. The expected token is 'DOCTYPE'. Line 1, position 3. ---> System.Xml.XmlException: 'doctype' is an unexpected token. The expected token is 'DOCTYPE'. Line 1, position 3.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2)
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Web.PlatformInstaller.LineInfoDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(TextReader txtReader)
at Microsoft.Web.PlatformInstaller.ProductManager.LoadDocument(String xmlPath)
at Microsoft.Web.PlatformInstaller.ProductManager.LoadFromXml(String xmlFile, Boolean loadEnclosures)
at Microsoft.Web.PlatformInstaller.ProductManager.Load(Uri productFileUrl, Boolean filterByArchitectureAndOS, Boolean loadEnclosures, Boolean useCachedVersion, String cacheDirectory, Architecture architecture, Int32 osType)
at Microsoft.Web.PlatformInstaller.ProductManager.LoadExternalFile(Uri uri)
at Microsoft.WebMatrix.Gallery.ProductManagerFactory.Create(Uri primaryFeed, IEnumerable`1 customFeeds, EventHandler`1 updateAvailableHandler)
at Microsoft.WebMatrix.Gallery.OnlineFeedLoader.Load()
at Microsoft.WebMatrix.Gallery.FeedLoader.EnsureLoaded()
at Microsoft.WebMatrix.Gallery.OnlineFeedLoader.get_ApplicationKeywordDictionary()
at Microsoft.WebMatrix.Gallery.WebMatrixProductService.get_ApplicationKeywordDictionary()
at Microsoft.WebMatrix.Gallery.DependencyServiceImpl.<EnsureFeedWithWaitDialogUIInternal>b__b()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at Microsoft.WebMatrix.Gallery.DependencyServiceImpl.EnsureFeedWithWaitDialogUIInternal(String waitDailogMessage)
at Microsoft.WebMatrix.Gallery.DependencyServiceImpl.<>c__DisplayClass9.<EnsureFeedWithWaitDialogUI>b__8()
at Microsoft.WebMatrix.Core.TaskServiceImplementation.<>c__DisplayClass19.<DispatcherInvoke>b__18()
at Microsoft.WebMatrix.Core.TaskServiceImplementation.DispatcherInvokeInternal[U](DispatcherPriority priority, Func`1 method)
at Microsoft.WebMatrix.Core.TaskServiceImplementation.DispatcherInvoke(DispatcherPriority priority, Action method)
at Microsoft.WebMatrix.Gallery.DependencyServiceImpl.EnsureFeedWithWaitDialogUI(String waitDailogMessage)
at Microsoft.WebMatrix.Gallery.WebMatrixProductDependency.GetDependencies(IEnumerable`1 dependencyIds, IServiceProvider serviceProvider)
at Microsoft.WebMatrix.Gallery.WebMatrixProductDependency.GetDependencies(DependencyTypes dependencyTypes, IServiceProvider serviceProvider)
at Microsoft.WebMatrix.Gallery.DependencyServiceImpl.EnsureDependencies(DependencyTypes dependencyTypes, String ensureDependenciesMessage)

IIS 10 stopped serving PHP after running for sometime with HTTPS only

$
0
0

Hello, 

1- My environment: I am running two PHP (Version 5.6.31) websites e.g.(website1&website2) on IIS 10 on windows server 2016. I have 3 PHP versions added to the Handler mapping. I have HTTP to HTTPS redirect rules added to both websites. 

2- My problem: After running the server for sometime for example 12 hours, website2 only, stops serving php content while it keeps serving html pages only. At the same timewebsite1 is serving php & html properly with no issues at all. Please note that everything runs fine at the initial state, this happen after sometime of website running.

3- Condition: *This problem happen to website2 only while it is being served onHTTPS ONLY, while the problem is solved while it is onHTTP. Problem only happening with website2 while website1 has no issue at all either cases.Website2 has more traffic than website1.

4- Extra information: as per google analytics for October 19 website1 has ( 94 Sessions & 409 Page Views)  whilewebsite2 has (7000+ Sessions & 15000+ Page Views)

5- IIS & browser behavior: I can see all php requests on IIS Worker Processes freezing forever. Browser keeps loading also for ever with no error code, just loading and loading.

6- Temporally solution: I am restating the whole IIS server to solve it, and it runs for sometime and then it happens again. Restating thewebsitse2 it self or the application pool forwebsite2 is not solving the problem at all. I have to restart the whole IIS server.

I not that much experienced with IIS and PHP and servers.

Please I need you help, I spend a lot of time asking here and there and hitting everywhere with no luck because I was not describing my problem properly. Today I figured how it behave by putting two pages one is pure html and the other one is pure PHP while the problem is happening.

Thank you in advance <3,


IIS 10 - SC-win32-status 64

$
0
0

Hi,

We have an intermittent issue on our production windows server 2016 with IIS version 10 where one of the page fetch fails with SC-win32-status as 64 and next subsequent hits works fine though. 

Ex: 

2019-12-30 13:08:40 10.129.6.183 POST /eCI/XMSCall/CallStart.ashx - 80 - 10.129.96.61 OpenVXI/3.0 http://localhost/eCI/VXML/eONEMS_Inbound.vxml 200 0 64 22673

Everytime issue happens with this page which is POST resulting in SC-win32-status as 64. As per wireshark capture, issue seems to be on IIS end as we noticed IIS not sending an expect 100 - continue but for the next calls, we see IIS sending 100 continue. This issue we see happening on 4 of our production window servers.

Can you please help us resolve the issue?

Thanks

Question about hosting multiple websites and interaction with Exchange 2016

$
0
0

Hi all,

I'll try and be brief, but a little background first.  I have Exchange 2016 installed on windows server 2016 with IIS 10.  I am using this server for exchange and webmail (webmail.domain.com).  I am also using this server for a lightly used website (domain.com). 

Since Exchange is using MAPI over http(s) for default Outlook connections vs. RPC in Exchange 2010 the IIS logs have A LOT more data and information in them than before.  As a possible solution I created a separate website in IIS to move (domain.com) to and then setup the default website to only respond to the address (webmail.domain.com).  This worked for static pages, but as I discovered there are other powershell and dynamic pages related to Exchange 2016 that link back to (domain.com).  So after I set this up Outlook Web Access no longer worked correctly and I was getting 404 errors in the log files of the new site I setup.

I guess my question is, is there anyway to set this configuration up where Exchange would be happy and OWA works properly?  Or is there a way to redirect or separate log traffic for (domain.com) to a separate log file so it can be more easily analyzed?  The only way I can think of making this work is to leave Exchange on the default website, create a separate website in IIS that responds to (sub.domain.com) and move the separate website (domain.com) to (sub.domain.com).

Any thoughts or feedback is appreciated!

Thanks

Josh

IIS 8.5 FTP Server returns sc-status 550 and sc-win32-status 995

$
0
0

Hi there,

We have an application that is  using the IIS 8.5 FTP server for the ftp site for transferring files between the server and client. In some cases, we'll see the client has gone through all of the handshaking process and ready to be receiving the file. However, after some time, could be 30 seconds or couple of minutes, the ftp server would send status back to client indicating sc-status of 550, sc-win32-status of 995, and sc-substatus of 50. From the following site (https://support.microsoft.com/en-us/help/969061/the-ftp-7-0-status-codes-in-iis-7-0), the substatus code of 50 means: 

Data channel timed out due to not meeting the minimum bandwidth requirement.

But before and after this was happening, the client was able to successfully download other files in a whole file set (4 - 5 files). So how this would happen? And how we can resolve this? So far, we've only seen this issue in IIS 8.5 (Win 8.1). We've used the same applications on Win XP with older version of IIS; but we've never noticed this problem. 

Thanks for any helps I can get in advance!

Can't access website on IIS Server 2019

$
0
0

I am new to IIS .... changing over from Apache.

I have set up everything on a new server running Server 2019.  The website has been added but I can't get it to come up.

Ports are open (80 and 443) and IUSR has been added to the user group.

Checked the binding and the basic settings.  Everything seems to be correct...... but, I can't get it to come up in the browser. 

Also tried bringing it up using "LocalHost" without success.

Hoping someone can point me in the right direction.

Thanks

Schedule Task with ASP3 Windows Server 2019

$
0
0

Hello everyone.

I need to create a Scheduled Task through an ASP page.

I have privilege as an Administrator and can even create a task, but when performing this task, nothing happens. I created a simple ASP script to send an email when the task was executed. Changing the user of this task to System in "When performing the task, use the following user account", the task runs perfectly. It seems that the user "Administrator" does not have all the privileges.

Follows code:

linha_exe ="""'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe' \""Start-Process-FilePath https://url/envio.asp&quot;"""""

comando ="SCHTASKS /CREATE /TN ""teste"""/SC ONCE /F /RU ""Administrator""/RP ""******""/NP /RL HIGHEST /SD "07/01/2020"/ST "17:00:00"/TR "&linha_exe

Set objShell = CreateObject("WScript.Shell")
Set objExec = objShell.Exec("cmd /c " & comando)
Set objStdOut = objExec.StdOut

Could anyone tell me how to create this task to run as System?

MSDeploy failing to migrate IIS 10 to IIS 10

$
0
0

Receiving the following error when trying to migrate between 2 IIS 10 servers (server 2016 to server 2019):

Error Code: ERROR_NOT_SUPPORTED
More Information: Server Name Indication (SNI) and Centralized SSL Certificates Support store (CCS) bindings are only supported on IIS 8 or later. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_NOT_SUPPORTED.
Error count: 1.

Both servers are IIS 10 or later and have identical installed services/features.

Please advise ASAP.

Unable to Add ASP.NET Component in IIS 6.1 using Windows 7 SP1

$
0
0

I have tried to add ASP.NET Component in IIS 6.1 From the Control Panel, click Programs and then click Turn Windows features on or off which is listed under Programs and Features, Checked IIS options. While it is saving getting following error :

An error has occurred. Not all of the features were successfully changed


Write Access to folders with in Document Root

$
0
0

What are the Security risks of giving write access to IIS_IUSRS group or custom identity account on the Document Root or a sub folder? 

I was writing a security SOP and asking my app team to avoid writing anything with in Document Root or its Sub folder, but use a different folder out of Document Root. But wanted to know what the Community Members view was. 

Couple reasons that popped in my head:
- If the files being written in DocumentRoot/Sub Folder becomes accessible over the web (more risk when the URL pattern is guessable).  
- If there is any upload facility, end users can upload malicious asp/aspx files and execute in our servers.  (i can imagine the asp/aspx page to do a lot of damage - unauthorized access of data/tamper the data/delete it)

thanks in advance

New IIS 10 setup on 2019 Server. Best practice setup?

IIS Worker Process hangs every two hours

$
0
0

Hi,

As the subject says IIS Worker Process hangs every two hours (precisely) , and I'm not sure how to approach this problem.

Only thing that's for sure is that in every instance that problem occurs in the Performance Monitor's 'Analyze Wait Chain...'
lsass.exe is visible as a process which w3wp is waiting for to finish.

When lsass.exe finishes it's job, because of the piled up threads everything is unresponsive due to a 100% CPU usage and it
lasts for about 2 minutes.

As this is happening periodically in exactly two hours span I was convinced that some task on the particular system is causing the problem so I checked:

  • - No AntiVirus is running at particular moment
  • - No Local Firewall is running at particular moment
  • - No Application Pool recycling happened
  • - No Task (Task Scheduler) is configured to run every two hours
  • - No Application restart happens
  • - No resource usage peaks before the problem shows itself
  • - No sudden website usage peaks
  • - It happens every two hours even through the early morning when website usage drops to a bare minimum 

System:

  • - Cloud virtual sever
  • - Windows Server 2008 R2
  • - 6 processors
  • - 12 Gb RAM
  • - SQL Server 2014 Standard Edition
  • - IIS 7.5
  • - One ASP.NET MVC 5 application

Any suggestion how to solve this problem will be much appreciated.

Thanks. Best....

Igor

w3svc log file retention

$
0
0

I have a windows 2019 Azure VM running several web sites.  Logging is turned on and they are logging to a non-%systemroot% directory.   The problem is, it's only keeping about 48 hours of logs.   As far as I can tell, the IIS logging feature is set up exactly the same as all the other servers we've ever had, but THIS one for some reason doesn't want to keep log files around that are older than 2 days old.   I'm all for programming scripts to delete or archive old logs regularly, I haven't DONE anything like that on this server yet.  If I did, it would be monthly at most.   We'd like it to stop deleting log files > 2 days old but I cannot figure out how.  Help?  All I can find around the internet are people explaining how to use scripts and tasks etc to MAKE it delete and archive old logs, but not anything about making it STOP deleting the old log files (as this server of mine has decided to do).

IIS8 Web Garden App Pool Hang

$
0
0

Hey folks

Continuing on from some previous IIS hanging issues, I'm running Windows Server 2012, II8

I've got 5 worker processes defined for the max worker processes

the server is using low CPU and about 50% memory usage (32 gigs ram)

everything has been fine for about 9 days and today we had a hang

stopped the app pool, started again, all was fine

logs showed nothing 

when the website was slow / hung, I checked the worker processes and they were all running

what else can I do for prevention of a hang? would increasing the max worker processes to say 10 be a good strategy?

any other IIS configuration tips to prevent this type of occurrence?

Thanks in advance

Viewing all 27852 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>