FAQ Database Discussion Community

Getting 404 error for JSONP Get request when deployed on IIS

I am using jquery AJAX with datatype jsonp. It is working fine on my local dev environment with huge amount of data. But when I deployed it on IIS it only works fine with a request of length less than 2121 characters, it gives 404 error for more than 2121...

'Domain/MachineName$' being used for authentication instead of 'Domain/UserName'

The following post may look same but I was unable to correct the problem after attempting all the solutions provided as answers. (Login failed for user 'DOMAIN\MACHINENAME$') MY PROBLEM I am deploying a asp.net web-app with forms authentication enabled on my IIS7 dev server in a Windows Network. My SQL...

Asp.Net/ IIS while saving record date coming in Chinese

In my Asp.Net application when I save or update a record the date is coming as @CreatedAt = N'06-May-2015 02:49:03 下午 only the AM/PM part is coming in chinese while in systems Region and language setting Format is English and Location is Macau S.A.R. The Webapplication also supports Chinese language...

How to display the physical path of a web application using appcmd.exe?

Please, observe: PS C:\Dayforce\DayforceRTQA\150520_747\SharpTop> $a C:\Program Files\IIS Express\appcmd.exe PS C:\Dayforce\DayforceRTQA\150520_747\SharpTop> &$a list app "MyDayforce/" /text:* APP path:"/" APP.NAME:"MyDayforce/" APPPOOL.NAME:"Clr4IntegratedAppPool" SITE.NAME:"MyDayforce" [application] path:"/" applicationPool:"Clr4IntegratedAppPool" enabledProtocols:"http" serviceAutoStartEnabled:"false" serviceAutoStartProvider:"" preloadEnabled:"false" [virtualDirectoryDefaults] path:"" physicalPath:""...

Domain Rewrite for both HTTP and HTTPS in IIS 7

I want to do a number of 301 redirects in one request and I found this article to be helpful. However, I have a problem where http://example.com redirects to https://www.example.com BUT https://example.com DOES NOT redirect to https://www.example.com So here are my examples: SEO - remove default.aspx (works fine but no...

How can I read the logExtFileFlags from the “Default” site?

I am attempting to read IIS 7 configuration data remotely, specifically the logExtFileFlags from the Default site. When I look at the applicationHost.config on the remote server, I see the information in question: <system.applicationHost> <sites> <site name="Default" id="1" serverAutoStart="true"> <logFile logExtFileFlags="Date, Time, ClientIP, UserName, SeverIP, Method, UriStem, URIQuery, HttpStatus, TimeTaken,...

How can I host ASP.NET 5 (vNext) MVC 6 project under IIS classic mode pool

Made a package using kpm pack Tried to set up IIS7 in classic pipeline mode I keep receiving HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. Already tried to add aspnet_isapi.dll to web.config/system.webServer/handlers section add runAllManagedModulesForAllRequests="true" for web.config/system.webServer/handlers section All...

File upload doesn't works from Android browser

File upload doesn't works from Android browser but works fine in PC browser. my MVC code work good in local IIS express [HttpPost] public string UploadJson(string id) { try { string uploadFial = "noSave"; if (Request.Files.Count > 0) { var file = Request.Files[0]; if (file != null && file.ContentLength >...

HostingEnvironment.MapPath returning wrong path

So I have a web application. In IIS, I have a site WEBSITE, and my application is run from a subsite APPLICATION owned by WEBSITE. The physical path on the machine does not match what HostingEnvironment.MapPath is returning. Say I want to get to path PATH: "\Folder\Document.pdf" The physical path...

ASP.net website is not working properly while configuring in Internet Information Services

I have created small webpage in ASP.net using c# in front end and oracle 11g at back end. Webpage is running successfully on my local pc as well as in windows server 2008 r/2 in visual studio 2010. So, i have configured same wabpage in IIS in server 2008 r/2...

The Mystery of the Vanishing EF Call

