Questions tagged [iis]

18832 questions
0

votes
1

answer
11

Views

IIS Rewrite based on query string value

I am new to IIS Rewrite, Need someone to assist me, I am in a scenario to redirect to another domain based on querystring value. Ex: Request: http://localhost:50743/api/Values?stdId=1000&stdName='Test' http://localhost:50752/api/Values?stdId=1001&stdName='Test1' http://localhost:50753/api/Values?std...
Vicky S
0

votes
0

answer
3

Views

Get TLS-Unique from SSL stream and process HTTP

After long investigation I still didn't find way to get TLS-unique value (https://tools.ietf.org/html/rfc5929) from SSL connection stream using WCF (whole communication using HTTPS protocol though). We are not strictly tied to WCF, so I know there is a TcpListener that allows that via SslStream cla...
irium
0

votes
0

answer
2

Views

app cmd and web config error - resolving site name

What is the value of site name in the following code when we get a error like this as shown appcmd set config ['SITE_NAME'] /section:system.webServer/directoryBrowse /enabled:true HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. Most likely caus...
HARSHIT
1

votes
0

answer
292

Views

How to use Azure App Service Authentication for a Angular 4 app?

I have deployed a Angular 4 app to Azure. The app uses a API and the api is also deployed to azure, in the sub folder named 'V1'. The Angular app is deployed in the root. Next I have enabled 'App Service Authentication' in the Azure portal. Now, when I want to access my site I see Azure's login page...
Martijn
1

votes
0

answer
444

Views

Reverse proxy with IIS

I'm trying to integrate ASP.net and Node.js on a server. My expectation is here. client ----> IIS Server ----> ASP.NET (except /api/. localhost:80) (test.foo.com) |---> Node.js (starting with /api/. localhost:4000) Node app is executed as a windows service, and serve localhost:4000/api/ in loc...
sungyong
1

votes
0

answer
61

Views

Roslyn compiler causes recycling of application pool during compilation

I have a fairly large ASP.NET website with Roslyn compiler installed. I have also app pool recycling enabled for 'private memory usage' (IIS 10, limit set to 4GB). I was wondering why my website recycles with event log message ID 5117 A worker process serving application pool 'pool_name' has reques...
mivra
1

votes
0

answer
36

Views

Visual Studio 2017 Stops Debugging When Navigating Away From Site Being Debugged

This has been driving me crazy... Running a solution works with no problems. I can navigate within the application with no issues. The problem arises when I navigate to a site outside of the debugging site, i.e. I go to a site outside of localhost. The reason to go outside the site is to authenticat...
AntLaC
1

votes
1

answer
184

Views

iis user permissions to create schedule task

my system Windows server 2012 - iis 8 - vs2015 i have created a page (aspx web forms , C#) to allow the end user to specify a report ,email and select time to receive the report by email i used TaskScheduler 2.7.2 NuGet Link to create a task schedule to do that the problem it works fine if i tested...
Maher Khalil
1

votes
1

answer
380

Views

IIS and concurrent requests

I am going to host an C# Web Service in IIS 7. The traffic of this application could be a bit huge, almost 100 requests per minute. The question is how many request can IIS served simultaneously ? Thank you
StDeveloper
1

votes
0

answer
219

Views

IIS sites can be viewed with http://localhost:port but not with local machine IP or loopback

I have googled this and found a lot of posts, but no definitive answer. Basically, I want to play with making websites and set up a local virtual server with only IIS (v8.5) installed. It's not connected to the internet and it's purely for self education. The problem is that I have sites working, di...
d.b
1

votes
0

answer
210

Views

HTTP 504 Error - IIS - ASP.Net Application

I created an ASP.net application, published it through IIS on local machine and it's working perfect at the same machine or others on the same network. The problem is when i deployed the application to a server and tried to access through http, if the page takes more than 60 seconds to respond (whic...
Samar Awny
1

votes
1

answer
285

Views

ASP.NET Windows Authentication - Page cannot be displayed

I have created a simple WebForm asp.net web site. I have disabled the Windows Authentication checks within the code but set IIS8 to 'Windows Authentication' as well as the web.config. I perform the Indentity.IsAuthenticated check in the backend to ensure the user is authenticated. My issue is I get...
Chris Cunning
1

votes
0

answer
18

Views

Negative Impact of Turning Off Kernel Caching?

In effort to prevent session swapping, we are thinking of turning off Kernel Caching in our ASP.NET web forms app. I've been reading all about this, like here, and here. But what I'm not seeing anything about is what kind of user-experience impact this may have. Should we expect page load times t...
Casey Crookston
1

votes
0

answer
204

Views

IIS Rewrite for angular app in a virtual directory

I am trying to build a web api project with an angular front end following this example https://angular.io/guide/visual-studio-2015. In it, it states that you need to configure your web.config with That works fine when my web api project is at www.example.com, but in my IIS setup it needs to be in a...
Dookie67
1

votes
0

answer
333

Views

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was ''

When I try to access an HTTP REST API hosted on a site within my machine’s local IIS, I get this error message: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was ''.' Anonymous Authentication is enabled in the sit...
Niklasir
1

votes
0

answer
1.1k

Views

Deploy angular 4 App in IIS

I have a multi-tenant Angular 4 and .Net core 2.0 application. I have hosted .Net core API in IIS with deployment time debugging and for that I have followed this link. https://docs.microsoft.com/en-us/aspnet/core/publishing/development-time-iis-support With this configuration in IIS, I can access...
Bharat
1

votes
0

answer
21

Views

IIS 7.0 is running single-thread

I've seen that in IIS 7.0 each site has only one single-thread (if two users open two different links on the same site, the second user can't view his page until the first user finishes loading his page). This not happen with sites on IIS 7.5 It's possibile to change this behavior?
D.Souru
1

