Quantcast
Channel: Troubleshooting
Viewing all 1814 articles
Browse latest View live

IIS 10 hangs after uploading large files

$
0
0

We have a .NET web application which runs perfectly when using http and https. The point is that after uploading a large file (no so large, more than 4 MB is enough) through https, the IIS hangs (in fact, is the tab from which we uploaded the file). We have already configured all the IIS properties related to the content length and maximum size of the files. We have been reading other threads related to this, but we have not got the solution yet (https://forums.iis.net/t/1197751.aspx?IIS+7+5+CGI+SSL+Problems+with+upload+limit+30MB+cap+). Any help will be very appreciated. Thank you very much.


Win2016 Data Center/IIS 10: File corruption on download of some files

$
0
0

Good afternoon!

We have a network share we're using for file storage that is accessed through a virtual directory for download. When a user downloads a file, we're seeing some files get corrupted, XLXS and ZIP files example, though TXT files seem down load just fine.

Here's a screen capture comparing the binary data of two zip files. Left is the file share, the right is the local, downloaded copy. You can see where the data is changing starting with the second line.

HEX dump compare of the original file (on the file share) and the downloaded file (on my laptop) that is corrupted.

The original file, on the file share, is 5,521 bytes. The corrupted file is 9,601 bytes.

I've confirmed it's not the upload process

I've confirmed it's not storage of the files.

I've confirmed it's not our HTTP monitoring module.

I've confirmed it's not response compression gone horribly wrong.

Any thoughts on what could be causing this or to troubleshoot it?

LOCAL SSL in IIS showing invalid

$
0
0

Hi,

I have created a local ceritficate and bing it to my local app, in the iis manager if i click browse the site from there i can access the site and see the certificate and secure.

but if i access that local server from my laptop which is on the same intranet, its showing invalid certificate.

No icon for logging in IIS Manager?

$
0
0

Hello,

I am new to IIS and I am trying to debug a web-based application.  IIS doesn't appear to be doing any logging of its web server.  I was initially trying to find the log file path since there's nothing in the default place.  I want to turn on and configure logging.  All the information I have found says there is supposed to be a Logging icon in the IIS Manger where it can be configured, but I don't see it, except for FTP.

This is IIS on Windows Server 2012.

What am I missing?

IIS8.5 A process serving application pool X suffered a fatal communication error with the Windows Process Activation Service. The process id was '6032'. The data field contains the error number.

$
0
0

IIS application pool stopped automatically  after OS update. Following are the the logs and dmp info. Can anyone help me? I dont know how to upload the .dmp file captured by debug tool.

A process serving application pool 'X' suffered a fatal communication error with the Windows Process Activation Service. The process id was '6032'. The data field contains the error number.
Application pool 'X' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
Faulting application name: w3wp.exe, version: 8.5.9600.16384, time stamp: 0x5215df96
Faulting module name: ntdll.dll, version: 6.3.9600.18969, time stamp: 0x5aa29ff0
Exception code: 0xc0000374
Fault offset: 0x00000000000f1cd0
Faulting process id: 0x1790
Faulting application start time: 0x01d5582ce8c71158
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 37cba79f-c420-11e9-80c0-005056a20c4a
Faulting package full name: 
Faulting package-relative application ID: 
Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: w3wp.exe
P2: 8.5.9600.16384
P3: 5215df96
P4: StackHash_5652
P5: 6.3.9600.18969
P6: 5aa29ff0
P7: c0000374
P8: PCH_DF_FROM_ntdll+0x0000000000090D0A
P9: 
P10: 

Attached files:
C:\Users\X\AppData\Local\Temp\WER19A0.tmp.appcompat.txt
C:\Users\X\AppData\Local\Temp\WER1A8B.tmp.WERInternalMetadata.xml
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_w3wp.exe_fea05b168f317bf2214b71da70d1eba7330a09_9e3fd63b_cab_1a2c1a99\memory.hdmp
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_w3wp.exe_fea05b168f317bf2214b71da70d1eba7330a09_9e3fd63b_cab_1a2c1a99\minidump.mdmp

These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_w3wp.exe_fea05b168f317bf2214b71da70d1eba7330a09_9e3fd63b_cab_1a2c1a99

Analysis symbol: 
Rechecking for solution: 0
Report Id: 37cba79f-c420-11e9-80c0-005056a20c4a
Report Status: 4
Hashed bucket: 
In w3wp__LAWAdmin__PID__12492__Date__08_21_2019__Time_09_13_09PM__683__Second_Chance_Exception_C0000374.dmp the assembly instruction at ntdll!RtlReportCriticalFailure+8c in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused a corrupted heap exception (0xC0000374) when trying to perform an unknown operation on memory location 0x00000000 on thread 29

Heap corruption was detected in w3wp__LAWAdmin__PID__12492__Date__08_21_2019__Time_09_13_09PM__683__Second_Chance_Exception_C0000374.dmp
However pageheap was not enabled in this dump. Please follow the instructions in the recommendation section for troubleshooting heap corruption issues.

Current NTGlobalFlags value: 0x0 An exception thrown by a heap memory manager function indicates heap corruption. Please click the 'PageHeap Flags...' button in the DebugDiag crash rule configuration dialog to enable PageHeap for the target process and collect another dump. For more information, review the following documents: 
How to Use the Debug Diagnostic Tool v1.1 (DebugDiag) to Debug User Mode Processes
Debugging Heap corruption with Application Verifier and Debugdiag 
Report for w3wp__LAWAdmin__PID__12492__Date__08_21_2019__Time_09_13_09PM__683__Second_Chance_Exception_C0000374.dmp





Type of Analysis Performed Crash Analysis 
Machine Name SVWCNSHPDAPWS01 
Operating System Windows Server 2012 
Number Of Processors 4 
Process ID 12492 
Process Image c:\Windows\System32\inetsrv\w3wp.exe 
Command Line c:\windows\system32\inetsrv\w3wp.exe -ap "LAWAdmin" -v "v2.0" -l "webengine4.dll" -a \\.\pipe\iisipm7346f5b6-bf47-4ff6-afd7-74e3c8f73aed -h "C:\inetpub\temp\apppools\LAWAdmin\LAWAdmin.config" -w "" -m 0 -t 20 -ta 0 
System Up-Time 02:13:59 
Process Up-Time 00:00:34 
Processor Type X64 
Process Bitness 64-Bit 



Faulting Thread




Entry point   mscorwks!Thread::intermediateThreadProc 
Create time   8/21/2019 9:12:58 PM 
Time spent in user mode   0 Days 0:0:4.125 
Time spent in kernel mode   0 Days 0:0:0.109 




.NET Call Stack




[[PrestubMethodFrame] (System.Linq.Enumerable.Int32, mscorlib]])] System.Linq.Enumerable.Single[[System.Int32, mscorlib]](System.Collections.Generic.IEnumerable`1) 
[[CustomGCFrame]] 
[[GCFrame]] 
[[GCFrame]] 
[[HelperMethodFrame_1OBJ] (System.RuntimeMethodHandle._InvokeMethodFast)] System.RuntimeMethodHandle._InvokeMethodFast(System.Object, System.Object[], System.SignatureStructByRef, System.Reflection.MethodAttributes, System.RuntimeTypeHandle) 
System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, Boolean) 
System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo) 
System.Reflection.MethodBase.Invoke(System.Object, System.Object[]) 
System.Data.Linq.SqlClient.SqlProvider.Execute(System.Linq.Expressions.Expression, QueryInfo, System.Data.Linq.SqlClient.IObjectReaderFactory, System.Object[], System.Object[], System.Data.Linq.SqlClient.ICompiledSubQuery[], System.Object) 
System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(System.Linq.Expressions.Expression, QueryInfo[], System.Data.Linq.SqlClient.IObjectReaderFactory, System.Object[], System.Data.Linq.SqlClient.ICompiledSubQuery[]) 
System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(System.Linq.Expressions.Expression) 
System.Data.Linq.DataQuery`1[[System.__Canon, mscorlib]].System.Linq.IQueryProvider.Execute[[System.Int32, mscorlib]](System.Linq.Expressions.Expression) 
System.Linq.Queryable.Count[[System.__Canon, mscorlib]](System.Linq.IQueryable`1) 
LAWAdminSite.Operation.Points.ddlStudent_SelectedIndexChanged(System.Object, System.EventArgs) 
LAWAdminSite.Operation.Points.btnSearch_Click(System.Object, System.EventArgs) 
System.Web.UI.WebControls.Button.OnClick(System.EventArgs) 
System.Web.UI.WebControls.Button.RaisePostBackEvent(System.String) 
System.Web.UI.Page.RaisePostBackEvent(System.Web.UI.IPostBackEventHandler, System.String) 
System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean) 
System.Web.UI.Page.ProcessRequest(Boolean, Boolean) 
System.Web.UI.Page.ProcessRequest() 
System.Web.UI.Page.ProcessRequest(System.Web.HttpContext) 
ASP.operation_points_aspx.ProcessRequest(System.Web.HttpContext) 
System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
System.Web.HttpApplication.ExecuteStep(IExecutionStep, Boolean ByRef) 
System.Web.HttpApplication+PipelineStepManager.ResumeSteps(System.Exception) 
System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, System.AsyncCallback) 
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext) 
System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32) 
System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32) 
DomainNeutralILStubClass.IL_STUB(Int64, Int64, Int64, Int32) 
DomainNeutralILStubClass.IL_STUB(IntPtr, System.Web.RequestNotificationStatus ByRef) 
[[NDirectMethodFrameStandalone] (System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion)] System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatusByRef) 
System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32) 
System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32) 
DomainNeutralILStubClass.IL_STUB(Int64, Int64, Int64, Int32) 
[[ContextTransitionFrame]] 

Full Call Stack




    Arg 1

    Arg 2

    Arg 3

    Arg 4

  Source

ntdll!RtlReportCriticalFailure+8c     00000e5`e2e70790     0007ffb`df1ced40     00000e5`e1510000     0007ffb`9ff73c1b    
ntdll!RtlpHeapHandleError+12     00000e5`e1510000     0000000`00000000     0000000`00000000     0000000`00000000    
ntdll!RtlpLogHeapFailure+a4     00000e5`e1e35c50     0000000`00000000     00000e5`e1e35c40     00000e5`e1fd4ed8    
ntdll!RtlFreeHeap+74f2f     0000000`00000000     00000e5`e2e70790     fffffff`00000000     0007ffb`40f30020    
combase!CoTaskMemFree+3f [d:\blue\com\combase\class\memapi.cxx @ 475]     00000e5`e1fda6c0     00000e7`28254ea0     0000000`00000000     00000e5`e2e70790   d:\blue\com\combase\class\memapi.cxx @ 475 
mscorwks!DebuggerMethodInfo::SetInstrumentedILMap+20     0000000`00000000     00000e7`28fdbd40     0007ffb`40f30020     0007ffb`a0015c2d    
mscorwks!Debugger::SetILInstrumentedCodeMap+a1     0000000`00000000     0000000`0600058d     0007ffb`40f30020     0007ffb`a0548e09    
mscorwks!ProfToEEInterfaceImpl::SetILInstrumentedCodeMap+5d     00000e5`e1e0b320     0007ffb`a0bab820     000cdd8`7bc7ca64     00000e7`28fdbd28    
mscordbc!CorProfInfo::SetILInstrumentedCodeMap+2b     00000e5`e1e0b320     00000e5`e1e0b320     00000e7`282592b0     00000e5`e1e14560    
MicrosoftInstrumentationEngine_x64!DllRegisterServer+1dec0     00000e5`00000188     00000e7`28254ea0     0007ffb`a06b7ba0     00000e5`e1e0b320    
MicrosoftInstrumentationEngine_x64!DllRegisterServer+842d     00000e7`28fdbe40     0000000`00000001     0000000`00000000     00000e7`28254ea0    
mscordbc!EEToProfInterfaceImpl::JITCompilationStarted+d3     00000e7`2b4da360     0000000`00000000     0000000`00000000     0000000`00000000    
mscorwks!MethodDesc::MakeJitWorker+2e8171     0007ffb`4153a410     0000002`00000000     00000e7`00000000     0000000`00000000    
mscorwks!MethodDesc::DoPrestub+57c     0000000`00000000     00000e5`e1e87040     00000e7`00000000     0007ffb`4153a410    
mscorwks!PreStubWorker+1fa     0000000`00000000     00000e7`28fdc3d0     00000e7`28fdc248     00000e7`2661d460    
mscorwks!ThePreStubAMD64+87     00000e6`24774d58     0000000`00000001     0000000`00000000     0007ffb`00000000    
mscorwks!CallDescrWorker+82     00000e7`28fdc340     0000000`00000006     00000e7`28fdc538     0000000`00000000    
mscorwks!CallDescrWorkerWithHandler+d3     00000e7`28fdc3c8     0000000`00000000     00000e7`28fdc5c8     0000000`00000008    
mscorwks!MethodDesc::CallDescr+2b1     0007ffb`40c39698     00000e6`24774d58     0007ffb`40c39698     0007ffb`40c39698    
mscorwks!InvokeImpl+40a     0005826`34366b74     0007ffb`9fe02390     00000e6`24775090     00000e7`2661d460    
mscorwks!RuntimeMethodHandle::InvokeMethodFast+131     0000000`00000096     0000000`00000000     00000e6`24775460     00000e7`28fdcb88    
System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, Boolean)     00000e6`24774f08     0007ffb`41497f60     00000e6`24774f28     0007ffb`414dcef8    
System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)     00000e6`24774d58     00000e6`24773b40     00000e6`24774680     00000e6`24774798    
System.Reflection.MethodBase.Invoke(System.Object, System.Object[])     00000e6`6443b980     00000e6`24774d70     00000e6`24774d98     0007ffb`40747080    
System.Data.Linq.SqlClient.SqlProvider.Execute(System.Linq.Expressions.Expression, QueryInfo, System.Data.Linq.SqlClient.IObjectReaderFactory, System.Object[], System.Object[], System.Data.Linq.SqlClient.ICompiledSubQuery[], System.Object)     00000e6`63d8dab8     0007ffb`409b702a     00000e6`24770fa0     00000e6`23cfa180    
System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(System.Linq.Expressions.Expression, QueryInfo[], System.Data.Linq.SqlClient.IObjectReaderFactory, System.Object[], System.Data.Linq.SqlClient.ICompiledSubQuery[])     00000e6`63d8dab8     00000e6`24760f78     00000e6`2475cdf0     00000e6`2474b6c8    
System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(System.Linq.Expressions.Expression)     00000e6`63d8dab8     00000e6`2475cdb8     0007ffb`407546d8     00000e7`28fdccb0    
System.Data.Linq.DataQuery`1[[System.__Canon, mscorlib]].System.Linq.IQueryProvider.Execute[[System.Int32, mscorlib]](System.Linq.Expressions.Expression)     00000e6`2474ae38     0007ffb`413b8fc8     00000e6`2474b6c8     00000e7`28fdccb0    
System.Linq.Queryable.Count[[System.__Canon, mscorlib]](System.Linq.IQueryable`1<System.__Canon>)     0007ffb`413b3b18     00000e6`2474ae38     00000e6`2474ae00     0007ffb`413b6f38    
LAWAdminSite.Operation.Points.ddlStudent_SelectedIndexChanged(System.Object, System.EventArgs)     00000e6`23d66560     00000e6`642f6fa0     00000e5`e3d4fb18     0000000`00000000    
LAWAdminSite.Operation.Points.btnSearch_Click(System.Object, System.EventArgs)     00000e6`23d66560     00000e6`642f77e0     00000e5`e3d4fb18     0000000`0000000c    
System.Web.UI.WebControls.Button.OnClick(System.EventArgs)     00000e6`642f77e0     00000e5`e3d4fb18     00000e6`63c90628     0000000`0000000c    
System.Web.UI.WebControls.Button.RaisePostBackEvent(System.String)     00000e6`642f77e0     0000000`00000000     0007ffb`4114fc18     0007ffb`40753c88    
System.Web.UI.Page.RaisePostBackEvent(System.Web.UI.IPostBackEventHandler, System.String)     00000e6`23d66560     00000e6`642f77e0     0000000`00000000     0007ffb`40e41dd8    
System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean)     00000e6`23d66560     0000000`00000001     0000000`00000001     0007ffb`40747080    
System.Web.UI.Page.ProcessRequest(Boolean, Boolean)     00000e6`23d66560     00000e5`e3c93301     00000e7`28fdde01     00000e7`28fddfb0    
System.Web.UI.Page.ProcessRequest()     00000e6`23d66560     00000e6`642b88a8     00000e6`642b8a00     00000e6`642b89b0    
System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)     00000e6`23d66560     00000e6`23cf13a8     0007ffb`40a2bc70     0005826`34366b74    
ASP.operation_points_aspx.ProcessRequest(System.Web.HttpContext)     00000e6`23d66560     00000e6`23cf13a8     0007ffb`40a2bc70     0005826`34366b74    
System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     00000e6`23cfa348     8d72639`4a3e6680     00000e7`28fde339     0000000`00000000    
System.Web.HttpApplication.ExecuteStep(IExecutionStep, Boolean ByRef)     00000e6`23cf4680     00000e6`23cfa348     00000e7`28fde339     00000e6`23cf4680    
System.Web.HttpApplication+PipelineStepManager.ResumeSteps(System.Exception)     00000e6`23cfa180     0007ffb`40d940d9     00000e6`a3c95618     0007ffb`40d93f0b    
System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, System.AsyncCallback)     0000000`00000000     00000e6`23cf1108     00000e7`28fde4b0     00000e6`23cf13a8    
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)     00000e6`a3c95618     00000e6`23cf1108     00000e6`23cf13a8     00000e7`28fde5c0    
System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)     00000e5`e1e90ac4     00000e5`e1e90638     00000e7`28fde720     0000100`00000040    
System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)     0006cc8`8ba7e7b7     0000000`00000000     0000000`00000000     0007ffb`a08b4d3b    
DomainNeutralILStubClass.IL_STUB(Int64, Int64, Int64, Int32)     0000000`00000003     0007ffb`a08b525c     0000000`00000000     0007ffb`c34c36b8    
mscorwks!UMThunkStubAMD64+7a     00000e5`e1e90638     0000000`00000080     00000e5`e1fd80fc     0007ffb`c34c37d8    
webengine!W3_MGD_HANDLER::ProcessNotification+107     00000e5`00000000     00000e5`e1e90638     00000e5`e2d3bcb8     0007ffb`c34c37d8    
webengine!W3_MGD_HANDLER::DoWork+312     00000e5`e1e8ef70     00000e5`e2010ab8     0000000`00000000     0007ffb`a0fa9980    
webengine!RequestDoWork+44e     0000000`00000000     00000e5`e1e8ef70     0007fc9`c20acbc5     0000000`00000000    
webengine!CMgdEngHttpModule::OnExecuteRequestHandler+24     0007ffb`a0fac854     00000e5`e1bccc90     0000000`00000000     0000000`00000000    
iiscore!NOTIFICATION_CONTEXT::RequestDoWork+b8     00000e5`e1bccc90     00000e7`28fdeae1     00000e5`e1e8ef80     00000e5`e1e91308    
iiscore!NOTIFICATION_CONTEXT::CallModulesInternal+1aa     00000e5`e1e8ef70     0000000`00000000     00000e5`e1bccc90     00000e5`e2027ae0    
iiscore!NOTIFICATION_CONTEXT::CallModules+36     0000000`00000000     00000e5`e1bccc90     0000000`00000000     0000000`00000000    
iiscore!NOTIFICATION_MAIN::DoWork+541     00000e5`e1e8ef70     0000000`00000000     0000000`00000000     00000e5`e1bccc90    
iiscore!W3_CONTEXT_BASE::IndicateCompletion+d4     00000e7`2661d460     00000e5`e1e90638     00000e7`28fdef90     00000e7`28fdf010    
webengine!MgdIndicateCompletion+61     0000000`00000000     00000e7`2661d460     00000e7`28fdf1e8     00000e7`28fdf030    
mscorwks!DoNDirectCall__PatchGetThreadCall+7b     00000e7`28fdf110     0007ffb`40a2ba78     00000e6`23cf13a8     0000000`00000000    
DomainNeutralILStubClass.IL_STUB(IntPtr, System.Web.RequestNotificationStatus ByRef)     00000e5`e1e90638     00000e7`28fdf1e8     0007ffb`40a2c9c0     0005826`34366b74    
System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)     0000000`00000000     00000e5`e1e90638     0000000`0000000b     0000000`00000004    
System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)     0000000`00000000     00000e5`e1e90638     0000000`0000000b     0000000`00000004    
DomainNeutralILStubClass.IL_STUB(Int64, Int64, Int64, Int32)     00000e7`26391800     0000000`00000000     00000e7`2661d460     0007ffb`9ff7550e    
mscorwks!UM2MThunk_WrapperHelper+4b     0000000`00000000     0007ffb`9ff73c9e     0000000`00000000     0000000`00000001    
mscorwks!UM2MThunk_WrapperWorker+99     00000e7`2661d460     00000e7`2661d460     00000e7`00000000     00000e7`00000000    
mscorwks!UM2MThunk_Wrapper+19     00000e7`26391820     00000e7`28fdf610     00000e5`e1fd8000     00000e5`e1fd80d0    
mscorwks!Thread::DoADCallBack+145     0000100`00000040     0000100`00000000     0000001`00000000     00000e5`e1fd80d0    
mscorwks!UM2MDoADCallBack+90     0000000`00000000     00000e7`2661d460     fffffff`00000000     0007ffb`a08b1200    
mscorwks!UMThunkStubAMD64+276     0000000`00000000     00000e5`e1e90638     0000000`0000000b     0000000`00000004    
webengine!W3_MGD_HANDLER::ProcessNotification+107     00000e5`00000004     00000e5`e1e90638     0000000`00000001     0007ffb`a08b1200    
webengine!ProcessNotificationCallback+46     00000e5`e1e90638     0007ffb`9ff4e316     00000e5`e1e90638     0007ffb`a08b1200    
mscorwks!UnManagedPerAppDomainTPCount::DispatchWorkItem+157     0000000`00000002     00000e7`2661d460     0000000`00000002     00000e7`2661d460    
mscorwks!ThreadpoolMgr::WorkerThreadStart+1ba     0000000`00000000     0000000`00000000     00000e7`28fdfa60     00000e5`e2e8d110    
mscorwks!Thread::intermediateThreadProc+78     0000000`00000000     0000000`00000000     0000000`00000000     0000000`00000000    
kernel32!BaseThreadInitThunk+22     0007ffb`dca813d0     0000000`00000000     0000000`00000000     0000000`00000000    
ntdll!RtlUserThreadStart+34     0000000`00000000     0000000`00000000     0000000`00000000     0000000`00000000    






CLR Information


 CLR version = 2.0.50727.8806
 Microsoft.Diagnostics.Runtime version = 0.9.2.0




Exception Information


NTDLL!RTLREPORTCRITICALFAILURE+8CIn w3wp__LAWAdmin__PID__12492__Date__08_21_2019__Time_09_13_09PM__683__Second_Chance_Exception_C0000374.dmp the assembly instruction at ntdll!RtlReportCriticalFailure+8c in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused a corrupted heap exception (0xC0000374) when trying to perform an unknown operation on memory location 0x00000000 on thread 29

Heap corruption was detected in w3wp__LAWAdmin__PID__12492__Date__08_21_2019__Time_09_13_09PM__683__Second_Chance_Exception_C0000374.dmp
However pageheap was not enabled in this dump. Please follow the instructions in the recommendation section for troubleshooting heap corruption issues.

Current NTGlobalFlags value: 0x0



Module Information 

Image Name: C:\Windows\System32\ntdll.dll   Symbol Type:  PDB 
Base address: 0x00000003`00905a4d   Time Stamp:  Wed Mar 6 14:27:27 2019  
Checksum: 0x00000000`00000000   Comments:   
COM DLL: False   Company Name:  Microsoft Corporation 
ISAPIExtension: False   File Description:  NT Layer DLL 
ISAPIFilter: False   File Version:  6.3.9600.19304 (winblue_ltsb_escrow.190305-1818) 
Managed DLL: False   Internal Name:  ntdll.dll 
VB DLL: False   Legal Copyright:  ? Microsoft Corporation. All rights reserved. 
Loaded Image Name:  ntdll.dll   Legal Trademarks:   
Mapped Image Name:     Original filename:  ntdll.dll 
Module name:  ntdll   Private Build:   
Single Threaded:  False   Product Name:  Microsoft? Windows? Operating System 
Module Size:  1.68 MBytes   Product Version:  6.3.9600.19304 
Symbol File Name:  c:\symbols\ntdll.pdb\0A8BEB549D6C40CA8AB4B49C3195BDA01\ntdll.pdb   Special Build:  & 

IIS 8.5 .well-known 404 issue ("." dot in url issue)

$
0
0

Hello IIS support team,

I am touching on a known issue regarding "." (dot) characters in the URL which causes a 404, more specifically with the .well-known for google deep links.

The main issue is that when I create a virtual folder called ".well-known" (on the root or any other location of the site) and link it to the physical path I am not able to access the virtual folder path via the URL.

Please take note of the following information below:

  1. 1. I am able to access the physical "well-known" folder directly in the URL with folder browsing enabled.
  2. 2. I am able to access ANY virtual directoryWITHOUT the "." (dot) in the URL.
  3. 3. I have tested with the following modifications to the web.config:
  4. <modules runAllManagedModulesForAllRequests="true" />
  5. <validation validateIntegratedModeConfiguration="false" />

<add name="ApiURIs-ISAPI-Integrated-4.0"
path="/*"
verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS"
type="System.Web.Handlers.TransferRequestHandler"
preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>

  1. <requestFiltering allowDoubleEscaping="true" />

<httpRuntime relaxedUrlToFileSystemMapping="true" />

4. I have attempted to convert the folder to an application and copy the URL scan ini into the "app" but it does not seem to work either.

5. The only working solution I have found is to modify the "AllowDotInPath=0" to "AllowDotInPath=1" in the URLscan file, this however is considered as a security risk and will not be allowed on the particular site we are hosting.

If you could please advise on a solution or work around that possibly does not involve hosting another site on the server.

Regards,

David

Website not starting, StartApplication hang when loading assemblies

$
0
0

Hi,

I am faced with the following troubling issue and I am running out of options what to try out in order to get a website up and running again. (The following is happening on Windows Server 2012 R2 with IIS 8.5.9600.16384 on two different servers, one is a productive server and the second one is a staging one, so they are configured very much the same, on normal test servers the application is running without issues)

An application hosted in the IIS that used to work is not starting up and there is nothing in the logs or the windows event log that hints at the issue. This happened after stopping a website, replacing .dll files of an application and then starting the website again. However, also when rolling back (copying the old .dlls that used to work), the application is not starting. Furthermore, after restarting the whole IIS, the second application on the same IIS (that had no changes) could also not start any more (there are no other websites on this IIS). Running out of options, I tried analysing a memory dump taken from w3wp.exe (see stack trace below), which hints at some issue loading the .dll files, as a thread is hanging there no matter how long you wait. In the memory for LoadAllAssembliesFromAppDomainBinDirectory it can be seen that it gets the correct folder, as the System.IO.FileInfo[] Array is filled with the FileInfo for the correct .dll files. This looked like there might be some file access issue, but the file and folder settings seemed fine. Tried to make a new pool and giving rights to the new application pool identity also did not change anything. Using the "nuclear" option and giving full control to "Everyone" also did not result in the website starting, so it seems it is not related to file access rights. Adding a dummy application to the server also resulted in that dummy application not starting. The application therefore does not seem to be the issue, as the same version was already running on the same server before, and is running on other servers. It was also tried to uninstall some of the latest windows updates, but that has not yet resulted in the websites starting again.

I hope that you have additional ideas what can cause this issue.

Kind regards

.NET Call Stack

[[HelperMethodFrame_PROTECTOBJ] (System.Reflection.RuntimeAssembly._nLoad)] System.Reflection.RuntimeAssembly._nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMarkByRef, IntPtr, Boolean, Boolean, Boolean) 
mscorlib_ni!System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)+d2 
mscorlib_ni!System.Reflection.RuntimeAssembly.InternalLoad(System.String, System.Security.Policy.Evidence, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean)+f2 
mscorlib_ni!System.Reflection.RuntimeAssembly.InternalLoad(System.String, System.Security.Policy.Evidence, System.Threading.StackCrawlMark ByRef, Boolean)+11 
mscorlib_ni!System.Reflection.Assembly.Load(System.String)+23 
System_Web_ni!System.Web.Configuration.CompilationSection.LoadAssemblyHelper(System.String, Boolean)+7a 
System_Web_ni!System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()+1f3 
System_Web_ni!System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()+83 
System_Web_ni!System.Web.Compilation.BuildManager.GetReferencedAssemblies(System.Web.Configuration.CompilationSection)+14b 
System_Web_ni!System.Web.Compilation.BuildManager.CallPreStartInitMethods(System.String, Boolean ByRef)+94 
System_Web_ni!System.Web.Compilation.BuildManager.ExecutePreAppStart()+ac 
System_Web_ni!System.Web.Hosting.HostingEnvironment.Initialize(System.Web.Hosting.ApplicationManager, System.Web.Hosting.IApplicationHost, System.Web.Configuration.IConfigMapPathFactory, System.Web.Hosting.HostingEnvironmentParameters, System.Security.Policy.PolicyLevel, System.Exception)+47f 
System_Web_ni!System.Web.Hosting.HostingEnvironment.Initialize(System.Web.Hosting.ApplicationManager, System.Web.Hosting.IApplicationHost, System.Web.Configuration.IConfigMapPathFactory, System.Web.Hosting.HostingEnvironmentParameters, System.Security.Policy.PolicyLevel)+26 
[[GCFrame]] 
[[GCFrame]] 
[[ContextTransitionFrame]] 
[[GCFrame]] 
[[GCFrame]] 
[[GCSafeCollectionFrame]] 
[[GCSafeCollectionFrame]] 
[[GCSafeCollectionFrame]] 
[[GCSafeCollectionFrame]] 
[[GCSafeCollectionFrame]] 
[[GCSafeCollectionFrame]] 
[[GCSafeCollectionFrame]] 
[[TPMethodFrame] (System.Web.Hosting.HostingEnvironment.Initialize)] System.Web.Hosting.HostingEnvironment.Initialize(System.Web.Hosting.ApplicationManager, System.Web.Hosting.IApplicationHost, System.Web.Configuration.IConfigMapPathFactory, System.Web.Hosting.HostingEnvironmentParameters, System.Security.Policy.PolicyLevel) 
System_Web_ni!System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(System.String, System.Web.Hosting.IApplicationHost, System.Web.Hosting.HostingEnvironmentParameters)+1496 
System_Web_ni!System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(System.String, System.Web.Hosting.IApplicationHost, System.Web.Hosting.HostingEnvironmentParameters)+35 
System_Web_ni!System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(System.String, System.Web.Hosting.IApplicationHost, System.Web.Hosting.HostingEnvironmentParameters)+92 
System_Web_ni!System.Web.Hosting.ApplicationManager.CreateObjectInternal(System.String, System.Type, System.Web.Hosting.IApplicationHost, Boolean, System.Web.Hosting.HostingEnvironmentParameters)+6f 
System_Web_ni!System.Web.Hosting.ProcessHost.StartApplication(System.String, System.String, System.Object ByRef)+1fb 
System_Web_ni!DomainNeutralILStubClass.IL_STUB_COMtoCLR(IntPtr, IntPtr, IntPtr)+a9 
[[ComMethodFrame]] 


Full Call Stack

ntdll!NtClose+a    
KERNELBASE!CloseHandle+17    
clr!CAssemblyStream::Commit+4e    
clr!CopyAssemblyFile+1ba    
clr!CAsmDownloadMgr::CreateAssembly+33a32e    
clr!CAsmDownloadMgr::DoSetupPushToCache+b3    
clr!CAsmDownloadMgr::DoSetup+2e9    
clr!CAssemblyDownload::DoSetup+b8    
clr!CAssemblyDownload::DownloadComplete+bb    
clr!CAssemblyDownload::KickOffDownload+175    
clr!CAssemblyName::BindToObject+5bc    
clr!FusionBind::RemoteLoad+1aa    
clr!AssemblySpec::LoadAssembly+19a    
clr!AssemblySpec::FindAssemblyFile+113    
clr!AppDomain::BindAssemblySpec+ef7    
clr!AssemblySpec::LoadDomainAssembly+1ec    
clr!AssemblySpec::LoadAssembly+1b    
clr!AssemblyNative::Load+304    
mscorlib_ni!System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)+d2    
mscorlib_ni!System.Reflection.RuntimeAssembly.InternalLoad(System.String, System.Security.Policy.Evidence, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean)+f2    
mscorlib_ni!System.Reflection.RuntimeAssembly.InternalLoad(System.String, System.Security.Policy.Evidence, System.Threading.StackCrawlMark ByRef, Boolean)+11    
mscorlib_ni!System.Reflection.Assembly.Load(System.String)+23    
System_Web_ni!System.Web.Configuration.CompilationSection.LoadAssemblyHelper(System.String, Boolean)+7a    
System_Web_ni!System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()+1f3    
System_Web_ni!System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()+83    
System_Web_ni!System.Web.Compilation.BuildManager.GetReferencedAssemblies(System.Web.Configuration.CompilationSection)+14b    
System_Web_ni!System.Web.Compilation.BuildManager.CallPreStartInitMethods(System.String, Boolean ByRef)+94    
System_Web_ni!System.Web.Compilation.BuildManager.ExecutePreAppStart()+ac    
System_Web_ni!System.Web.Hosting.HostingEnvironment.Initialize(System.Web.Hosting.ApplicationManager, System.Web.Hosting.IApplicationHost, System.Web.Configuration.IConfigMapPathFactory, System.Web.Hosting.HostingEnvironmentParameters, System.Security.Policy.PolicyLevel, System.Exception)+47f    
System_Web_ni!System.Web.Hosting.HostingEnvironment.Initialize(System.Web.Hosting.ApplicationManager, System.Web.Hosting.IApplicationHost, System.Web.Configuration.IConfigMapPathFactory, System.Web.Hosting.HostingEnvironmentParameters, System.Security.Policy.PolicyLevel)+26    
clr!CallDescrWorkerInternal+83    
clr!CallDescrWorkerWithHandler+4a    
clr!DispatchCallDebuggerWrapper+1f    
clr!DispatchCall+72    
clr!CrossDomainChannel::MarshalAndCall_Wrapper+3d0    
clr!MakeCallWithAppDomainTransition+f5    
clr!CrossDomainChannel::MarshalAndCall+4c7    
clr!CrossDomainChannel::ExecuteCrossDomainCall+54    
clr!CrossDomainChannel::CheckCrossDomainCall+a4    
clr!CTPMethodTable::OnCall+69    
clr!TransparentProxyStub_CrossContextPatchLabel+a    
System_Web_ni!System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(System.String, System.Web.Hosting.IApplicationHost, System.Web.Hosting.HostingEnvironmentParameters)+1496    
System_Web_ni!System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(System.String, System.Web.Hosting.IApplicationHost, System.Web.Hosting.HostingEnvironmentParameters)+35    
System_Web_ni!System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(System.String, System.Web.Hosting.IApplicationHost, System.Web.Hosting.HostingEnvironmentParameters)+92    
System_Web_ni!System.Web.Hosting.ApplicationManager.CreateObjectInternal(System.String, System.Type, System.Web.Hosting.IApplicationHost, Boolean, System.Web.Hosting.HostingEnvironmentParameters)+6f    
System_Web_ni!System.Web.Hosting.ProcessHost.StartApplication(System.String, System.String, System.Object ByRef)+1fb    
System_Web_ni!DomainNeutralILStubClass.IL_STUB_COMtoCLR(IntPtr, IntPtr, IntPtr)+a9    
clr!COMToCLRDispatchHelper+39    
clr!COMToCLRWorker+1e7    
clr!GenericComCallStub+57    
webengine4!W3_MGD_APP_CONTEXT::CreateAppDomain+ba    
webengine4!W3_MGD_APP_CONTEXT::OnApplicationResolveModules+ac    
webengine4!CMgdEngGlobalModule::OnGlobalApplicationResolveModules+5c    
iiscore!VIRTUAL_MODULE::GlobalDoWork+38    
iiscore!W3_SERVER::GlobalNotify+eb    
iiscore!W3_APPLICATION::ResolveModules+30    
iiscore!W3_APPLICATION::SetupNotificationContext+199c8    
iiscore!W3_CONTEXT::SetupStateMachinePhase2+289    
iiscore!W3_CONTEXT::SetupStateMachine+6c0    
iiscore!W3_MAIN_CONTEXT::OnNewRequest+253    
w3dt!WP_CONTEXT::OnCompletion+f4    
w3tp!THREAD_POOL_DATA::ThreadPoolThread+cd    
w3tp!THREAD_POOL_DATA::ThreadPoolThread+33    
w3tp!THREAD_MANAGER::ThreadManagerThread+4a    
kernel32!BaseThreadInitThunk+22    
ntdll!RtlUserThreadStart+34

Server Side Include and trailing slashes - not being 404

$
0
0

I have a site on IIS 10 that uses server side include directives.  It works great except one thing.

<!--#include file="hours.html"-->

If i go to any url of my page, such http://www.site.com/index.html  -  this works.

But if i go to www.site.com/index.html/foo   - this should be a broken link but instead it returns the index.html with all of the relative paths wrong (css and js broken). It should be a 404 correct?   I think i want it to be a 404.   Problem is google custom search is finding a bunch of these  index.html/foo type links.

The problem goes away if i disable server side include.  Any assistance would be appreciated.


Error 503 with fresh IIS

$
0
0

Hey, I am new to Windows Servers and I experienced a very frustrating error.

I installed Windows Server 2019 and IIS on my laptop to see how this works. The system is fresh and until that point, I only installed Windows Server and after that IIS by following the non-GUI-guide here:

https://www.rootusers.com/how-to-install-iis-in-windows-server-2019/

After the installation, I wanted to see results, but IE only brings up 503.

I looked it up and the most common problem is a stopped Application Pool, so I checked that and it's running.

I checked the Event Log, but it's empty. After that, I checked the http-errorlog at windows\system32\LogFiles\HTTPERR and it shows nearly nothing.

I did a netstat and it says that something is listening on port 80. I looked up the pid in the task manager and it says "system". I don't know what to do next.

I loaded up the screenshots here:

Error 503:
https://www.bilder-upload.eu/bild-e2c77a-1584019586.png.html

ApplicationPool:
https://www.bilder-upload.eu/bild-118f2e-1584019629.png.html

Default Website:
https://www.bilder-upload.eu/bild-f05628-1584019650.png.html

EventLog:
https://www.bilder-upload.eu/bild-f9b274-1584019667.png.html

HTTPERR-log:
https://www.bilder-upload.eu/bild-5cb775-1584019692.png.html

Manageable:
https://www.bilder-upload.eu/bild-8e7c55-1584019709.png.html

Thanks in advance.

IIS 8.5 - Error 500 local deployment.

$
0
0

Hello,

I have configured 3 local sites in IIS 8.5 running on Windows Server 2012 R2.

I'm using msdeploy.exe  for local deployment with below configuration.

cd C:\Program Files\IIS\Microsoft Web Deploy V3\
msdeploy.exe -verb:sync -source:package="xxx.zip" -dest:"auto" -setParam:name="IIS Web Application Name",value="reverseproxy" -allowUntrusted=true -verbose

All these sites were configured identically and all of them have the rewrite2 module installed and IIS_IUSRS added and configured in security permissions of each backend folder.

2 out of 3 sites run without any problems and I do receive response from API POST commands.

I have an issue with the third site that does not run and I don't see any obvious reason of this issue.
HTTP ERROR 500 received when I access using local web browser and when I query a POST requests to API.

Looking at inetpub log folder I do see the following errors written to the log file "500 19 13"

There are no related error entries in windows Event viewer

Is there any additional place  to look for IIS logs \ errors ? 

Please advise further troubleshooting steps.

#Software: Microsoft Internet Information Services 8.5
#Version: 1.0
#Date: 2020-04-01 08:46:29
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2020-04-01 08:46:29 127.0.0.1 GET / - 28064 - 127.0.0.1 Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - 500 19 13 138
2020-04-01 08:46:39 ::1 GET / - 28064 - ::1 Mozilla/5.0+(Windows+NT+6.3;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/80.0.3987.149+Safari/537.36 - 500 19 13 0
2020-04-01 09:16:53 ::1 POST /token - 28064 - ::1 PostmanRuntime/7.24.0 - 500 19 13 10

Below are additional configuration screens from my IIS Manager

500 19 183 31 errors

$
0
0

hello

the site works fine if I go directly to the page https://123.abc.com/apps/index1.php, but if try using https://123.abc.com i get 

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed. or 500 19 183 31 errors in the logs.

Permission NTFS permissions look correct.

thanks

CORS/CORB issues

$
0
0

We have two servers:

Server I: 10.0.1.3 (Debian 10 / Apache 2.4)

fqdn: music.domain.com (LAN access only)

Server II: 10.0.1.5 (Windows Server 2012 R2 / IIS 8)

Fqdn: gateway.domain.com (LAN and WAN access)

Both servers have the wildcard SSL certificate from DigiCert installed and properly configured for ssl connection over https (*.domain.com)

 

On server I we have a media application (Airsonic – json based )

https://music.domain.com/airsonic

From the LAN everything works flawlessly, all browsers can load Images, Frames, Scripts, Audio/Video files…

On Server II we have IIS working as a reverse proxy rule to access the Server I as follow:

<rule name="Airsonic" enabled="true" stopProcessing="true"><match url="airsonic(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Rewrite" url="https://music.domain.com/{R:0}" /></rule>

When we try to access the https://gateway.mydomain.com/airsonic from any browser then we have the following issues:

  • Failed to load resource: net::ERR_FAILED
  • Uncaught (in promise) DOMException: Failed to load because no supported source was found.
  • Uncaught (in promise) DOMException: The element has no supported sources.
  • Cross-Origin Read Blocking (CORB) blocked cross-origin response https://music.domain.com/airsonic/login with MIME type text/html

Although we can access the application from the gateway, some frames would not load correctly, and audio and video files won't play at all!

this is our web.conf file

<?xml version="1.0" encoding="UTF-8"?><configuration><system.web><httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="" /></system.web><system.webServer><httpRedirect enabled="false" destination="" childOnly="true" /><httpProtocol><customHeaders><add name="Content-Security-Policy" value="default-src https: data: 'unsafe-inline' 'unsafe-eval'" /><add name="Strict-Transport-Security" value="max-age=31536000; includeSubdomains" />				<add name="X-Frame-Options" value="SAMEORIGIN" /><add name="X-Xss-Protection" value="1;mode=block" /><remove name="X-Content-Type-Options" /><add name="X-Content-Type-Options" value="nosniff" /><add name="Access-Control-Allow-Origin" value="*" /><add name="Access-Control-Allow-Headers" value="Content-Type" /><add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,OPTIONS" /><add name="Access-Control-Allow-Credentials" value="true" /></customHeaders></httpProtocol><httpErrors errorMode="Custom"><remove statusCode="403" /><error statusCode="403" path="https://www.domain.com/errorDocs/403" responseMode="ExecuteURL" /><remove statusCode="404" /><error statusCode="404" path="https://www.domain.com/errorDocs/404" responseMode="ExecuteURL" /><remove statusCode="500" /><error statusCode="500" path="https://www.domain.com/errorDocs/500" responseMode="ExecuteURL" /></httpErrors><rewrite><rules><clear /><rule name="https Redirect" stopProcessing="true"><match url="(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false"><add input="{HTTPS}" pattern="^OFF$" /></conditions><action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="SeeOther" /></rule><rule name="Pi-Hole" enabled="true" stopProcessing="true"><match url="admin(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Rewrite" url="http://10.0.1.3:85/{R:0}" appendQueryString="true" /></rule><rule name="Monitorix" enabled="true" stopProcessing="true"><match url="monitorix(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Rewrite" url="http://10.0.1.3:8181/{R:0}" appendQueryString="true" /></rule><rule name="QBTorrent" enabled="true" stopProcessing="true"><match url="qbweb/(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><serverVariables><set name="HTTP_X-Forwarded-Host" value="{HTTP_HOST}:{SERVER_PORT}" /><set name="HTTP_REFERER" value="" /><set name="HTTP_ORIGIN" value="" /></serverVariables><action type="Rewrite" url="https://10.0.1.3:8888/{R:1}" /></rule><rule name="Airsonic" enabled="true" stopProcessing="true"><match url="airsonic(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Rewrite" url="https://music.domain.com/{R:0}" /></rule><rule name="Serviio" enabled="true" stopProcessing="true"><match url="(mediabrowser|cds)(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Rewrite" url="http://10.0.1.7:23424/{R:0}" /></rule><rule name="WOWNAS DSI" enabled="true" stopProcessing="true"><match url="dsi/(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Rewrite" url="http://10.0.1.8:5000/{R:1}" appendQueryString="true" /></rule></rules>  <outboundRules><rule name="Remove Server Response Header"><match serverVariable="RESPONSE_SERVER" pattern=".*" /><action type="Rewrite" value="Ups!" /></rule><rule name="Remove X-Powered-By Header"><match serverVariable="RESPONSE_X-POWERED-BY" pattern=".*" /><action type="Rewrite" value="hhhmmmm" /></rule></outboundRules></rewrite><directoryBrowse enabled="false" /></system.webServer></configuration>

We can only assume it's something to do with the configuration of IIS (reverse proxy rule), since if we bypass the gateway we have no issues playing audio/video... Our ultimate goal is to access the Airsonic Application from the WAN without connecting directly to the server I as we already configured the firewall to forward the proper ports to Server II!

How to establish trust between the content sent to and requested from between Server I and Server II that won’t fail with CORS/CORB and remain secure?

PS: We are NOT savvy in web.conf, so please give an example of how to make the rule rather than just mentioning what is supposed to be done...

Thank you in advance for helping with this matter, wink

IIS 8 Returns Could not create SSL/TLS channel

$
0
0

I'm working on a C# project which runs fine from my development workstation VS2019. The application makes a REST API call to a server which runs a procedure and returns a response. Everything works fine from my workstation. But when I post the project to IIS8 server and run it I get an error Could not create SSL/TLS channel.

The error occurs when I call WebResponse webResponse = request.GetResponse();

I've updated the server to .NET 8.0 . Any help is much appreciated.

        //Production Server
        HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://api.myibservices.com/v1/authenticate");
        string authInfo = "XXXXXXXXX:XXXXXXXXX";

        request.ContentType = "application/json";
        request.Method = "GET";                               
        authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));
        request.Headers["Authorization"] = "Basic " + authInfo;

        WebResponse webResponse = request.GetResponse();

        using (StreamReader reader = new StreamReader(webResponse.GetResponseStream()))
        {
            response = reader.ReadToEnd();
        }

In addition the server uses Tls12 which is part of my code at the beginning of the method: ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

Multi-Factor Authentication Server IIS setup

$
0
0

I receive an error message when I try to connect to Outlook and PowerBI. The error is

aadsts5000811 unable to verify token signature

The reason I feel this is an IIS issue the fiddler requests start off by a tunnel to login.microsoft.com, which then hits the urlhttps://analysis.windows.net/powerbi/api with a login_hint, and a redirect_uri a well as other webform values.

What occurs next is the adfs/ls?login_hint passed an X509 certificate back to login.microsoftonline.com and fails with this response.

<html>
<body>
<script>
document.location.replace("urn:ietf:wg:oauth:2.0:oob?error=invalid_grant\u0026error_description=AADSTS5000811%3a+Unable+to+verify+token+signature.+The+signing+key+identifier+does+not+match+any+valid+registered+keys.%0d%0aTrace+ID%3a+3820a62e-55fe-4fb8-8c2a-922339df2000%0d%0aCorrelation+ID%3a+e521c562-44eb-4911-a905-35c58eea2c29%0d%0aTimestamp%3a+2020-01-17+18%3a35%3a11Z")
</script>
</body>
</html>

IIS 10 AppPool Machine Key permissions after Server 2016 in-place upgrade

$
0
0

We're signing PDF documents with a certificate on various websites, and after upgrading Server 2008 R2 > Server 2012 > Server 2016, all of the OLD AppPools have the proper permissions, and those websites create properly-signed PDFs just like they did before the upgrade.

But any NEW IIS Application Pools we create do NOT receive permissions on the MachineKey file in C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\ and document-signing fails.

Running Process Monitor shows the following:

* DocumentSigningSoftware.exe succeeds when accessing C:\Users\AppPoolUser\AppData\Roaming\Microsoft\Crypto\RSA\

* DocumentSigningSoftware.exe and LSASS.exe get Access Denied errors on CreateFile in C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\

Questions:

1) For new App Pools, is the solution simply to use cacls.exe to add Full permissions on the Machine Key file in the \RSA\MachineKeys\ folder?

2) How can I get Windows Server to add the permissions when new App Pools are created?

3) Should I be concerned about any other problems that may arise due to the in-place upgrade to Server 2016?

Thanks.


Publishing an API

$
0
0

I recently had to publish an API, I did it in an application within a website, as I did for all my previous web services.

There were a DNS set up so the API should be accessed this way:

http://MyServices/MyAPI/...

But we couldn´t make it work... we get an unhandled exception when the API was invoked and not much info.
All other WCF services published there where working with no probs (http://MyServices/Service1/...http://MyServices/Service2/... etc)

When trying the services with Postman and everything seems fine, when accesing from the website (hosted in its own websitehttp://MyWebsite/) we got the unhandled exception.

Obviously, in the development server everything was working fine, just in the Staging Server (copy of Production one) was failing. But there were no differences in permissions that we could see.


After 2 days trying almost everything, I did republish it in a brand new website (for my test I used:http://MyServer:8012/ (I was testing too many things to create a DNS for each test) and it start working correctly.

My question is: Why? I solve this issue today, but now Im trying to find out why that happened.

If it helps, I was using IIS 8.5, the framework used was 4.5.2

500 error after restarting IIS.

$
0
0

I am using IIS10 with tomcat server via isapi.

However, after restarting IIS, the webpage throws 500 errors.

After reconnecting, the connection is established normally.

The problem above occurs after some time has elapsed.

I'm attaching a log to fix this.

- Connect

2020-04-28 01:21:45 W3SVC1 192.168.35.3 GET / - 80 - 158.213.242.40 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - 500 19 5 1062

- Reconnect
2020-04-28 01:21:49 W3SVC1 192.168.35.3 GET /jakarta/isapi_redirect.dll - 80 - 158.213.242.40 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - 200 0 0 15

the value does not fall within the expected range when adding certificate rule in IISClientCertificateMappingAuthentication

$
0
0

I have IIS Shared client configuration with certificate rules defined in IISClientCertificateMappingAuthentication/manytoOneMappings at website web.config level.

Suddenly I found I was getting HTTP 401.1 error when trying to access the web-service. Looking at the certificate rules in IIS, I found the password field is empty for all rules.

I removed the IIS Shared Configuration. Now when I try to add a certificate rule I get error "the value does not fall within the expected range". 

I have tried reinstalling IIS feature from Windows Server 2012 but it hasn't helped.

Any help is highly appreciated!

0x800F0922 when installing FTP Server features

$
0
0

Hi experts,

I am trying to create my FTP Server, I am following this tutorial: https://www.windowscentral.com/how-set-ftp-server-windows-10

When installing the windows features, I am getting the 0x800F0922 error towards the end of the installation.

I have done hours of searching but keep hitting a brick wall.

I have tried to install through cmd admin, dism via cmd admin, restart the computer as it suggests itself, check the regedit to delete one of the records that might cause this issue, but the record doesn't even exist for me to delete.

I have also done the check health and restore image commands and both say there are no problems found.

Hope someone can help!

dnn module redirect https to http on iis(10)

$
0
0

I have application from dnn website, and the app's webservice doesn't work and don't connect to website since i installed ssl certificate, because the c# application has http (80) connection string.

Can i redirect on iis(10) https to http only one module webservice connection with url rewrite, or can i https://www.website.com/DNN/DesktopModules/IWebCsharp/WebService.asmx to http redirect? 

Viewing all 1814 articles
Browse latest View live


Latest Images

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