Today I got an emergency call from the users on our ASP.NET production system. Some users (not all) were unable to enter certain data. The user posted the data, and the system then froze; the call never returned. We tried to repro the problem on the QA system (which has...

SOLVED: Visual Studio 2015 Error 500.19

I have problem with opening project in VS 2015. In VS 2012, and VS 2013 is everythink ok. But when I start web application in VS 2015, I got error 500.19 while loding css and js files. I know, that it shoud be because of permissions, so I set NETWORK,...

Retrieving Hostname value from IIS bindings

I need to retrieve only the Hostname value from IIS binding and store it in a variable. Is there any way to do this? Please help.

SSL certificate error 403.13 in IIS 7.5

I'm getting 403.13 in IIS logs, when I'm trying to access my api using the created certificate(sha1). Further I tested the same certificate in other test environment it works treat and I get the the XML from the api without any issue. Certificate pfx is installed in Certificate store and...

Virtual Directory to navigate to http://localhost/MyWebsite instead of http://localhost:8080

I have deployed an ASP.NET MVC 4 application to a new site I have created in IIS 7.5, which I have bound to port 8080. I can reach it by navigating to http://localhost:8080, but I want to reach it via http://localhost/MyWebsite. I have added a Virtual Directory under my website,...

AngularJS routing not working after site hosted into IIS

We are creating SPA technique using AngularJS in ASP.NET MVC framework,AngularJS routing between pages are working fine when it's run from VS2013,but after hosting the application in to IIS7.5 routing not working, Routing Script: var appRoot = angular.module('main', ['ngRoute', 'ngGrid', 'ngResource']); //Define the main module appRoot .config(['$routeProvider', function ($routeProvider) {...

IIS app pool access network MSMQ c#

This is the scenario: We have an IIS set up on server A configured with own app pool and an ASP.NET API We have two configured MSMQ services one in server A and another in server B We configured access to MSMQ to default app pool in server A (IIS...

Not able to edit web.config in InetPub

I published my MVC 5 application under IIS\Default Web Site. I want to edit web.config file. When I go to the Inetpub\wwwroot folder and try to edit and save, it shows Access Denied. How can I edit it?...

Default Limits for IIS Express

I need to test a file upload component that will be accepting very large files. I want to test locally in my development environment but since I use IIS Express instead of IIS 7 I am not sure where to make the global change. In IIS 7 the change cannot...

Web service not accessible on host

Folks, I published a web service on iis7 on a remote win on vm ware and I can't acess it on the host os, even though I set up Nat port forwarding on vm ware and opened the corresponding port on the host`s firewall settings. My web service ip on...

Writes to database seem to have no effect

I am working with an ASP.NET web application written in C# deployed to IIS/Windows Server 2008 R2. The application uses NHibernate to interact with an Oracle database running on a networked unix server. It seems that writes being made by the application to the database have no effect. If I...

Want to install DNN 7 but getting error of Configuration Error

I am trying to install dnn 7 but it gives me a a error of Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an...

for IIS, should i use Win7 or Server 2012r2?

Ill need to set up a test IIS. From a rapid research, ive found that Win7 and Server 2012r2 are pretty much offering the same (for IIS purposes). Major difference is supported RAM and parallel RDP sessions. Rather than that, relying on the fact i need IIS, which one is...

Binding SSL certificate by name using command line

Trying to automate IIS setup for my website using InnoSetup including setting up the SSL certificate. I've been successful with creating the self-signed SSL cert using SelfSSL, so far everything works ok except that I'm not sure how to automate the last process of binding the SSL cert (created using...

How to check weblogs in IIS

My application is deployed on IIS 7. I want to check the number of failures as my logic is getting failed at some point and getting errors.Is there any general weblogs in IIS.I can only see system errors in the event logs. Is there any web logs?

HTTP Error 405.0 - Method not allowed error in asp.net mvc 4 post method

I have an existing asp.net mvc 4 solution. It has several controllers/models/views in separate folders and all work fine with both GET and POST controller methods. I have added a new folder and added its own controllers/models/views. When I call the GET controller method, from the view it works fine....

Get .ini file from IIS 7 asp.net c#

I am trying to get some parameters from an .ini file that is inside of my project folder ( asp aplicattion). I've been doing it like that: const string rutaserver = "iniciativas/iniciativas/parametros/sapconf.ini"; const string rutaserver = "http:ffr.cl/iniciativas/iniciativas/parametros/sapconf.ini"; Whit no success. What is the exact path? there is a way to...

Configure application pools with the default settings using AppCmd.exe

I am working on a build script and I need to reconfigure an application pool with the default settings hopefully using AppCmd.exe. Could you point me to the right direction? Thank you.

URL Rewrite causing redirect loop

An issue has been frustrating me today in setting up a URL Rewrite in an old .Net Webforms website (EDIT: It is a Web Site project, not a Web Application project, if that is making a difference). The site I'm working on is linked to a lot, all linking to...

How to detect and prevent (valid) malicious web requests? e.g. corporate espionage

Without trying to sound like I am creating a movie plot - here is a scenario: Website creates quotes for clients using a intricate classified quoting system. Someone with malicious intent decides to create a bot and by using a wide range of parameters, spam the quotes and essentially copy...

IIS is stripping my certificate when I make http request from aspx page

I have the following code to make a custom webservice call. var url = "https://webserviceurl" XmlDocument doc = new XmlDocument(); doc.LoadXml(reqString); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); X509Certificate Cert = X509Certificate.CreateFromCertFile(Server.MapPath("./Cert/Mycert.cer")); // ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls; ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback( delegate { return true; });...

I'm being scraped, how can I prevent this?

Running IIS 7, a couple of times a week I see a huge number of hits on Google Analytics from one geographical location. The sequence of urls they are viewing are clearly being generated by some algorithm so I know I'm being scraped for content. Is there any way to...

How to allow anonymous access to a single folder on an ADFS managed site

Asp.net site deployed to IIS7; the site is protected by ADFS. I have the need to allow anonymous access to a single folder on the site. How can I do this?

Manually deploying Umbraco website on IIS - dashboard, js and css not working

I have an Umbraco website with an SQl db. I backed up the DB and imported it on the SQL server on the server here. I then copied all the files of my umbraco folder and placed them in a folder on the server here as well. I then made...

IIS Default Document does not exist

I've created a new application under my Default Web Site with the IIS manager in order to set up Bugzilla, and according to the instructions here: https://bugzilla.readthedocs.org/en/latest/installing/iis.html#iis I supposed to add something to the Default Document, which isn't exist at all. I'm running on Windows 7 Ultimate and using IIS...

Allow listing virtual directory among others in IIS

I have a folder with two physical directories: myfolder foo bar And I map a virtual directory into myfolder/baz. When I access the directory listing for myfolder, only foo and bar are shown. I know this is by design, but is it possible at all to allow virtual directories be...

2 Way SSL - IIS 7 Returns 403.16 When Client Certificate Is Sent

So I encountered this issue (which I managed to resolve), and wanted to share the problem and solution, in case someone will experience the same issue. The problem: I configured a site on IIS 7 to require SSL and require client certificate, due to a need to implement a 2...

How to deny access to directory contents (IIS served site) via browser

I have some files kept in SiteFolder/ which I need to access through the C# project but I do not want them to be listed via browser at those path. How can I accomplish this? Is there any setting in IIS that could be changed? Also, as I gave full...

Read connection string from web.config file when deploy to IIS7

It seems to be pretty simple question but not for me. I am trying to read connection string from web.config file. I have WCF service application which have web.config file. In web.config file I defined connection strings. Then I deployed wcf application on IIS7 under default web site(One template which...

www Rewrite Rules for IIS Web.config Not Working

I have a rewrite rule in IIS that is supposed to rewrite inbound URL's without the 'www' to 'www'. The rewrite rule is in fact rewriting the URL to include the 'www', but it's directing the visitor to /index.php instead of sending them to the link they were trying to...


I have this .htaccess file. When importing it to IIS via URL Rewrite module it is giving errors. Can someone please help convert it to webconfig. Thanks in advance <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?action=$1 [NC,L] </IfModule> ...

MVC5 Web Application not looking properly when accessed on intranet after deployment

I deployed a MVC5 Web Application on the server (IIS7). Site is looking properly when I try to open it from the Server's IE10, but when I try to access the site from another machine's IE10 in the newtwork, the whole site got distorted (seems like some CSS issue). Same...

Windows Authentication prompting twice

I'm using Windows Authentication on two separate websites, on the same server, with the same domain postfix. Both are using https with two certificates. The problem is that when external users visit both sites, they are prompted for credentials twice even though the credentials will be exactly the same. I've...