votes
0

answer
194

Views

WCF Service with a thid-party DLL: “BadImageFormatException” or “PInvoke unbalanced stack” exception

I am trying to use DinkToPDF in a WCF service to generate a PDF file from HTML. This library is a wrapper for the wkhtmltopdf library. This requires having the 32 bit or 64 bit .dll for wkhtmltopdf in the solution root folder. When the DinkToPDF 'BasicConverter.Convert()' method is called, I get th...
S-Vuk
1

votes
0

answer
223

Views

Publishing .Net Core app to IIS fails if Visual Studio 2017 when “Delete Existing Files” option is selected

When trying to publish my .Net Core app to a remote IIS server I am unable to publish with the 'Delete Existing Files' option selected. When I try I get hundreds of errors for each file saying: Unable to remove ... The process cannot access the file ... because it is being used by another process....
melroser
1

votes
0

answer
412

Views

Quartz.Net Triggers firing more then once at the same time

I am currently working on an application, where I use the Quartz Scheduler for scheduling jobs to send an email containing some log data. I currently have 9 triggers on a host server for testing, that start firing at 08:00 and then each hour till 16:00 Mon to Fri. However I have a problem with my...
Carsten
1

votes
0

answer
140

Views

Response with status 200 in Asp.net and Content-Length 0

