Sunday 28 September 2014

Redirect aspx website in IIS using C# code.

My Scenario:

  I want to access my domain www.myexample.com/in, when I try to browse my sub domain site  www.myexample.in.

Solution:

    I tried the below  code in my default.aspx page,

<%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="True" Inherits="umbraco.UmbracoDefault" trace="true" validateRequest="false" %>
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.myexample\.in
RewriteRule (.*) http://www.myexample.com/in/$1 [R=301,L]

The direction is works fine.

Saturday 6 September 2014

Your Certificate request was denied. "Denied by Policy Module 0x80070576, Active Directory Certificate Service could not find required Active Directory Information"

Error:

    Your Certificate request was denied

    Your request ID is <>. The disposition message is, "Denied by Policy Module 0x80070576, Active Directory Certificate Services could not find required Active Directory Information".



Scenario:

    When I tried to download the certficate from the Active Directory Certificate Server, I got the above error.

Solution:

    When I checked the time for the both DC and CS server both are different. My CS server was 1 hour ahead from the DC. I adjusted the time and the certificate downloaded fine.

Friday 5 September 2014

Object Cache: The super user account utilized by the cache is not configured. This can increase the number of cache misses, which causes the page requests to consume unnecessary system resources in SHAREPOINT server

Error :

Object Cache: The super user account utilized by the cache is not configured. This can increase the number of cache misses, which causes the page requests to consume unnecessary system resources.
To configure the account use the following command 'stsadm -o setproperty -propertyname portalsuperuseraccount -propertyvalue account -url webappurl'. The account should be any account that has Full Control access to the SharePoint databases but is not an application pool account.
 Additional Data:
 Current default super user account: [MachineName]\system SharePoint 2010 is hosted on this machine.


Scenario :

The IIS APPPool account does not have access permission for the DB/tables and display the result.(in my scenario, SQL Server (SSRS) Reports not accessible).

Solution :

I gave DB_Owner permission for the user APPPool account to the DB.