FAQ Database Discussion Community


Allow listing virtual directory among others in IIS

iis-7,virtual-directory
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...

Want to install DNN 7 but getting error of Configuration Error

c#,asp.net,iis-7,dotnetnuke,dotnetnuke-7
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...

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

c#,wcf,iis-7,web-config
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...

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

iis-7,web-scraping
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...

Not able to edit web.config in InetPub

asp.net-mvc,iis-7,asp.net-mvc-5.1
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?...

Web service not accessible on host

web-services,networking,iis-7,vmware-workstation
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...

Configure application pools with the default settings using AppCmd.exe

iis-7
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.

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

c#,security,logging,iis-7,monitoring
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...

URL Rewrite causing redirect loop

.net,iis,iis-7,web-config,iis-8
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...

IIS Default Document does not exist

iis,iis-7,qa,bugzilla
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...

File upload doesn't works from Android browser

asp.net-mvc,file-upload,iis-7,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 >...

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

ssl,iis-7,client-certificates
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 display the physical path of a web application using appcmd.exe?

iis,iis-7,iis-7.5,appcmd
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:""...

SSL certificate error 403.13 in IIS 7.5

internet-explorer,iis-7,ssl-certificate,sha1,http-status-code-403
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...

Retrieving Hostname value from IIS bindings

powershell,iis-7
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.

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

asp.net,web-services,iis-7,httpwebrequest
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; });...

www Rewrite Rules for IIS Web.config Not Working

mod-rewrite,joomla,url-rewriting,iis-7,web-config
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...

Convert HTACCESS to WEB.CONFIG IIS7

php,iis-7
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> ...

SOLVED: Visual Studio 2015 Error 500.19

iis-7,visual-studio-2015
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,...

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

windows-7,iis-7,iis-7.5,windows-server-2012-r2
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...

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

css,c#-4.0,iis-7,asp.net-mvc-5
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...

AngularJS routing not working after site hosted into IIS

asp.net-mvc,angularjs,iis-7,single-page-application,angularjs-routing
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) {...

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

asp.net,iis-7,adfs
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?

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

c#,asp.net-mvc,iis-7
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....

Getting 404 error for JSONP Get request when deployed on IIS

jquery,asp.net,ajax,iis,iis-7
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...

HostingEnvironment.MapPath returning wrong path

c#,iis-7,asp.net-mvc-5
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...

Domain Rewrite for both HTTP and HTTPS in IIS 7

redirect,iis-7,web-config,rewrite,isapi-rewrite
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 to deny access to directory contents (IIS served site) via browser

c#,asp.net,iis,iis-7
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...

IIS app pool access network MSMQ c#

c#,asp.net,iis-7,msmq
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...

Windows Authentication prompting twice

.net,asp.net-mvc,iis-7,single-sign-on,windows-authentication
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...

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

iis,iis-7,umbraco,webmatrix,umbraco7
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...

Writes to database seem to have no effect

asp.net,iis-7,web-config,iis-6,httpmodule
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...

Binding SSL certificate by name using command line

iis-7,ssl-certificate
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...

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

asp.net-mvc-4,iis,iis-7,localhost
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,...

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

c#,asp.net,logging,iis-7
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

iis-7,httphandler,asp.net-5,asp.net-mvc-6
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...

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

c#,asp.net,sql-server,authentication,iis-7
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...

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

c#,asp.net,iis-7
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...

Default Limits for IIS Express

iis-7
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...

How to check weblogs in IIS

iis,iis-7,server,windows-server-2008,windows-server-2008-r2
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?

The Mystery of the Vanishing EF Call

c#,asp.net-mvc-4,iis-7,entity-framework-5
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...

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

asp.net,vb.net,iis-7
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...

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

c#,asp.net,oracle11g,iis-7
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...