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

Monday, March 4, 2013

Unrecognized attribute 'targetFramework' - Runtime Error

When you to try upload your site on IIS then sometimes you will get following error message:

IIS Configuration, ASP.Net Website Upload, Error Issue

To resolve this problem you will have to do the following configurations:

  • You'll likely need to re-register ASP.Net version 4 with IIS using following command:
          C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i


  • To Add ASP.NET 4.0 as Application Pool on IIS 7, Windows 7
1- Go to Control Panel -> Administrative Tools -> Internet Information Services (IIS) Manager

2- Select a virtual directory or site and click on Basic Settings from the right side: :



3- A dialog box will appear on the screen, then select a Application Pool from the list.

After that click Ok.

Thursday, October 25, 2012

How to redirect http to https in IIS?

Introduction

Here we will learn how to transfer web application URL Http to Https using IIS Manager. Please follow the below steps:

STEP-1: OBTAIN A CERTIFICATE
Select the server node in the tree-view and double-click the Server Certificates feature in the list view:
Click Create Self-Signed Certificate in the Actions pane.
Enter a friendly name for the new certificate and click OK.Now you have a self-signed certificate. The certificate is marked for "Server Authentication" use; that is, it uses as a server-side certificate for HTTP SSL encryption and for authenticating the identity of the server.

STEP-2: CREATE AN SSL BINDING

Select a site in the tree view and click Bindings... in the Actions pane. This brings up the bindings editor that lets you create, edit, and delete bindings for your Web site. Click Add... to add your new SSL binding to the site.
The default settings for a new binding are set to HTTP on port 80. Select https in the Type drop-down list. Select the self-signed certificate you created in the previous section from the SSL Certificate drop-down list and then click OK.
Now you have a new SSL binding on your site and all that remains is to verify that it works.

STEP-3: VERIFY THE SSL BINDING

In the Actions pane, under Browse Web Site, click the link associated with the binding you just created.
Internet Explorere (IE) 7 and above will display an error page because the self-signed certificate was issued by your computer, not by a trusted Certificate Authority (CA). IE 7 and above will trust the certificate if you add it to the list of Trusted Root Certification Authorities in the certificates store it on the local computer, or in Group Policy for the domain.
Click Continue to this website (not recommended).

STEP-4: CONFIGURE SSL SETTINGS

Configure SSL settings if you want your site to require SSL, or to interact in a specific way with client certificates. Click the site node in the tree view to go back to the site's home page. Double-click the SSL Settings feature in the middle pane.

For more please visit:
http://www.iis.net/learn/manage/configuring-security/how-to-set-up-ssl-on-iis
http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-centralized-ssl-certificate-support-ssl-scalability-and-manageability

Tuesday, September 18, 2012

IIS - Search Engine Optimization


IIS Search Engine Optimization (SEO) Toolkit – is a free toolkit that helps Web developers, hosting providers, and server administrators improve their sites’ relevance in search results by recommending how to make them more search engine-friendly.

The IIS SEO Toolkit can:
· Improve the volume and quality of traffic to Web site from search engines

· Control how search engines access and display Web content

· Inform search engines about locations that are available for indexing

The IIS SEO Toolkit includes three modules that integrate with IIS Manager:

· Site Analysis, which suggests changes that can help improve the volume and quality of traffic to your Web site from search engines;

· Robots Exclusion, which makes it easier to control and restrict the content that search engines index and display; and

· Sitemaps and Site Indexes, which can help inform search engines about locations that are available for indexing.

For more information, visit: http://www.iis.net/extensions/SEOToolkit

Download SEO Toolkit


Monday, September 17, 2012

Reading ASP.NET Trace Information

You can enable ASP.Net tracing either at an Application level or at a page level.With the tracing enabled, you can view the trace output in a trace viewer by navigation to trace.axd from the root of your application.

For example, if the URL of your application is http://localhost:11423/Website, then the trace viewer can be accessed at http://localhost:11423/WebSite1/trace.axd

trace information


You can click on the “View Details” link of a requested page to see further information about that specific page. To write to the trace output, you can add the statement Trace.Write(“This is an action in my page.”) into your code.

The trace request limit and whether the most recent tracing data is kept and shown in the viewer can be specified in the web.config file as follows:

<system.web>
    <trace enabled=”true” mostRecent=”true” pageOutput=”true” requestLimit=”20” />
</system.web>