Pages

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

Thursday, 28 March 2013

Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The file '/Account/Site.master' does not exist.

 

Server Error in '/Account' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The file '/Account/Site.master' does not exist.

Source Error:

Line 1:  <%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"Line 2:      CodeBehind="Register.aspx.cs" Inherits="Tranzhop.Account.Register" %>
Line 3:  

Source File: /account/register.aspx    Line: 1


Solution: However, this issue turned out to be an IIS7 issue. The error message I described arose out of the distinction made in IIS7 between a "virtual directory" and an "application" (I don't know if such a distinction existed in IIS6). To fix this error, I opened IIS7, right-clicked on the virtual directory folder for this site, and selected "Convert to Application." I then refreshed the browser, and the error went away.

Wednesday, 6 February 2013

Create Virtual Directory Under an Existing IIS Site (IIS 6.0)

If they choose to do so, system administrators can set up SmarterMail as a virtual directory under an existing IIS site. NOTE: This is not recommended.  When using a virtual directory ActiveSync, Exchange Web Service and other syncing technology will not work under a virtual directory.  
Running SmarterMail as a Virtual Directory in IIS 6.0
To run SmarterMail as a virtual directory in IIS 6.0, you will need to disable the SmarterMail Web server; add SmarterMail to IIS; verify the IIS settings; update DNS; and test the site. Additional details regarding these steps are below.

Disable the SmarterMail Web Server
These steps will stop and disable the Web server included with SmarterMail. They will also have the side-effect of disabling the shortcut to SmarterMail on your desktop until you update it with the new URL for SmarterMail.
  1. Click on Start --> All Programs --> SmarterMail
  2. Click Web Server Config.
  3. Click Stop.
  4. Change the Startup Mode to Disabled and click Apply.
  5. Click Close.
Add SmarterMail to an IIS Site
Follow these steps to add SmarterMail to an IIS site:
  1. Click on Start --> Control Panel --> Administrative Tools -- >Internet Information Services (IIS) Manager.
  2. Open up the Web Sites tree and locate the site under which you want to place SmarterMail.
  3. Right-click on the web site and choose New --> Virtual Directory.
  4. When asked for an Alias, enter SmarterMail, or another name. This will be used in the URL to get to webmail, as in http://www.example.com/smartermail.
  5. For the physical path, browse to the SmarterMail\MRS folder. The default location is C:\Program Files\SmarterTools\SmarterMail\MRS.
  6. When asked what permissions to grant, choose only Read and Run Scripts.
  7. Finish the Wizard.
Verify IIS Settings
Follow these steps to verify the IIS settings:
  1. If you are using Windows 2003, verify that ASP .NET v4.0.30319 Web Service Extension is set to Allowed in IIS. If you do not see ASP .NET under Web Service Extensions, ensure that ASP .NET is enabled in the Application Server. You can do this by going to: Control Panel --> Add/Remove Programs --> Windows Components--> Application Server --> Details.
  2. Ensure that the default document for the site is Default.aspx (under the Documents tab).
  3. Ensure ASP.NET version 4.0.30319 is selected under the ASP.NET tab.
Update DNS
If any domains are already set up with SmarterMail, make sure to update their webmail DNS records to point to the new IP address.
Test the site
Open your browser and type in the URL of the virtual directory (ex. http://www.example.com/virtual directory).

Tuesday, 22 January 2013

Create New Application Pool in iis 6.0

To create a new application pool
  1. In IIS Manager, double-click the local computer, right-click Application Pools, point to New, and then click Application Pool.
  2. In the Application pool ID box, type the name of the new application pool.
  3. Under Application pool settings, click either Use default settings for new application pool or Use existing application pool as template.
  4. If you selected Use existing application pool as template, from the Application pool name list box, click the application pool to be used as a template.
  5. Click OK.

Monday, 7 January 2013

Setting up a URL Redirect through IIS 6.0

How to set up a URL Redirect for your domain in IIS 6.0
Setting up a redirect for your domain through Internet Information Services (IIS) can quickly accomplished in a few simple steps.

Navigate to Start -> Administrative Tools -> Internet Information Services (IIS) Manager.


Right-click the plus sign next to the Computer Name, then the plus sign next to Web Sites. Locate the site you would like to set the redirect for, right click on it, and choose Properties.


Once the Properties window is open, click on the Home Directory tab.


By default, the domain resource will be set to A directory located on this computer. Click the radio button next to A redirection to a URL.


You should now see the field change to include an ‘http://’. Type in the URL you would like the domain to redirect to. For the purposes of this article, we will use www.testdomain.com. Once entered, click OK.


Your domain is now set for a URL redirect.