iis-8

Get Windows logged-in Username ASP .net

假如想象 提交于 2020-01-01 03:37:08
问题 I have an application deployed on IIS 8 having forms authentication mode. Now there is a requirement where business wants to show a popup message and create an audit log if the Windows User and the Application user is different. For this I want to get the Windows Logged in user on logincontrol of the applicaiton. I have tried many ways but nothing is helping. Please guide me if it is possible or not. Guys anyone.. Please help me... 回答1: I use this site as a reference: http://richhewlett.com

erratic behavior of Preload()

爱⌒轻易说出口 提交于 2019-12-31 03:49:05
问题 I have a WCF application hosted in Windows Azure. It has IIS v8.0 I have used IProcessHostPreloadClient's Preload() method for application warmup Now, I have two issues here: 1) whenever my application pool recycles, the Preload() function is called twice. I have some static variables being initialized in the preload() method which will persist in my worker process (w3wp.exe) . What I have seen is interesting: My current worker process ID is ( w3wp.exe 1234 ,say) when recycled, preload is

Alternative for the Registering ASP.NET 4.5 on Windows Server 2012

纵然是瞬间 提交于 2019-12-30 03:17:06
问题 I am getting MIME is not registered error when I run WCF service. I used this link to resolve this issue. After that I started getting another error which asked me to register the ASP.NET framework with IIS. So I used "aspnet_regiis" command for it but it shows me following error. Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929 Administration utility to install and uninstall ASP.NET on the local machine. Copyright (C) Microsoft Corporation. All rights reserved. Start installing ASP.NET

ManagedPipelineHandler for an AJAX POST crashes if an IE9 user navigates away from a page while that call was in progress

北城余情 提交于 2019-12-29 04:23:27
问题 Scenario: User is using IE9 (IE8/10 not affected). User has an active session. Page starts an AJAX POST (GET not affected) request to a controller with the SessionState(SessionStateBehavior.Required) attribute ( ReadOnly not affected). Something keeps this request from being immediately processed (such as another request in progress that has the session locked). While that AJAX POST is in progress, the user navigates away from the page (GET or POST - doesn't matter) Result: AJAX POST

IIS Compilation Error -2146232576 AspNetInitializationExceptionModule

丶灬走出姿态 提交于 2019-12-28 05:32:04
问题 I have a fairly simple C# WebAPI2 project that runs locally but after publishing to IIS on a remote machine (Windows Server 2012 R2 Standard) the web page displays the following (after setting customErrors to "Off"): Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: The

autostart website after web deploy

血红的双手。 提交于 2019-12-25 08:13:12
问题 I have a IIS website with multiple application connected to the same app pool and I deploy regularly some of those website through web deploy with the msdeploy tool. One of this app is set to autostart with the serviceAutoStartEnabled="true" and a matching serviceAutoStartProvider . It works well when I restart the whole app pool but the autostart is not triggered when I web deploy the website Is there any way to tell IIS to "restart" fully the website after the deploy and not wait for the

Increase the wcf web service performance with separating one project to two projects

这一生的挚爱 提交于 2019-12-25 04:57:10
问题 I’m new in .net and it’s really hard to me explain my problem. So if you think I didn’t provide enough information or anything else, feel free and tell me. I have a web service for sending the text message. I receive an array of messages in input then send them. In the background, I have the queue. I put each message in the queue then send it. I treat them like a task. Each task has a maximum try count, timeout and ... Sometimes I have to try many times in order to send a single message. This

Validate certificate for Docusign Connect with X509 certificate enabled

雨燕双飞 提交于 2019-12-25 03:27:09
问题 I want to secure the connection from Docusign Connect to our https endpoint. Support already pointed me in the right direction. I downloaded the certificate from here and enabled the "Sign Message with X509 Certificate" in my Docusign portal. I'm using C# .NET 4.5.1 WebAPI hosted on IIS 8 (Windows Server 2012) as my http endpoint. How do I validate the certificate on my side? 来源: https://stackoverflow.com/questions/23921135/validate-certificate-for-docusign-connect-with-x509-certificate

.net giving 400 bad request on get request made from certain server

左心房为你撑大大i 提交于 2019-12-24 16:19:04
问题 If I run IE on my computer as the user DOMAIN\automatic the url works: right click IE shift + right click "Internet Explorer" in the menu run as different user When opening the url http://server/ClearCache there is no problem. When I do the same with powershell and run it again as DOMAIN\automatic the following script runs: $url = "http://server/ClearCache" $req = [system.Net.WebRequest]::Create($url) $req.UseDefaultCredentials = $true $res = $req.GetResponse() $res The route ClearCache has

WCF REST Service POST returns 404 Not Found on IIS

纵饮孤独 提交于 2019-12-24 16:11:32
问题 I have a WCF service created with VS2012 on Win8. If I start the service via VS (localhost:port) I'm able to do GET's and POST's. When I deploy to IIS on the same machine only GET works. The POST return 404 Not Found. I've tried deploying directly to IIS by creating an application off of my Default Web Site as well as using VS Publish. POST URL: http://www.server.com/RestService/RestServiceImpl.svc/auth POST Request Header: contents of PostData.xml below Web.config: <?xml version="1.0"