Menu
  • HOME
  • TAGS

Request.QueryString empty if 'Form' is one of the keys

asp.net,iis

Wrong diagnosis - QueryString was empty because the page was redirecting when Form=<any value> was in the URL. Thanks for everyone's help though!

abcpdf and XULRunner failure or temp browser profile directory error

.net,iis,windows-server,xulrunner,abcpdf

Seems that the fix tempPdf.HtmlOptions.EndTasks(WebSupergoo.ABCpdf10.TaskState.AllWhenBecomeIdle); isn't really a fix and even causes some performance hit. I went ahead and remove the try/catch with it and reverted back to an older version of ABC PDF until this is resolved. This version probably shouldnt of been released and they knew about this...

How to check weblogs in IIS

iis,iis-7,server,windows-server-2008,windows-server-2008-r2

The is a folder named 'logs' in your 'inetpub' folder where all the logs live. You can look at the Logging tab under IIS in IIS Manager to see the name of the specific log you should check for your site.

Is it possible to share session between different PHP versions?

php,apache,symfony2,session,iis

Apparently setting session cookie domains does not work for top level domains (TLD), like .dev Changed my code to: ini_set('session.cookie_domain', '.local.dev'); and now I am able to set session variables on .local.dev website and read them in new.local.dev Both apps are physically in separate folders, operate from two IIS entries...

Can't open localhost in Project Spartan in Windows 10 preview

iis,browser,windows-10,microsoft-edge

So the issue is Spartan Edge doesn't have access to the loopback addresses, which is something that most Windows Store are blocked from accessing. The CheckNetIsolation tool can be used to add it to the LoopbackExempt list. Use this from an elevated command prompt: CheckNetIsolation LoopbackExempt -a -n=Microsoft.Windows.Spartan_cw5n1h2txyewy Microsoft.Windows.Spartan_cw5n1h2txyewy is...

node.js iisnode https 500 HRESULT 0x6d subStatus 1013

node.js,iis,socket.io,iisnode

My problem was that my IIS hosted site run on 443 https. On node.js I wanted also to use https with the same .pfx file. This doesn't seem to work. Also there is no need to use https for node.js if the site is hosted in SSL environment. The connection...

IIS Url Rewrite rule HTTP to HTTPS AND add WWW

c#,.net,iis,url-rewriting,web-config

The problem was that I didn't have a certificate for the naked domain, only for www.mydomain.com. So when I was redirecting visitors from domain.com to www.domain.com the browser would still verify the certificate (missing) of the naked domain, and stop the redirect to show the warning screen. Problem was fixed...

What does IIS do with MVC projects

asp.net-mvc,iis

MVC nor IIS do any port listening or HTTP parsing. That's http.sys's job, which is the HTTP Server API. See MSDN: HTTP Server API, how exactly does http.sys work, Introduction to IIS Architectures, and especially HTTP Request Processing in IIS. IIS adds a lot of functionality on top of http.sys,...

Location header with IDN characters broken when hosted in IIS

asp.net,iis,asp.net-web-api

I just puny encoded the special characters for now, but I still don't understand why IIS changes the header and a self-hosted solution doesn't

IIS 7.0 URL REWRITE

asp.net,iis,url-rewriting,web-config

If you only want the root domain without subdomains then you should edit your pattern in the HTTP_POST section. Place a ^ in front of the pattern which means start with. So If the url starts with example.com then it gets redirected to www.example.com. If its dev.example.com, this rule will...

IIS + ASP.NET + Multiple sessions each minute with random session id

asp.net,session,iis

Thanks to your comments I've found what is causing these session starts: 2015-05-24 04:17:48,130 WARN [rskvci3lyd05zfml0h2myee1 - - IP:10.2.1.78 - Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)] Session_Start (): 24-05-2015 04:17:48, ID=rskvci3lyd05zfml0h2myee1 Our customer has a network monitor that checks every minute, causing a session start. I've used this layout...

How do you declare or use variables in web.config

iis,web-config