I set up an ASP.NET project at IIS Local Server and entered a .aspx page that caused a problem that the design did not applied. Aspx file header(HTML head tag) includes ascx control(CommonHeader.ascx) GetResourceUrl code public string GetResourceUrl(string url) { string resultUrl = ''; if (Regex.Is...
Cwpark
1

votes
0

answer
35

Views

Issue loading remote PHP app via Virtual Directories in IIS

I’m currently running a wordpress IIS server for site hosting (lets call it Web01), then running a separate IIS server for web application hosting. (Apps01) I’m trying to utilize virtual directories on Web01 to dish out the content provided by Apps01 on my website. So Apps01 hosts an IIS applica...
user174887
1

votes
0

answer
69

Views

laravel iis web.config apply only to specific routes

I have laravel running on an iis server. There is a default rewrite rule that redirects all unknown urls to index.php I would like to apply this rule only to urls with a path starting with /api and additionally to the exact path /login So mydomain1.com/assets/logo.png should point to the file or fai...
Chris
1

votes
1

answer
107

Views

How to programatically accomplish url authorization in iis7 for an application?

I created a ftp site 'TestFtpSite' and an application with path '/LocalUser/demor'. Here is the configuration in ApplicationHost.config. After reading understanding-iis-url-authorization, I found that we can add location tag in ApplicationHost.config file to secure an application. But I couldn't fin...
Dream
1

votes
0

answer
1k

Views

IIS 10 getting 401 unauthorized

Deploying an asp.net project on local IIS server as a release version. Getting 401 unauthorized error on API call (allow anonymous enabled). Server runs with administrator user principal. This principal has all the permissions. And the project declared as application with correct .net library. The o...
Luba Karpenko
1

votes
0

answer
1.1k

Views

ASP.Net /IIS CORS Access-Control-Allow-Origin:* not working for all requests

I have enabled CORS by adding below to webconfig but it doesnt seems to work consistently: If we add an 'Origin' header in the request, it does show Access-Control-Allow-Origin:* headers in response. But if we don't add 'Origin' header in the request, the server doesn't return Access-Control-Allow-O...
Naveed Ahmed
1

votes
0

answer
27

Views

insufficient permissions while iterating through SiteCollection of a ServerManager object

I'm writing a function which will determine whether a particular web application exists in IIS. It works by iterating through the available sites and then checks if the particular key is in the ApplicationsCollection array: String application_name = 'some_application_name'; ServerManager iis = new S...
Notaras
1

votes
1

answer
132

Views

WiX Cannot input session value to a text box (with CustomAction)

Environment: Windows 7(x64), WiX toolset 3.10 I made an additional window to a sequence of 'WixUI_Mondo', to make the window which an user can install IIS role and .NET Framework 3.5 features...even if an environment requires a OS media containing SxS package. (I know VbScriptCall is not recommended...
illuminate33
1

votes
1

answer
640

Views

plotly-dash on iis with flask and wfastcgi

I've configured IIS with python and wfastcgi.py, getting it working, mostly. When trying with simple stuff, it returns the expected content. My issue now is with getting flask and plotly/dash working under IIS, using attribute routing. My web.config is as follows: I've created an index.py file and w...
Kim Ipsen
1

votes
0

answer
27

Views

File(media) share across servers in IIS

I have hosted my 2 WordPress websites in IIS (Windows 2012 R2) servers with a load balancer, where I use to upload images, Whenever I upload images or file from media manager via media it creates a file on individual servers I’m stuck with mounting upload folder in windows. I have changed upload f...
user1602126
1

votes
0

answer
67

Views

IIS Freezes up with making call (only from IE11)

I'm running a ASP.NET MVC (4.5) app. I can access everything fine on Chrome, FireFox, Safari, and Edge. When I try and access the site in IE11, I can login, access the main landing page, and click on any one of a number of links. When I click a link, it is supposed to open up in an iframe. From...
Dan G
1

votes
2

answer
1.1k

Views

Print PDF with ASP.NET and Acrobat Reader

I have a web application on IIS and I’ll print a file pdf. Printers are shared printers, physically connected to another computer. The website have an Application Pool Identity and the virtual account (DomainName\NameComputer$) have full permissions on printers. ‘IIS APPPOOL\NameAP’ have full...
S.A.
1

votes
0

answer
205

Views

Yarn / IIS URL rewrite

I have a React app deployed to production as a bundle.js and index.html pair, served up by IIS under a url like: https://my-app.com This talks to a .Net WebAPI backend, served up by IIS as a virtual application at https://my-app.com/api This allows the React app to make requests to the relative url...
Alex McMillan
1

votes
0

answer
153

Views

Reflection Assembly Errors in Powershell

I have some Powershell code that takes the Apps running on an IIS server and finds the versions of .NET they are running. $Apps = Get-WebApplication foreach($App in $Apps) { $binLocation = '$($App.physicalPath)\bin' # get all dlls in bin folder $dllFolder = Get-Item -Path $binLocation $dlls = $dllF...
Tourius
1

votes
1

answer
23

Views

Get C# CGI EXE name in IIS environment

I'm running a C# console app (compiled with Visual C# 2008) as a CGI application on IIS 6 on Windows Server 2008 R2 Standard. It serves as a simple API, accepting parameters from the Web and printing HTTP output. I want to have two available versions, test and live, that use the identical compiled...
equin0x80
1

votes
1

answer
33

Views

I can't refresh external javascript file

I'm making some changes on my .js file and upload to server. But I can't refresh .js file and I can't see my changes on my browser. I deleted all caches, cookies, temporary files, history on firefox and chrome. I disabled output caching on IIS. Even I delete my script file from folder, I can still...
Emirhan ÖZKAN
1

votes
1

answer
247

Views

Is it a good idea to use NodeJS terminal or iisnode

I have micorosoft windows server 2012 r2 and I have nodejs as web and api server and I want to deply it in production mode. But my question is should i install forever npm module and set to production mode and run via command prompt and may be write .bat file to execute on start up or iisnode is a b...
Mic Sel
1

votes
0

answer
211

Views

Running Angular App from IIS without using URL Rewrite

My Angular web application installs in IIS under an existing web site through an MSI installer. Since its not my server, I cannot require URL Rewrite to be installed. I came up with a simple solution to just drop a Global.asax file (without code behind) in the app folder. I simply coded a really ba...
jjslagace
1

votes
1

answer
203

Views

How do I get the specific value from configuration in IIS 8.0 (and above) using appcmd?

I am using IIS 8.5 and I need a getter for a specific property from configuration. For example, in order to set connectionTimeout property I am using the following syntax : appcmd.exe set config -section:system.applicationHost/sites /siteDefaults.limits.connectionTimeout:'00:04:00' /commit:apphost b...
Matan
1

votes
0

answer
111

Views

WCF Service Stops responding

IIS 10, Server 2016 Setup, 3 identical VMs, loadbalanced with haproxy service wcf service. Problem: After a short period of time 1 of the 3 servers will stop responding to WCF calls. The method in question returns a simple static string. With WCF tracing enabled I can see when things are working a...
Wjdavis5

View additional questions