Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Tuesday

IIS Reliability: How to make Application Pool more Reliable

Introduction

Application Pool Identity corresponds to security of our website with domain while running our websites under IIS. Application Pool Identity runs our website under an unique account to server apex security. Security is especially obliged highlight to ensure our delicate data while run our application over the web. Network service is default identity in IIS, it does not require password security so it caused low privileged. You can reconfigure IIS Application Pool Identities according to your particular necessity. Application Pool Identity is required in both way running on our application on Cloud or not. I have already explained how to setup application pool identity and fixed Application Pool Identity very known issue Login failed for user IIS apppool default apppool. In this article, I am explaining thoroughly how to make Application Pool more reliable.

Main IIS Issues Resolution

I have already provided resolution to very popular IIS issues like HTTP Error 403.14 - Forbidden in IISConnection Timeout In IISHTTP Error 503. The service is unavailable etc.

Main Types of Application Pool Identity


  • LocalService
  • LocalSystem
  • NetworkService
  • ApplicationPoolIdentity

LocalService, LocalSystem and NetworkService have more rights than ApplicationPoolIdentity. It is highly recommended to run your websites under high user rights to secure website over internet/intranet etc. You can also define your username and password if you choose a separate custom account.

By Command line, we can also provide complete access to DefaultAppPool 

ICACLS test.txt /grant "IIS AppPool\DefaultAppPool":F

Conclusion

Application Pool Identity first time introduced in Windows Server 2008 and later versions. Application Pool Identity helps to make your application more reliable and secure over internet. Here, I have shown how to make application pool more reliable in IIS. Security of our data is must whenever our application running over the internet. To make our app more reliable and robust with great harness, it is necessary to make our application more secure through IIS Pool Identity settings.

Saturday

The underlying provider failed on open

Introduction

I am now providing resolution of The underlying provider failed on open problem whenever we are working on across the network. If you see inner exception message then you'll caught in below error description in detail. This problem comes often when we are working with Entity Framework with MVC, ASP.Net, Windows Forms, WPF etc. This issue can be encountered in noticed scenarios. I've also written in detail associated with issue  Could not open a connection to SQL Server.

Error Description

