Posts

Showing posts with the label IIS

How to run Node.js on IIS

Image
In this post you will learn how to run Node.js applications on IIS Server. As you know, Node.js is an open source, cross-platform runtime environment for server-side and networking applications. This is mostly written in JavaScript, and can be run within the Node.js runtime itself installed on Windows, Linux etc. Node.js was originally invented in 2009 by Ryan Dahl, and other developers working at Joyent .

Internal Server Error with httpHandlers section of web.config

Today I encountered titled error when I was deploying IIS6 hosted application on IIS8. On browsing the application all it displayed me is 404 page and I was not able to run the debugger to check the application code.

Windows Authentication in MVC4 with IIS Express

Image
MVC4 gone through some major changes in Windows Authentication functionality with IIS Express. In this article you will learn how to enable Windows Authentication in MVC4 Web Application on IIS Express, just follow the given steps.

The database principal owns a schema in the database, and cannot be dropped. (Microsoft SQL Server, Error: 15138)

Image
Today I added a new user in my existing database for some web application experiments and when I tried to delete the user I received following error message.

How to open IIS Manager in Windows 8

Image
To open “IIS Manager” on Windows 7 or earlier OS, we were typed “inetmgr” in run window. But for a while I got confused that how I open “IIS Manager” in my Windows 8 PC? Here is the step.

Testing Website using SSL on Localhost (IIS)

Image
Introduction SSL (Secure Socket Layer) is a cryptographic protocol developed by Netscape to provide communications security on internet. Cryptographic technology uses two keys to encrypt data, one for public (public key) and another for recipient (secret key). SSL enabled website communicates with web server by using security channel (secret key) that prevents tempering, eavesdropping (or simply say hacking). Mostly probably SSL is used on login section, payment system, online banking system etc that is very sensitive information for organization. When we enable the SSL for website URL will start with https:// instead of http://. Requirements To test this, you should have IIS installed. No need of extra software like Visual Studio or any other website development kit because only a single HTML file can be tested. Follow the steps to enable SSL on Windows Server 2008 R2 Operating System; another Operating System may have little difference. Step 1 Open IIS Manger and

Failed to generate a user instance of SQL Server due to failure in retrieving the users local application data path

Image
In this post you are going to learn how to fix titled error. Possible Solution Step 1 Open IIS Manager and click on "Advance Settings" to open a new window. Step 2 When you click on "Advanced Settings", it will pop a screen. In this window, set the "Load User Profile" to True and restart the IIS.

Becoming a Web Pro Black Belt - Mastering IIS and Other Essential Web Technologies by Scott Forsyth

There is a shortage of end to end practical training for the web pro available today. This 52-week series targeted at the current or up-and-coming web pro is meant to address this need. Scott Forsyth releases a video each week on a different aspect of this arena. Scott has a unique background that makes this such a valuable series. He has over a decade of specific hands on expertise in hosting both highly available and highly scalable web farms, and working through the intrinsic details of shared hosting. Over the years Scott worked has worked tirelessly day and night, often burning the midnight oil while troubleshooting difficult situations, or architecting the best end-to-end configuration for upcoming projects. His passion comes through in each video, while his years of real world expertise bring experience that will strengthen newbies and professionals alike. Find Videos Here

Adding Website in IIS and Using Friendly Name to Open the Website

Image
In this video you are going to learn how to add website in IIS and even how to use friendly name to open that website.

Creating New Website and configuring local IIS using Visual Studio

Image
Introduction Before writing anything, I will say this is a very simple article for those who don't know how to create website in IIS and navigate that website without opening Visual Studio IDE always. Means just open the browser and navigate that local websites. Actually such system has very huge advantages if we are working on intranets (in simple, local internet called intranet). Means if we have dozen of computers under network and one of the PC has server configuration then such websites can be available on each PC on network. Many companies has adopted such service, BSL is one the example who is using such services since decade. Look at below, I have opened a ASP.NET website without Visual Studio IDE.   In the above browser snap, 'localhost' url part may be replaced by computer name or IP. Look at snap below.   Okay, introduction is over now. Let's configure such system for our website developments. Follow the steps for the same. Note: Please be sure of IIS

Website Error Reporter (Smart way to handle website errors) in ASP.NET

Image
Introduction In this article and video post, you will learn how to develop such web application in ASP.NET which can report to the Admin guy about the errors that end users (website users) is experiencing on your blog/website. After reading this post you are definitely going to add this feature to your existing website or blog. I know I'm bit fogy in programming, but I write whatever I experience or learn. Within last 2-3 days I experienced errors on very-very popular websites namely Google, Yahoo and even few technical community websites. I can't doubt on Google or Yahoo because they have very highly qualified system to deal with. But I can doubt on websites which redirect me on the page having following message: Displayed error page "Server Error in '/' Application.", means they are not dealing properly with errors. When I reported to the admin guys, they again asked me back to provide the source URL and target URL, whe

Failed to update database \APP_DATA\ASPNETDB.MDF because the database is read-only

Failed to update database "C:\INETPUB\WWWROOT\COMPUZIT\APP_DATA\ASPNETDB.MDF" because the database is read-only. Today when I configured IIS on Windows 7 machine, my all websites displayed titled error, when I googled the fix then I got following that fixed my error. 1.) Make sure your virtual directory is running ASP.NET. 2.) Give the user ASPNET full control over the App_Data directory found within your website. 3.) Restart IIS to refresh its permissions. I hope this post will help you to fix your machine error.

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Today when I configured IIS on Windows 7 machine, my all websites displayed titled error, when I googled the fix then I got following that fixed my error. This can typically happen when you installed 4.0 first and then enabled 3.0 HTTP Activation later. Navigate to following path:- C:\Windows\System32\inetsrv\config This issue is usually caused because the app's host config (applicationHost.config) has the following incorrectly defined section: <add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" /> This should be: <add name="ServiceModel" type="System.ServiceModel.Activation.HttpModul

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed

Image
Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed. Today one of my friends asked me to fix this issue for him. And I was also new to that issue but after lot goggling I got the solution and I am going to share this with you. Follow the steps:- Step 1 Open the "Internet Information Services (IIS) Manager". Step 2 Expand the connection explorer to select "Application Pools". Step 3 In the "Application Pools" list select the "DefaultAppPool" and click on open its Advanced Settings. Look at image given below: Step 4 Now in opened window, set the "Load User Profile" to true. Look at image given below. Now test your application, it will work for you.  I hope you like it. Please send your feedback.

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System