Pr @Bartude reply in comment. FAIK, this is not possible. On the other hand maintaining 2 connection strings is not that complicated, although I agree it's always best to update things only once ...

DokuWiki Installation on Windows server 2003 using IIS problems

php,iis,permissions,windows-server-2003,dokuwiki

Browse to the dokuwiki/ directory and Check the properties of the data/ folder. Ensure that the Internet Guest Account(IUSR), the appropriate web server account or Server Group(IIS_IUSRS) has Folder level “Write” permissions to the data/ folder. Browse to the dokuwiki/ directory and Check the properties of the conf/ folder. Ensure...

How to deploy a single solution with multiple projects?

asp.net,angularjs,iis,asp.net-web-api

You could also self-host the Web API using OWIN, so you wouldn't then need to set up a project in IIS etc and you could then have multiple clients talking to the same API. There's a tutorial here which is more advanced....

jQuery or AngularJS Ajax “POST” request to server using code below however do not sending param data to server.

javascript,jquery,ajax,angularjs,iis

Without seeing your server-side code it is difficult to say if that is a problem. The JS you have presented generally looks okay. You say that it runs without errors but fails to produce the expected results on the server. So I suggest you add the server-side code. Both cases...

File upload web api 2.0 error after deployment on IIS 8.5

c#,iis,file-upload,asp.net-web-api2

I think the reason you always get 200 OK is because the file is handled in an async task. So the task is started and 200 OK is returned. Any error on handling the file is lost because the request is already closed. To catch the error you can log...

AccountDomainSID is the same for all users accessing ASP.Net MVC site

asp.net,asp.net-mvc,iis

You should be able to obtain the identity associated with the application's current user off the Request object: public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // foo is just a <DIV ID="foo" runat="server"/> foo.InnerHtml += Request.LogonUserIdentity.Name + "<br/>"; foo.InnerHtml += Request.LogonUserIdentity.User.Value+"<br/>"; } }...

Add Binding To IIS With PowerShell Without Overwriting Existing

powershell,iis,octopus-deploy

