Questions tagged [iis]

18847 questions
0

votes
0

answer
4

Views

IIS: cshtml pages in an application under a site

On a Windows Server 2016, I have a website with cshtml pages. Under this site, I need to add another site with cshtml pages through 'Add Application' in IIS Manager (version 1607). Let me call this added application 'app' Here is the problem. This link http://example.com/app/index.cshtml produces...
curious1
1

votes
1

answer
739

Views

Enable file logging on IIS for serilog

I want to enable file logging on IIS to resolve an issue locally on IIS. Following is the code I am using. It works when I run on visual studio and logs to a file but not when I deployed to IIS. Folder has enough permission to create a file and also I created the folder and file. What am I missing h...
Charith
1

votes
1

answer
1.8k

Views

My ASP.NET Core app says it can't read web.config

I get this error when I access my app which I published to local IIS: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. My web.config is really simple: What could be wrong? I tried giving all users permissi...
ekolis
0

votes
0

answer
9

Views

Classic ASP connection works; .Net fails. Why?

This works in a Classic ASP Web site: sConnString = 'Provider=SQLOLEDB;Data Source=MySerer;Initial Catalog=MyDB;Integrated Security=SSPI;' In a .Net web site, the following connection string gets a 'Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'' error. Both run in the same Application Pool on...
Scott Pendleton
0

votes
0

answer
11

Views

Have a sql statement that is executing twice on IIS but once on MSVS, why?

I have a sql statement that executes twice when posted to the IIS, but it only executes once when in MSVS I am not sure why it works in one but not the other. Some other information I have a wildcard SSL that is attached to the server, and I only see one post request in the network Log. The actual...
Danimal
1

votes
1

answer
916

Views

WCF Service WSDL Link with domain name

When i publish my WCF 4.0 service to server, the domain name is always converted to IP value in wsdl address. What i mean is; i want the wsdl link to be http://www.mydomainaddress/svc/service1.svc?wsdl, instead of http://myipaddress/svc/service1.svc?wsdl
SteppenWolf
2

votes
2

answer
90

Views

Windows: Python Daemon Won't Run on IIS but Runs Locally

I have a Django web application hosted on IIS. I subprocess should be consistently running alongside the web application. When I run the application locally using python manage.py runserver the background task runs perfectly while the application is running. However, hosted on IIS the background ta...
CodeRocks
1

votes
2

answer
1.3k

Views

Can IIS and SQL run on the same Azure Virtual Machine?

I am testing moving our websites to Azure. I have created an Azure virtual machine and Installed IIS and SQL on it. Following that I have uploaded the website (MVC Framework 4.5) to IIS. Having created a temporary index.htm file (for testing) I can access it externally using the relevant URL. I have...
Nico
0

votes
0

answer
14

Views

Why deploying and then running asmx service throws 500 error?

I have a webservice in asmx. I am hosting it to the IIS 7.0 in the Default Web Site but it throws error upon browsing. HTTP Error 500.19 with this code 0x80070021 Also, upon expanding the folder in IIS it doesn't show web.config and .asmxfile even it's there right in the folder. Image Folder interna...
CodingManiac
0

votes
0

answer
5

Views

OWIN shows yellow screen of death

We have an old web form project and we want to add OWIN to it. A Startup class is added to the project. We have both assebmly attribute and config owin:appStartup app key in place. We have referenced Microsoft.Owin.Host.SystemWeb version 4.0.0.0 in our project. Whenever OWIN wants to discover its S...
Beatles1692
1

votes
2

answer
2.4k

Views

Windows 7 Websocket PlatformNotSupportedException

I am working on an application using the Microsoft.Azure.Devices.Client NuGet package. Everything is running great on Windows 10, but when testing on a Win7 machine I get this aggregate exception. System.PlatformNotSupportedException: The WebSocket protocol is not supported on this platform. Search...
S. Flynn
1

votes
1

answer
43

Views

ASP.NET Core app targeting full framework — InProcess IIS?

I have an ASP.NET Core app targeting full framework 4.6. when I deploy to IIS the application runs out of process. That was the default as ASP.NET Core 2.0 and 2.1, then is said that in ASP.NET Core 2.2 is possible to run InProcess, but Does this apply to ASP.NET Core apps targeting full framework?...
Crying Freeman
1

votes
2

answer
81

Views

.Net Core 2.2. How do I get rid of this annoying HTTP 405 error when trying to delete?

I'm getting a 405 error when trying to do a simple post with a delete. I can read, write, and update just fine, but cannot for the life of me figure out why VS 2017 (or maybe more specifically, IIS Express) won't let me delete. The net has a lot of web.config this and web.config that, but they're o...
1

votes
2

answer
4.6k

Views

How to add custom HTTP Headers to IIS from the command line

We have an ASP.NET application and I need to add a custom HTTP header to IIS for all the developers on the team, so I want to add a command in the NANT script that will add the HTTP Header when the build script is run. Is it even possible to do this from the command line. I've been looking up the...
Glenn Slaven
0

votes
0

answer
17

Views

Retrieve IIS log parameter value from HTTP-Request/Response object

I want to write custom log for my application similar to IIS log using .net core. For below fields I am not able to retrieve information from HTTP-Request/Response object. Parameter : . Service Name and Instance Number (s-sitename) . User Name (cs-username) . Cookie (cs - Cookie) . Protocol Substatu...
DeveloperSD
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
2

answer
12

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

View additional questions