{"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. 
Verify that the instance name is correct and that SQL Server is configured to allow remote connections. 
(provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"}

Tuesday

HTTP Error 403.14 - Forbidden in IIS

Introduction

I am explaining intimately the way to resolve issue HTTP Error 403.14 – Forbidden in IIS. Earlier, I actually have clear up in detail about Login failed for user IIS Apppool \Default Apppool, HTTP Error 503. The service is unavailable.

Error Description:

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.

Step 1: I was engaged on outstanding website, and so on I popped up a error in my browser HTTP Error 403.14 – Forbidden. The Web server is configured to not list the contents of this directory.

Friday

What Is IIS

Internet Informaton Services
IIS has great feature to deploy website over the internet. It has great extensibility, scalability, easy to manage, modular etc. It runs on Windows platform to deploy website. Microsoft has designed this great component to serve the websites over network. You can manage websites with great security through IIS. Latest features of IIS has been introduced a number of new customized features to administrate website across the world. Application pool is a cornerstone which can manage websites security concern and end user can view server sides on client machines. Both PHP and ASP.Net websites can be administered in single machine under IIS.  IIS takes

Saturday

How to Add FTP Site in IIS

Introduction

I am publishing another article on how to add FTP Site in IIS, who are newbie in IIS (Add FTP site in IIS). I have provided steps as below:

How to Add SSL Certificate

Introduction

I have suggested brilliant 10 steps how to add SSL certificate through IIS (Internet Information Service). Suppose, we don't have panel to deploy our app enabled with SSL then we need IIS complete knowledge to deply our app with SS certificate.

Step 1: Open your IIS (Internet Information Services) from start windows or with hotkeys (ctrl + R then type inetmgr).

IIS (Internet Information Services)

HTTP Error 503. The service is unavailable

Introduction

I have explained all main steps to resolve issue HTTP Error 503. The service is unavailable . When we are deploying our web application though IIS then sometime issue arise HTTP Error 503. The service is unavailable due to some features are not started through our IIS.


Step 1: I ran into issue  “HTTP Error 503. The service is unavailable” when I launched my website through IIS (internet Information Services). I ran website through IIS suddenly popup message me in browser i.e. “HTTP Error 503. The service is unavailable”.

Tuesday

Connection Timeout In IIS

Introduction

I have provided below few complete steps to adjust your connection timeout in IIS as following.

Step 1: Press Windows & run (Win + R) to open your IIS (Internet Information Services) or you can run from your program files also.

Saturday

State Management in ASP.net

Introduction

Today State management have vital role to play maintain state in ASP.net. HTTP protocol is stateless and it can’t be save/preserve the information so it is brilliant requirement to maintain states on client side as well server side. Ever changing in technology  these days we have to follow some ideal techniques to maintain the states client side because when ASP.Net server disconnects from server then information are saved in ASP.net controls called states. I have suggested below some good techniques to maintain state management in ASP.Net.
State Management in ASP.net
State Management in ASP.net

Client Based State Management options

1. View state: We can maintain view state in ASP.net when render event is fired and now page can save the information & disconnected from the server. View state life cycle is only one page we can’t navigate the information to other page with help of view state technique.

ViewState["Technology_Crowds_Year"] = "2013";

2. Control state: Control state is also maintained to preserve the state management in ASP.net but it can be possible only when we have enable view state is true otherwise it is not able to maintain state in asp.net

3. Hidden fields: Hidden field s are very good technique to maintain state in client side, hidden fields works likes repository  to save information In client side.

<asp:HiddenField id="hdTechnologyCrowds" runat="server" value='<%= Request.QueryString["TechID"] %>' />

Namespace: System.Web.UI.WebControls.HiddenField
Assembly: System.Web (System.Web.dll)

4. Cookies: Cookies is also used to maintain information at client side we can set life of cookies with expiration date as per our requirement.

5. Query strings: Query string is also good techniques to maintain state at the client side, Query string life cycle is from one page to next one only.
Example: www.technologycrowds.com/default.aspx?it =10
Querystring is most weak state in ASP.net so don’t rely on it mostly because it can be tampered very easily.

Server Based State Management options

1. Application state:  This is very brilliant technique to maintain state in ASP.Net, we can share information globally through application state & can use also this state throughout the application. It have brilliant features to track application start, application end etc.

2. Session state: This technique is most ideal technique to maintain state management in ASP.net, When any user open the browser & after authorization login then a new session is started & always different from other users. It is very good technique to track multiple browser session & multiple users.

3. Profile Properties: Profile properties is also ideal technique to maintain state in asp.net, profile properties is maintained until the session is preserves in the browser, we can store the information related to particular user & can user on all pages under user authorization.

Suggested Reading

Monday

The connection has timed out

The server at 10.10.0.1 is taking too long to respond.


  1. The site could be temporarily unavailable or too busy. Try again in few seconds.
  2. If you are unable to load any pages, check your computer's network.
  3. If your computer is protected by a fireball or proxy, make sure that Firefox is permitted to access the web.


The connection has timed out
You may check above 3 steps when you are accessing the web browser Firefox normally, sometime request to server is taking more time than expectations so it couldn't locate the server so Firefox throws above standard exception in 3 points. You may check your again 3 cross checks to restore as per our expectations.

Step 1: Check Out Our Internet Cable

We have to check that our Internet cable is connected correctly with computer peripherals or not, if something is not properly then we have to plug correctly.

Step 2: Check Out PC Fireball or Proxy

We have to check our PC fireball or proxy that we have much tightened our PC security so our anti-virus is not able to connect our PC with internet connection.

Step 3: Cross Check Anti Virus

If we are facing our PC with much anti virus issues then we could be unable to connect with internet connection.

Step 4: Check Server Running

We have to check that tattered server is working fine or not, sometime it happen due to unavailability of  responding server. 

Summary

If we look into all above mentioned points then our web browser can work fine & you are not wandered with the web browsers (Firefox, IE, Chrome, Safari) unusual behavior. I have provided above steps to resolve very known error The connection has timed out.

Suggested Reading


I wish you all happy web browsing :)
 

Saturday

404 Page Not Found

Introduction

404 Page not found is often triggered in our routine during accessing internet pages mistakenly. This error is face commonly when we are accessing public pages on web servers. Below are few reasons why we can face this problem.
  1. When we misspelled we address on URL (Uniform Resource Locator).
  2. This is client-server error 
  3. This error is also thrown we are accessing web page directly typing on URL sometimes this web           page is removed from administrator & we type directly on web browser so it throws error          instantly.
  4. You may check & happen in real life, a link is given on website but when we click on the link it throws immediately 404 Page Not Found.
  5. This error may face from another web routine also.
404 Page Not Found

Browsers: This error can faced on different browsers IE, Firefox, Chrome, Opera etc. 
Operating System: This error can be faced on different operating system Windows, Linux etc. Windows (IIS) have different sub version of 404 for Meme Type.
Remedies: To avoid this error you may take given below some effective steps.
  • If you found “404 Page Not Found” for the whole domain (www.abc.com) this means whole website is removed.
  • To avoid this problem you may type URL on major search engine Google.com, Yahoo.com, Bing.com, ASK.com etc.
  • You may also clear your browser history where old links are residing in the browser history. Once you clear your browser history fresh links of website will appear on your browser so this error can be removed.

Below are given this error displayed in different way:

  • 404 Not Found
  • Error 404
  • The requested URL [URL] was not found on this server.
  • HTTP 404
  • Error 404 Not Found
  • 404 File or Directory Not Found
  • HTTP 404 Not Found
  • 404 Page Not Found

Suggested Reading

Thursday

Login failed for user iis apppool default apppool System.Data.Sqlclient.Sqlexception

Introduction

I am here highlighting the difficulty System.Data.Sqlclient.Sqlexception:Login failed for user iis apppool \default apppool usually encountering whereas working with ASP.Net application with IIS. I actually have been engaged on web application. Everything was going fine however suddenly I got the error “System.Data.SqlClient.SqlException was unhandled by user code:  Login failed for user 'IIS APPPOOL\DefaultAppPool’” and database connection couldn't open.

Error Description:

System.Data.SqlClient.SqlException was unhandled by user code:  Login failed for user 'IIS APPPOOL\DefaultAppPool

Know How About Application Pool Identity 

Application Pool Identity corresponds to security of your website whereas running your website under IIS. Application Pool Identity runs your website unique account. Network service is IIS default identity, it doesn't need password so caused low prevailed. You'll reconfigure IIS Application Pool Identities as per your specific demand.
I have below provided steps to resolve this issue.

Step 1: Go to Run (Win+R Shortcut) and then type “inetmgr” and hit “OK” button.

Step 2: Now you are in the IIS and now expand left pane and click on the “Application Pools

Login failed for user iis apppool
IIS (Application Pool)



Step 3: Now you can select “DefaultAppPool” and click on “Advance Settings”.

Step 4: Now open “Advance Settings” window and scroll down window to “Process Model”. Under the “Process Model” section select “Identity” property. Select “LocalSystem” from drop down list. Local Service works the computer on local system & over the local computer.

Application Pool Identity
Application Pool Identity
Step 5: Process Model Element was introduced with IIS 7.0
Step 6: "ApplicationPoolIdentity" runs under dynamically created application pools. identity account. "ApplicationPoolIdentity" pool access the resources from IIS AppPool\<AppPool>, It's nice feature to administrator who will impose security privileges to end users. This is often run mostly for remotely or public accessing the website.

ApplicationPoolIdentity
ApplicationPoolIdentity

Step 7: Now Click on "OK" button, you have to take optional Step 4 or step 6 to run your application smoothly.

OK

By Command line, we can also provide complete access to DefaultAppPool (if Already complete access to production server)


ICACLS test.txt /grant "IIS AppPool\DefaultAppPool":F

Summary

Given above steps will provide you complete helpline, the way to resolve the error of “Login failed for user 'IIS APPPOOL\DefaultAppPool’”. Application pool identity need default permission to run your website under IIS perfectly for specific account access group.  I hope steps provided above will work to resolve your problem perfectly.

Relevant Reading:

Videologin failed for user