You can use the New-WebBinding cmdlet: New-WebBinding ` -Name $webSiteName ` -Protocol 'http' ` -Port $bindingPort ` -IPAddress $bindingIpAddress ` -HostHeader $bindingHost And use Get-WebBinding cmdlet to check whether the binding already exists....

Regex to match file extension while ignoring query string

regex,iis,url-rewrite-module

Use \w+ instead of .+ .................(\w is equivalent to [a-zA-Z0-9_]): <add matchType="Pattern" input="{HTTP_URL}" pattern="\w+\.(js|css|less|html|eot|svg|ttf|woff|json|xml)$" negate="true" /> <!--Any url with a dot for file extension--> If you want to allow other characters (non included in \w) and still ignore query string you can use [^?]+ instead of .+...

IIS hosted ASP.NET and SharePoint server libraries - authentication / security issue

asp.net,iis,sharepoint,asp.net-web-api,owin

Ok the issue has been fixed. The problem was not the IIS itself but the SharePoint ASP.NET context. When running in that context you have to make sure to handle the cross-site scripting protection in a correct manner. Here is how The E_ACCESSDENIED resulted from a false configuration in the...

USBHIDDRIVER works in Visual Studio debug mode but not when deployed to IIS

web-services,iis,wcf-security,hid,windows-security

In order to resolve the problem I had to turn on "Enable 32-Bit Applications" for the website. Believe the problem is related to the DLL's that are used but USBHIDDRIVER

Azure virtual machine cost and pricing questions

iis,asp.net-mvc-5,sql-server-2014,azure-virtual-machine

Here are the details on licensing: http://azure.microsoft.com/en-us/pricing/licensing-faq/ Inbound data is not charged, but egress is charged. Pricing for egress is located here: http://azure.microsoft.com/en-us/pricing/details/data-transfers/...

Recycling app pool each time something is published

.net,iis,lucene,umbraco,application-pool

There's an issue with frequent app pool recycles when you update files in App_Data frequently (which Umbraco does). A MS HotFix was posted for it this morning: see MS download here. It sounds like this might be the issue that you've been having.

How to track 500 errors on WebSockets (ws://)

c#,asp.net,iis,websocket

The problem was with web.config. I added <httpRuntime targetFramework="4.5.1" /> to system.web section and it finally began to work...

CakePHP 3.0 IIS web.config

php,cakephp,iis,iis-7.5,cakephp-3.0

@ADmad helped me figure this out. It turns out that this had nothing to do with web.config in IIS. It isn't a CakePHP 3.0 specific thing either. According to CakePHP IRC the CakePHP 3.x and CakePHP 2.x routing is exactly the same. This is simply IIS PHP weirdness. The solution...

Cannot start Website in IIS - W3SVC running

asp.net,iis

First verify that the World Wide Web Publishing Service is installed and not disabled. [Source:MSDN] Right-click My Computer on the desktop, and then click Manage. Expand the Services and Applications node, and then click the Services node. In the right pane, locate the World Wide Web Publishing Service. If the...

Chrome now treating IP address of localhost same as somesite.localhost

google-chrome,iis,localhost,vagrant,hosts

This is a "feature" that was just added to chrome, all localhost domains will always resolve to loopback. See the following links for more information: https://code.google.com/p/chromium/issues/detail?id=455825 https://codereview.chromium.org/938093003 One workaround is to change your entries to not end in localhost, something like "vagrantsite1.local 192.168.33.10" instead should work....

How do subdomains work?

c#,asp.net-mvc-4,iis,subdomain,multi-tenant

My intuition (though I haven't verified this for ASP.Net MVC) is that it has 'reserved' the url http://+:80/ for your application - this means that any domain name on port 80 that resolves to localhost (*.localhost, 127.0.0.1, hosts file entires etc.) will be routed (by the OS and IIS) to...

Location of system.webServer within web.config

asp.net,iis

The location element would refer to a specific section of the site, for example, an Administration location or something. For example, the following web.config example would apply any settings within the <system.webServer> elements only to any resources located within the /admin directory of the site: <?xml version="1.0" encoding="utf-8"?> <configuration> <location...

“%” character causing issues in IIS URL rewrite regex

regex,asp.net-mvc,iis,url-rewriting

Since the string that is tested against the regex is already Url-decoded, you no longer need the %20 in your regex. Just use a plain space: <match url="^c80/How-to- Use-Shop-Name\.aspx" ignoreCase="true" /> Also, in case the space is optional, you may use a ? after it: <match url="^c80/How-to- ?Use-Shop-Name\.aspx" ignoreCase="true" />...

Two websites in same ASP.NET solution

asp.net,angularjs,iis,url-rewriting

I can see two solution The first one is to have 2 different websites in IIS and use appropriate binding configuration. In this case, each website will have its own folder and resources. This is the solution I would recommend. The other solution would be to use the URL rewrite...

Deploy MVC Application to IIS 7.5

asp.net-mvc,iis,model-view-controller,windows-server-2008-r2,.net-framework-version

Try adding this to your web.config <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> ...

WCF WebFaultException details not sent to client

c#,asp.net,.net,wcf,iis

Solved it! Like I suspected, it had nothing to do with my code. In the Arvixe hosting panel I had to enabled "Show detailed ASP.NET errors in browser" (WebSites->Errors->ASP.NET). However, I'm not exactly sure what impact this has on security, since the Web.config hasn't changed and I can't see the...

AvailableVirtualMemory on IIS and Console application

asp.net,iis,memory,console-application

The application pool (and yes IIS Express even has these) for the site that your .aspx page is running in is probably configured for 32 bit mode which is why it's returning 4GB and 3.3GB respectively. Being a 32 bit process that's all it can see. If you're running this...

Hosting a WCF service using net.tcp binding in IIS 7 (unreachable from outside)

c#,.net,wcf,iis,tcp

Ok I finally solved the issue in the middle of the night... I had to turn off the security of the netTcpBinding on both side. But it was not so simple to find out how to turn it off on the server side for a contract requiring duplex communication. Here...

Difference between containers (Docker) and IIS

windows,iis,docker

Docker is not a replacement for IIS - it can run an application like IIS within a container (I assume - not sure how this is going to work on Windows). Docker is more like a replacement for a VM - the biggest difference between a VM and a Docker...

Angular-UI-Router and IIS publishing

angularjs,iis,routing,angular-ui-router

In case anyone comes across a similar problem, I solved this on the hosted server by adding a custom error page URL specifically for the 404 status code, using the "execute a URL on this site" option.

URL Rewrite causing redirect loop

.net,iis,iis-7,web-config,iis-8

I ended up adding the following to my web.config to resolve this issue: <defaultDocument> <files> <clear /> <add value="default.aspx" /> </files> </defaultDocument> based on a reddit post. So my overall web.config for this section looks like this: <system.webServer> <rewrite> <rules> <rule name="RemoveDefaultAspxFromRoot" stopProcessing="true"> <match url="default.aspx" ignoreCase="true" /> <action type="Redirect" url="/"...

ColdFusion Builder 3 vs. Dreamweaver & local and remote paths

eclipse,iis,coldfusion,development-environment

I really don't mind this question even though it's not directly code related because I've been using ColdFusion Builder (CFB) for years and there just isn't enough good documentation out there. I now enjoy a great experience with CFB thanks to blog posts and sharing experiences with other devs :)...

deployment of a site asp.net and iis

c#,asp.net,iis

There are several domain providers like: godaddy, name etc you can use to buy a domain name. These providers also provide you steps to map the domain name to your website. Check out this link for example. This link explains domain name configuration in details.

Replace a word using IIS URL Rewrite

iis,url-rewriting

This can definitely done with url rewrite module with bit of regex pattern matching. http://domain.com/windows/sdfsdf so if you just match {R:1} or {C:1} depending on how you setup The final redirect can look like {HTTP-HOST}/WindowsSoftware/{R:2}...

Adding a sub-application to an existing IIS application programmatically

c#,asp.net,.net,iis

All Application are associated to a Site by its path. You can use the / separator to create Application inside other Application. ie: ServerManager serverManager = new ServerManager(); Site site = serverManager.Sites.Add("company.com", @"C:\tmp\company.com\www", 8080); site.Applications.Add("/app", @"C:\tmp\company.com\app"); site.Applications.Add("/app/subApp1", @"C:\tmp\company.com\subApp1"); serverManager.CommitChanges(); ...

Bonobo Git Server Configruation: HTTP Error 500.19 - Internal Server Error at line 71

iis,windows-server,windows-server-2012-r2,iis-8.5,bonobo

The error message describes what the problem is, the handlers configuration section is locked at the server level. Select the server node and open the Feature Delegation section, set Handler Mappings to Read/Write you can also run the following as an elevated administrator: %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers ...

Saving Image To a Temp Folder is Loosing Session

c#,asp.net,.net,iis

Storing temporary data in the bin folder doesn't seem to be a good idea. This folder is used to store the binary assemblies used by your ASP application and it is (by default) write protected to avoid hacking. Subfolders created there (if you are able to do it) should take...

IIS Express 8 - Max allowed length

c#,asp.net,iis,visual-studio-2013,iis-express

Let's look at the code that throws: private void ValidateRequestEntityLength() { if (!this._disableMaxRequestLength && (this.Length > this._maxRequestLength)) { if (!(this._context.WorkerRequest is IIS7WorkerRequest)) { this._context.Response.CloseConnectionAfterError(); } throw new HttpException(SR.GetString("Max_request_length_exceeded"), null, 0xbbc); } } The ctor sets those options: internal HttpBufferlessInputStream(HttpContext context, bool persistEntityBody, bool disableMaxRequestLength) { this._context = context;...

Run WCF WebService on IIS ,HTTP Error 404.0 - Not Found

c#,asp.net,web-services,wcf,iis

Per the comments, it appears this was an issue with IIS configuration for WCF. The ServiceModel Registration Tool (ServiceModelReg.exe) tool can be run (or re-run) to resolve this.

IIS Rewrite URL to remove duplicate query strings

iis,url-rewriting

Didn't realize it was possible to add a condition for {QUERY_STRING} that matches the pattern id=(.*)&id=.* and then just redirect to http://{HTTP_HOST}/{R:0}?id={C:1}

Proper way to distribute web.config as a third party web service provider

c#,asp.net,.net,web-services,iis

This depends a little on what exactly your service needs to use in web.config. You can use the ConfigSource property on certain sections in web.config to move all settings in that section to an external secondary file. For example: <system.webServer><handlers ConfigSource="httphandlers.config" /> You can then update the httphandlers.config yourself without...

Monitor Application logs as part of Jenkins

c#,.net,iis,jenkins,continuous-integration

The Text-finder plugin can parse any files and change the build status if your search matches. I'm not sure it will solve your issue if you want to do some live monitoring on running applications. But if you launch this job every minutes, it will do the job :)...

Windows client damage authorization header (Kerberos) => IIS 400 (Bad Request)

.net,windows,iis,kerberos

Solved. Eset NOD32 Antivirus version 4 was modifying HTML authorization headers on some computers. After disabling Web access protection everything works like a charm.

TFS 2013: HTTP code 503: Service Unavailable

iis,tfs

This problem occurred due to network problem. Below steps solved the issue. I changed the server from domain to workgroup and restarted the machine. Again I changed from workgroup to domain and restarted the machine. Goto IIS manager->Application Pools->Right click on Microsoft Team Foundation Server Application Pool->Advance Settings Under Process...

How to publish ASP.Net website to remote machine?

asp.net,iis

Sure there is, You have to make sure web deployment service is running on your server. You can check these articles to find out how to install the web deployment. Here or here. Once your web deployment service is running and configured you need to configure your publishing settings. In...

IIS URL rewrite rule for https and containing path

iis,url-rewrite-module

You can specify the patten in the <match> element : <rule name="Force HTTPS for /books/" enabled="true"> <match url="^/books/.*$" ignoreCase="false" /> <conditions> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="true" /> </rule> or by adding a new <condition> <rule name="Force HTTPS for /books/" enabled="true"> <match url="(.*)" ignoreCase="false" /> <conditions>...

SQL Server Native Client 11 ADO connection string for MS SQL Server 2014 with integrated login

sql-server,iis,asp-classic,database-connection,ado

Got the following connectionstring to work: strConn = "Provider=SQLOLEDB;DataTypeCompatibility=80;Integrated Security=SSPI;MARS Connection=False;Initial Catalog=myDB;Data Source=myServer" ...

Why web API return 404 when deploy to IIS

asp.net,asp.net-mvc,iis,asp.net-web-api

There are a couple of issues that I can see here. The physical path should be set to D:\api_publish and not in the bin folder. Check the application pool is set to use .NET CLR Version v4. As you mentioned in the comments, the default website already points to the...

IIS 6 Allow anonymous access by default

asp.net,iis,website,iis-6

The solution is to force IIS to write the changes from the cache into the Metabase.xml, this way the new configurations will be available for editing. This is done using the command - %systemroot%\system32\IIsCnfg.vbs /save ...

Host Four ASP.Net Projects in IIS as single direcory(maintain more projects in same url)

asp.net,iis,hosting,web-deployment

Good afternoon Ramesh! If I understand your question correctly you currently have 3 separate web roots and you want to use these as separate web applications that will be served to users based on geography in some way. You also want to maintain individual web configuration files for each as...

IIS and Windows authentication not allowing error pages

asp.net,iis,web-config,windows-authentication,global-asax

If you are using Windows authentication then you should keep this in mind- If you are manually enabling windows authentication in IIS the please do not include the code below in your web.config <authentication mode="Windows" /> if you use this, it will cause the same problem as I stated above...

Access secured Web Services using integrated windows authentication from Angular app on different server

angularjs,authentication,iis,iis-7.5,windows-authentication

So I was being a bit stupid. the line of code I was looking for was: $http.defaults.withCredentials = true; This makes it work from anywhere - include the Node dev server....

How to remove the :port number from the end of an IIS URL?

url,iis,port

80 is a default port for HTTP connections. http://example.com = http://example.com:80 443 is a default port for HTTPS connections. https://example.com = https://example.com:443 If you are hosting on an other port, you have to include it in the URL. It's not a IIS rule - it's about HTTP in general. You...

IIS High CPU Usage in Visual Studio 2013

iis,visual-studio-2013,iis-express

According to this site https://www.devexpress.com/Support/Center/Question/Details/T102322 In Microsoft Visual Studio 2013, the Browser Link feature was introduced. It provides dynamic exchange between IDE and any open browser on your machine. With the help of this feature, you can test changes in page markup in browsers on the fly, inspect HTML objects,...

404 - File or directory not found

c#,asp.net,.net,iis,dotnetnuke

Check portal alias table. Maybe it is still referring the old site

SSL certificate is not installing

iis,ssl,https

You did not generate the certificate request via IIS Manager. Thus, you should not use IIS to complete the request. Instead, you need to use OpenSSL to generate a PFX file, create a pfx file from a .cer and a .pem file Then you can import it to IIS....

HTTP to HTTPS Redirect - IIS 8.5 not working properly

redirect,iis,iis-8.5

Edit: So I found this blog post: http://www.meltedbutter.net/wp/?p=231 and gave it a try and voila! Worked like a charm. Not sure why this worked over the rules posted above but in my case the below is working and successfully taking all non-www traffic and redirecting it to both www and...

IIS rewrite rule to redirect https to http not working

asp.net,iis,url-rewriting,web-config

CloudFlare It seems the reason you cannot redirect away from SSL is because you are using CloudFlare. CloudFlare at a minimum uses flexible SSL. This means that the end user, browser shows the SSL lock but your server doesn't need SSL. See documentation here: https://www.cloudflare.com/ssl Without CloudFlare the following example...

IIS Authorization Not Working During WebRequest to Itself

c#,asp.net-mvc-4,iis

As the authorisation didn't want to work I had to work around it. As I was requesting data from the same server I didn't need to create a HttpRequest, I could just access the controllers directly. Obviously its a bit more complicated than a simple WebRequest but it does come...

DataContext.Executequery login failed

c#,sql-server,linq,iis,linq-to-sql

What is your connection string? I suppose it uses Integrated Security, so it tries to use your current windows account for DB connection. But in case of IIS - it will use different user - IIS application pool user. There are three typical ways to resolve this: Create specific SQL...

Routing problems in ASP.NET Web API if deployed in IIS as child application

c#,asp.net,iis,visual-studio-2013,asp.net-web-api

I just needed to add this to my WebApiConfig.cs config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "webapi/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); **config.Routes.MapHttpRoute( name: "Admin", routeTemplate: "{controller}/{id}", defaults: new { id = RouteParameter.Optional }** ); } Works perfectly now!...

Does copying a file cause it to lock

c#,asp.net,vb.net,iis

It depends on the application you are opening it with. For instance, if you open it with Microsoft Word, it will lock the file and other processes will only be able to read it. However, if you open it with Notepad, the file is not locked and another process can...

Web API Sync Calls Best Practice

c#,iis,.net-4.5,web-api

Using Task<T>.Result is the equivalent of Wait which will perform a synchronous block on the thread. Having async methods on the WebApi and then having all the callers synchronously blocking them effectively makes the WebApi method synchronous. Under load you will deadlock if the number of simultaneous Waits exceeds the...

ASP.NET address in IIS

asp.net,asp.net-mvc,iis

Visual studio itself provides an option to create the Virtual Directories and mappings into IIS. Please follow step1 and step2, may be it helps If I have got the question correct. ![STEP 1][1] 1. Right Click Project in Visual Studio 2. select properties ![Step2][2] 1. Select option "Web" in left...

IIS not handling WebApi requests asynchonously

c#,asp.net,iis,asp.net-web-api

only 10 threads Indeed, on non-server editions of Windows IIS is limited to 10 concurrent requests. Besides that you have done everything right and should see nearly arbitrary throughput if you increase the number of concurrent requests....

Conflict when running IIS and WCF application listening on the same port (443)

c#,asp.net,wcf,iis

It seems that it IS possible after all, and I now have it working. Basically, the only reason I wasn't able to share the port between IIS and my WCF service was that I was specifying the 'Host Name' in the IIS bindings. As soon as I removed the host...

Wordpress on IIS with shared wp-content

php,wordpress,iis,permissions

Assuming: +-----------+ +----------+ | Server A | <-- | Server B | +-----------+ +----------+ First, lets look at the App Pool for Server A -> Site A and Server B -> Site B. I would advise using Impersonation versus a service account. This will allow you to leverage AD or...

How can I correlate session.sessionid and IIS Log session cookie?

asp.net,session,iis,asp-classic,iis-6

According to this MSDN article (which is ancient, but certainly makes sense in my experience): Session ID values are 32-bit long integers. Each time the Web server is restarted, a random Session ID starting value is selected. For each ASP session that is created, this Session ID value is incremented....

Appcmd Syntax for Arrays in Powershell

powershell,iis

As you've encountered, "$site" doesn't expand to the name of the website, but to the type of object that $site refers to. "$site.name" is not way off, but in fact: "$site" -eq "Microsoft.IIs.PowerShell.Framework.ConfigurationElement" "$site.name" -eq "Microsoft.IIs.PowerShell.Framework.ConfigurationElement.name" The PowerShell parser stops recognizing the variable name at ., and treats the rest...

Adding site Binding programatically IIS 7.5

c#,iis

The account runs the code must be the administrator of the remote machine and also the DCOM related ports on the remote machine must be opened at firewall.

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

iis,iis-7,iis-7.5,appcmd

Good afternoon mark! To display the physical path using only the app object you can reference it using the [path='string'] syntax. Using this you can reference all of the properties of the nested VirtualDirectory object. So for your example you would use the following command: &$a list app "MyDayforce/" /text:[path='/'].physicalPath...

Publish will not push adovbs.inc to target File System destination (classic asp and IIS 7.5)

iis,asp-classic,iis-7.5,publish,server-side-includes

Don't use VS Publish website option for a classic asp site because there is nothing to compile, use the Copy website option instead, you can find it in the Website menu or right-click on the website in the solution explorer.

Set the Enable Parent Paths = True of ASP Application in IIS for all available websites by Power shell Script

powershell,iis

You can enumerate all websites using the IIS PSDrive: Import-Module webadministration Get-ChildItem IIS:\Sites | select -expand Name | % { Set-WebConfigurationProperty -PSPath MACHINE/WEBROOT/APPHOST -Location $_ -Filter system.webServer/asp -Name enableParentPaths -Value true } ...

published reports don't work - Database logon failed Error

c#,iis,visual-studio-2013,crystal-reports,db2

In my case the problem was that on IIS Application Pools/ my web app/ Advanced Settings the 32 bit Applications was disable and I wasn't including on my project the folder aspnet_client where crystal run-times files are storage, so the time I was publishing the app, those files wren't transferred....

get-website/get-webapplication associated directory

powershell,iis

Just look at the members of a web site: get-website -Name "Default Web Site" | Get-Member returns: ... password NoteProperty System.String password= physicalPath NoteProperty System.String physicalPath=%SystemDrive%\inetpub\wwwroot serverAutoStart NoteProperty System.Boolean serverAutoStart=True ... that's pretty obvious to me: (Get-Website -Name "Default Web Site").PhysicalPath same for an Application: (get-webapplication foo).PhysicalPath ...

IIS and Yii2 pretty URL

.htaccess,iis,web-config,yii2

try this on your web.config and save it on the root <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <directoryBrowse enabled="false" /> <rewrite> <rules> <rule name="Hide Yii Index" stopProcessing="true"> <match url="." ignoreCase="false" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />...

Web.config - Custom error pages not working

asp.net,.net,iis

Try this in web.config (includes 500 error support as well): <configuration> ... <system.web> ... <customErrors mode="On" redirectMode="ResponseRewrite" defaultRedirect="~/Error/500.htm"> <error statusCode="404" redirect="~/Error/404.htm" /> <error statusCode="500" redirect="~/Error/500.htm" /> </customErrors> ... </system.web> ... <system.webServer> ... <httpErrors errorMode="Custom"> <remove statusCode="404" /> <error statusCode="404" path="/Error/404.htm"...

IIS Print PDF through CMD using acrord32.exe

c#,asp.net,pdf,iis,printing

This cannot be done with Acrobat Reader, since it will always shows it's UI when printing, and you are not allowed to show a UI from a windows service. This is what you are doing when you use IIS on Windows Server. As @PeterHahndorf mentioned in a comment, you should...

Salt IIS configuration fails

iis,salt-stack,salt-contrib

I haven't had time to set up an environment to test, but I'm guessing it's a bug in the code.

Removing X-Frame-Options being added automatically only in Login page

c#,asp.net,asp.net-mvc,iis,iframe

MVC 5 automatically adds an X-Frame-Options Header, so go to your Global.asax file and add this to the Application_Start() method: System.Web.Helpers.AntiForgeryConfig.SuppressXFrameOptionsHeader = true; Please note that especially for a login page it is bad practice to remove this header, because it opens up your site for login credentials phishing attacks....

Malicious code hidden in image

image,iis,asp-classic,virus

OK, the file was malicious it contained encoded php, all of which im not sure of there were far too many encoded layers. It created a backdoor that fetched and executed remote code. This file was not detected by any of our antivirus software, what gave it away way was...

Maximum value for IIS .NET Compilation Batch Time-out

iis,pre-compilation

The maximum value internally is 2147483647 (32-bit signed integer). In the UI of IIS you have to specify the value as hh:mm:ss, so that would be something like: 596523 hours or 68 years. I think even if your site exceeds the default value of 15 minutes you have a problem...

Application keep Alive in Shared Hosting , No Access to IIS Manager [closed]

c#,asp.net,iis,web-config

Atlast i got a solution on another website : here's the link Keep alive IIS without accessing IIS manager In case if link is destroyed. I will explain it here: Add this code to your global.asax file and call it in App_Start which will automatically keep alive your website by...

Allow console application to access Windows Authenticated web app

c#,asp.net,asp.net-mvc,iis,asp.net-web-api

Use UseDefaultCredentials: var client = new WebClient { UseDefaultCredentials = true }; client.DownloadString(address); this will use whatever the console app is running as (which can be specified on the Scheduled Task settings)....

How to tell whether my ASP.NET app is 32bit in a 32bit IIS worker process

c#,asp.net,asp.net-mvc,iis

You already answered your own question, looking at: Environment.Is64BitProcess is good enough. Applications on IIS are hosted in worker processes, each worker process can either be 32 or 64bit. This is a setting on the application pool that corresponds to the process. So all apps in the process have the...

IIS cannot write file if called from remote, only from the server

c#,.net,iis,file-permissions

You need to enable impersonation. See this link https://technet.microsoft.com/en-au/library/cc730708(v=ws.10).aspx

How IE setting affect authorization

asp.net,iis

If you set "Enable Integrated Windows Authentication" (which is the default), and the server requires integrated Windows authentication, then the user will be authenticated silently using current default credentials, if possible. If you disable Integrated Windows Authentication, the user will be prompted to supply credentials. See this KB article for...

SignalR: WebSockets is unsupported in the current application configuration

asp.net,iis,signalr,iis-express

After long time debugging I figured it out. I just forgot to establish the connection: $.connection.hub.start() }); ...