MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

active directory intregation configuration   (Mono Support )

Viewed 117931 time(s), 24 post(s) 1/2/2014 11:17:13 AMby neeraj
neeraj

neeraj

1/2/2014 11:17:13 AM
when I am doing the changes in web,config for MonoX Active Directory integration.

I follow allthe step that is guided by denis comments.

but in the place of rolemember provider I am getting this error 


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unable to query Active Directory.

Source Error:


Line 464: password="pwd"
Line 465: /> -->
Line 466: <add applicationName="MonoX" name="ActiveDirectoryRoleProvider" type="MonoSoftware.MonoX.ActiveDirectoryRoleProvider" connectionStringName="ADConnectionString"
Line 467: groupMode="Additive" groupsToUse="" groupsToIgnore="" usersToIgnore="" sqlConnectionStringName="" cacheTime="1800"
Line 468: domainName="leightonint" userName="intranet" password="intranet" />

Source File: C:\inetpub\wwwroot\MonoX\web.config Line: 466 
This content has not been rated yet. 
110 Reputation 17 Total posts
neeraj

neeraj

1/2/2014 11:17:41 AM
when I am doing the changes in web,config for MonoX Active Directory integration.

I follow allthe step that is guided by denis comments.

but in the place of rolemember provider I am getting this error 


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Unable to query Active Directory.

Source Error: 


Line 464: password="pwd"
Line 465: /> -->
Line 466: <add applicationName="MonoX" name="ActiveDirectoryRoleProvider" type="MonoSoftware.MonoX.ActiveDirectoryRoleProvider" connectionStringName="ADConnectionString"
Line 467: groupMode="Additive" groupsToUse="" groupsToIgnore="" usersToIgnore="" sqlConnectionStringName="" cacheTime="1800" 
Line 468: domainName="leightonint" userName="intranet" password="intranet" /> 

Source File: C:\inetpub\wwwroot\MonoX\web.config Line: 466 
This content has not been rated yet. 
110 Reputation 17 Total posts
khorvat

khorvat

1/2/2014 11:34:26 AM
Did you try to check if your connection string "ADConnectionString" is correctly set up ?
This content has not been rated yet. 
15993 Reputation 2214 Total posts
denis

denis

1/2/2014 11:56:00 AM
Could you please provide a full copy of your web.config? It appears that either there is an error in it, or your AD server cannot be reached by the web server. More details can be found here.
This content has not been rated yet. 
7207 Reputation 956 Total posts
neeraj

neeraj

1/2/2014 12:08:04 PM
Yes Denis, i am pasting the web.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="MonoSoftware.Web.WAO">
<section name="ViewState" type="MonoSoftware.Web.WAO.ViewState.Configuration.ViewStateConfiguration, MonoSoftware.Web.WAO" requirePermission="false" />
<section name="HttpCompress" type="MonoSoftware.Web.WAO.HttpCompress.Configuration.HttpCompressConfiguration, MonoSoftware.Web.WAO" requirePermission="false" />
</sectionGroup>
<sectionGroup name="MonoSoftware.Web">
<section name="SearchEngine" type="MonoSoftware.MonoX.SearchEngine.SearchEngineConfigurationHandler, MonoX" requirePermission="false" />
<section name="RssStorage" type="MonoSoftware.Web.Configuration.RssStorageConfiguration, MonoX" requirePermission="false" />      
      <section name="AntiSpam" type="MonoSoftware.Web.AntiSpam.AntiSpamConfigurationSection, MonoSoftware.Web" requirePermission="false" />
      <section name="Cache" type="MonoSoftware.Web.Caching.CacheConfigurationSection, MonoSoftware.Web" requirePermission="false" />
      <section name="FileContent" type="MonoSoftware.MonoX.FileSystem.FileContentConfigurationSection, MonoX" requirePermission="false" />
      <section name="LocalizationHandler" type="MonoSoftware.MonoX.Localization.LocalizationHandlerConfigurationSection, MonoX" requirePermission="false" />
      <section name="ResourceProviderModel" type="MonoSoftware.Web.ResourceProviderModel.Configuration.ResourceProviderModelSection, MonoSoftware.Web.ResourceProviderModel" requirePermission="false" />
      <section name="UrlRewriter" type="MonoSoftware.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, MonoSoftware.UrlRewriter" requirePermission="false" />
    </sectionGroup>
    <section name="ActiveDirectoryConfiguration" type="MonoSoftware.Web.Security.ActiveDirectoryConfigurationSection, MonoSoftware.Web" requirePermission="false" />
<section name="openSocial" type="OpenSocial.Configuration.OpenSocialConfiguration, OpenSocial" requirePermission="false" />
<section name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection" requirePermission="false" allowLocation="true" />
    <section name="SocialAuthConfiguration" type="Brickred.SocialAuth.NET.Core.SocialAuthConfiguration, SocialAuth-net, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null" requirePermission="false" allowDefinition="Everywhere" allowLocation="true" />
</configSections>
  <ActiveDirectoryConfiguration server="inboma1pdc01.leightonint.internal" username="shashank.admin" password="Sept_2013" />
  <SocialAuthConfiguration>
    <Providers>      
      <!--DEFAULT-->
      <add WrapperName="FacebookWrapper" ConsumerKey="475920645775866" ConsumerSecret="fb075f96f6307e42aa554d2966cac250" AdditionalScopes="user_photos,read_stream,publish_stream" />
      <add WrapperName="GoogleWrapper" ConsumerKey="monox.mono-software.com" ConsumerSecret="jFydTTWRProaKvmFUnjf_cgF" AdditionalScopes="https://www.googleapis.com/auth/userinfo.profile" />
      <add WrapperName="TwitterWrapper" ConsumerKey="D1tIt0m6Yq5CWEPcbqUf5A" ConsumerSecret="2KaJr9EqDHSobHSJCwSa3WqTJevcf0DinOaJn5THY" />
      <add WrapperName="LinkedInWrapper" ConsumerKey="418elvfuw51i" ConsumerSecret="okkdbhUIom9dCnZ1" AdditionalScopes="r_fullprofile,r_emailaddress" />
    </Providers>
    <Allow Files="GetToken.aspx|Login.aspx" />
    <IconFolder Path="/App_Themes/Default/Sn/" />
    <Authentication Enabled="false" LoginUrl="Login.aspx" DefaultUrl="Login.aspx" />
  </SocialAuthConfiguration>
<dotNetOpenAuth>
<reporting enabled="false" />    
</dotNetOpenAuth>
  <!--Note: In IIS 6, Css, js and other static content won't be compressed cause they aren't parsed by aspnet_isapi.dll, to enable compression configure it in the IIS Application configuration-->
<!--Note: customProperties are Case sensitive-->
<MonoSoftware.Web.WAO>
<ViewState turnedOn="true" defaultProvider="CompressionProvider">
<providers>
<clear />
<add workingFolder="" sqlConnectionString="Data Source=;uid=;pwd=;database=;Connect Timeout=1500;" name="SqlProvider" type="MonoSoftware.Web.WAO.ViewState.Providers.SqlProvider, MonoSoftware.Web.WAO" customProperties="RecycleTime=60;ViewStateTimeout=480;" />
<add workingFolder="" sqlConnectionString="" name="CompressionProvider" type="MonoSoftware.Web.WAO.ViewState.Providers.CompressionProvider, MonoSoftware.Web.WAO" customProperties="" />
<add workingFolder="" sqlConnectionString="" name="CacheProvider" type="MonoSoftware.Web.WAO.ViewState.Providers.CacheProvider, MonoSoftware.Web.WAO" customProperties="ViewStateTimeout=120;" />
<add workingFolder="/MonoX/ApplicationData/Cache" sqlConnectionString="" name="DiskProvider" type="MonoSoftware.Web.WAO.ViewState.Providers.DiskProvider, MonoSoftware.Web.WAO" customProperties="RecycleTime=60;ViewStateTimeout=480;" />
</providers>
</ViewState>
    <HttpCompress turnedOn="true" defaultProvider="Deflate" useCaching="true">
<providers>
<clear />
<!--compressionLevel="high|normal|low|none"-->
<!--Note: If you use None as compression level you will turn off the http compressions-->
<add name="Deflate" type="MonoSoftware.Web.WAO.HttpCompress.Providers.DeflateProvider, MonoSoftware.Web.WAO" customProperties="CompressionLevel=High;" />
<add name="GZip" type="MonoSoftware.Web.WAO.HttpCompress.Providers.GZipProvider, MonoSoftware.Web.WAO" customProperties="CompressionLevel=High;" />
</providers>
<ExcludedMimeTypes>
<clear />
<add name="png" type="image/png" />
<add name="jpeg" type="image/jpeg" />
<add name="gif" type="image/gif" />
<add name="zip" type="application/zip" />
<add name="x-zip-compressed" type="application/x-zip-compressed" />
<add name="x-gzip-compressed" type="application/x-gzip-compressed" />
<add name="x-compressed" type="application/x-compressed" />
<add name="octet-stream" type="application/octet-stream" />
<add name="pdf" type="application/pdf" />
                <add name="mp3" type="audio/mpeg" />
                <add name="mp4" type="video/mp4" />
                <add name="ogv" type="video/ogg" />
                <add name="webm" type="video/webm" />
                <add name="xls" type="application/vnd.ms-excel" />
                <add name="txt" type="text/plain" />
                <add name="doc" type="application/vnd.ms-word" />
                <add name="doc0" type="application/msword" />
                <add name="doc1" type="application/xhtml+xml" />
                <add name="doc2" type="application/xml" />
                <add name="woff" type="application/x-font-woff" />
                <add name="eot" type="application/x-font-eot" />
                <add name="svg" type="application/x-font-svg" />
                <add name="ttf" type="application/x-font-ttf" />
</ExcludedMimeTypes>
<ExcludedPaths>
<clear />
<!--Example-->
<!--<add name="WebResource" path="WebResource.axd"/>-->
        <!--<add name="SEOPath" path="/blog/posts/MonoX/"/>-->
        <!--<add name="SEOPath" path="/blog/posts/MonoX/*"/>-->        
      </ExcludedPaths>
</HttpCompress>
</MonoSoftware.Web.WAO>
<MonoSoftware.Web>
    <ResourceProviderModel defaultProvider="ResourceManager">
      <providers>
        <clear />
        <add name="ResourceManager" type="System.Resources.ResourceManager, Mscorlib" customProperties="" />
        <add name="DBResourceManager" type="MonoSoftware.Web.ResourceProviderModel.Providers.DBResourceManager, MonoSoftware.Web.ResourceProviderModel" customProperties="" />
      </providers>
    </ResourceProviderModel>
<SearchEngine>
<providers>
<add name="PagesSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.PagesSearchProvider, MonoX" PagesDescriptionContentLength="255" BoldSearchPhrases="true" FullTextSearch="false" MaxNoOfResults="100" />
                <add name="NewsSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.NewsSearchProvider, MonoX" NewsReadPagePath="/MonoX/Pages/NewsDetails.aspx" NewsContentLength="255" BoldSearchPhrases="true" MaxNoOfResults="100" />
<add name="BlogSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.BlogSearchProvider, MonoX" BlogContentLength="255" BoldSearchPhrases="true" FullTextSearch="false" MaxNoOfResults="100" />
                <add name="GroupSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.GroupSearchProvider, MonoX" GroupDescriptionLength="255" BoldSearchPhrases="true" FullTextSearch="false" MaxNoOfResults="100" />
        <add name="UserProfileSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.UserProfileSearchProvider, MonoX" UserDescriptionLength="255" BoldSearchPhrases="true" FullTextSearch="false" MaxNoOfResults="100" />
        <add name="DiscussionSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.DiscussionSearchProvider, MonoX" DiscussionDescriptionLength="255" BoldSearchPhrases="true" FullTextSearch="false" MaxNoOfResults="100" />
        <add name="PhotoGallerySearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.PhotoGallerySearchProvider, MonoX" PhotoGalleryPagePath="/MonoX/Pages/SocialNetworking/PhotoGallery.aspx" PhotoGalleryDescriptionLength="255" BoldSearchPhrases="true" FullTextSearch="false" MaxNoOfResults="100" />
        <add name="CalendarEventSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.CalendarEventSearchProvider, MonoX" BoldSearchPhrases="true" CalendarEventPreviewPagePath="/MonoX/Pages/SocialNetworking/EventCalendar.aspx" MaxNoOfResults="100" />
        <!--<add name="LuceneFileSystemSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.LuceneFileSystemSearchProvider, MonoX" IndexingEngineInterval="60" IndexingEngineIndexFolder="/MonoX/ApplicationData/FullTextIndexes" IndexingEngineDocDirectory="/;" IndexedFileExtensions=".htm;.html;.pdf;.doc;.rtf;.xml;.xls;.csv;.txt;.pps;.ppt;.docx;.xlsx;"/>-->
<!--<add name="IndexingServiceSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.IndexingServiceSearchProvider, MonoX" Catalogs="MonoXSearch" IndexedFileExtensions=".htm;.html;.pdf;.doc;.rtf;.xml;.xls;.csv;.txt;.pps;.ppt;.docx;.xlsx;"/>-->
</providers>
</SearchEngine>
<RssStorage defaultProvider="RequestRssStorageProvider">
<providers>
<add name="DiskRssStorageProvider" type="MonoSoftware.Web.RssEngine.Providers.DiskRssStorageProvider, MonoX" workingFolder="/MonoX/ApplicationData/RssStorage" sqlConnectionString="" timeout="30" />
<add name="CacheRssStorageProvider" type="MonoSoftware.Web.RssEngine.Providers.CacheRssStorageProvider, MonoX" workingFolder="" sqlConnectionString="" timeout="30" />
        <add name="RequestRssStorageProvider" type="MonoSoftware.Web.RssEngine.Providers.RequestRssStorageProvider, MonoX" workingFolder="" sqlConnectionString="" timeout="30" />
      </providers>
</RssStorage>
    <AntiSpam>
      <providers>
        <add name="Akismet" type="MonoSoftware.Web.AntiSpam.AntiSpamProviders.Akismet.AkismetAntiSpamProvider, MonoSoftware.Web" apiKey="" />
        <add name="Defensio" type="MonoSoftware.Web.AntiSpam.AntiSpamProviders.Defensio.DefensioAntiSpamProvider, MonoSoftware.Web" apiKey="" />
      </providers>
    </AntiSpam>
    <!-- defaultWebPartCacheDuration is time in seconds for Web parts / other front-end modules. If greater than zero all cacheable parts will be set to this value, unless they are individually set to some other value. 
    defaultSystemCahceDuration is time for storing system values (user profiles, roles, etc.). If set to zero no caching is performed. 
    -->
    <Cache defaultProvider="AspNetCacheProvider" defaultSystemCacheDuration="3600" defaultWebPartCacheDuration="0">
      <providers>
        <add name="AspNetCacheProvider" type="MonoSoftware.MonoX.Caching.AspNetCacheProvider, MonoX" />
      </providers>
    </Cache>
    <FileContent defaultProvider="MonoXFileSystemContentProvider">
      <providers>
        <add name="MonoXFileSystemContentProvider" type="MonoSoftware.MonoX.FileSystem.MonoXFileSystemContentProvider, MonoX" />
        <!-- {0} in urlFormat parameter will be replaced by the bucket name. Can be used if you want to use custom domain names via DNS alias entries. -->
        <add name="AmazonS3FileSystemContentProvider" type="MonoSoftware.MonoX.FileSystem.AmazonS3FileSystemContentProvider, MonoX" bucketLocation="us" accessKeyId="" secretAccessKey="" urlFormat="{0}.s3.amazonaws.com" />
      </providers>
    </FileContent>
    <!-- LocalizationHandler is used to support custom URL rewriting for localization scenarios. By default, MonoX localized URLs have a string similar to "/lng/en-US" embedded in it and MonoX extracts the culture name from such strings. However, the end user can choose the custom rewriting scheme, in case of which the the InitializeCulture in the BasePage has to be overriden to set Thread.CurrentCulture and CurrentUICulture to the desired value, and then the ILocalizationUrlRewriter can be implemented to reflect the custom rewriting rules. -->
    <LocalizationHandler defaultProvider="MonoXLocalizationHandler">
      <providers>
        <add name="MonoXLocalizationHandler" type="MonoSoftware.MonoX.Localization.LocalizationHandler, MonoX" />
      </providers>
    </LocalizationHandler>
 <UrlRewriter>
      <default-documents>
        <document>Default.aspx</document>
      </default-documents>
      <register logger="MonoSoftware.UrlRewriter.Logging.DebugLogger,&#xA;MonoSoftware.UrlRewriter" />
      <if url="^(.*)/lng/(.*)/(.*).aspx(\?(.+))?$" rewrite="$1/$3.aspx?lng=$2&amp;$5" />
      <if url="^(.*)/lng/(.*)/(.*).aspx$" rewrite="$1/$3.aspx?lng=$2" />
      <if url="^(.*)/lng/(.*)/(.*).ashx(\?(.+))?$" rewrite="$1/$3.ashx?lng=$2&amp;$5" />
      <if url="^(.*)/lng/(.*)/(.*).ashx$" rewrite="$1/$3.ashx?lng=$2" />
      <if url="^(.*)/lng/(.*)/$" rewrite="$1/?lng=$2" />
      <if url="^(.*)/lng/(.*)/(\?(.+))?$" rewrite="$1/?lng=$2&amp;$4" />      

      <!--Obsolete: Used for backward compatibility only -->
      <if url="^(.*)/language/(.*)/(.*).aspx(\?(.+))?$" rewrite="$1/$3.aspx?lng=$2&amp;$5" />
      <if url="^(.*)/language/(.*)/(.*).aspx$" rewrite="$1/$3.aspx?lng=$2" />
      <if url="^(.*)/language/(.*)/(.*).ashx(\?(.+))?$" rewrite="$1/$3.ashx?lng=$2&amp;$5" />
      <if url="^(.*)/language/(.*)/(.*).ashx$" rewrite="$1/$3.ashx?lng=$2" />
      <if url="^(.*)/language/(.*)/(\?(.+))?$" rewrite="$1/?lng=$2&amp;$4" />

      <!-- dynamic blog post rules, can be used regardless of the actual name of the page that holds blog parts -->
      <rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogCommentsPageNo/(.*)/BlogFilesPageNo/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;BlogCommentsPageNo=$6&amp;BlogFilesPageNo=$7&amp;$9" name="BlogPostCommentsFiles" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogFilesPageNo/(.*)/BlogCommentsPageNo/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;BlogFilesPageNo=$6&amp;BlogCommentsPageNo=$7&amp;$9" name="BlogPostFilesComments" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogFilesPageNo/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;BlogFilesPageNo=$6&amp;$8" name="BlogPostFiles" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogCommentsPageNo/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;BlogCommentsPageNo=$6&amp;$8" name="BlogPostComments" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;$7" name="BlogPost" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/posts/(.*)/BlogPostPage/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostPage=$4&amp;$6" name="BlogPostsPaged" defaultPage="/Blog.aspx" urlPattern="/{PageName}/posts/{Slug}/BlogPostPage/{PageNo}/" />
      <rewrite url="^(.*)/(.*)/posts/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;$5" name="BlogPosts" defaultPage="/Blog.aspx" urlPattern="/{PageName}/posts/{Slug}/" />
      <rewrite url="^(.*)/(.*)/search/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;SearchAction=$4&amp;SearchValue=$5&amp;$7" name="BlogSearch" defaultPage="/Blog.aspx" urlPattern="/{PageName}/search/{Slug}/{SearchAction}/{SearchValue}/" />
      <rewrite url="^(.*)/(.*)/blog-tag/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;SearchAction=tag&amp;SearchValue=$4&amp;$6" name="BlogTag" defaultPage="/Blog.aspx" urlPattern="/{PageName}/blog-tag/{Slug}/{Tag}/" />
      <rewrite url="^(.*)/(.*)/settings/(.*)/(\?(.+))?$" to="$1/$2.aspx?ShowBlogSettings=true&amp;BlogSlug=$3&amp;$5" name="BlogSettings" defaultPage="/Blog.aspx" urlPattern="/{PageName}/settings/{Slug}/" />
      <rewrite url="^(.*)/(.*)/comments/(.*)/BlogCommentsPageNo/(.*)/(\?(.+))?$" to="$1/$2.aspx?ShowBlogCommentsAdmin=true&amp;BlogSlug=$3&amp;BlogCommentsPageNo=$4&amp;$6" name="BlogCommentsAdminComments" defaultPage="/Blog.aspx" urlPattern="/{PageName}/comments/{Slug}/" />
      <rewrite url="^(.*)/(.*)/comments/(.*)/(\?(.+))?$" to="$1/$2.aspx?ShowBlogCommentsAdmin=true&amp;BlogSlug=$3&amp;$5" name="BlogCommentsAdmin" defaultPage="/Blog.aspx" urlPattern="/{PageName}/comments/{Slug}/" />
      <rewrite url="^(.*)/(.*)/edit/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;BlogEditMode=true&amp;$7" name="BlogPostEdit" defaultPage="/Blog.aspx" urlPattern="/{PageName}/edit/{Blog.Slug}/{IdentityId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/insert/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;BlogInsertMode=true&amp;$5" name="BlogPostInsert" defaultPage="/Blog.aspx" urlPattern="/{PageName}/insert/{Slug}/" />
      <!-- shows all blog posts regardless of the blog they were posted to -->
      <rewrite url="^(.*)/(.*)/posts/(\?(.+))?$" to="$1/$2.aspx$3" name="AllBlogPosts" defaultPage="/Blog.aspx" urlPattern="/{PageName}/posts/{Slug}/" />
      <rewrite url="^(.*)/(.*)/posts/(.*)/wlwmanifest.xml(\?(.+))?$" to="$1/wlwmanifest.xml" name="WlwManifest" urlPattern="/wlwmanifest.xml" />
      <set property="SocialNetworkingFolder" value="/MonoX/Pages/SocialNetworking/" />
      <set property="UserProfileFolder" value="/MonoX/Pages/UserProfile/" />
      <set property="MobileFolder" value="/MonoX/Mobile/" />
      <!-- profile -->
      <rewrite url="^(.*)/mobile/profile/(.*)/(\?(.+))?$" to="$1${MobileFolder}UserProfile.aspx?UserName=$2&amp;$4" name="MobileProfile" urlPattern="/mobile/profile/{UserNameUrlEncoded}/" />
      <rewrite url="^(.*)/profile/(.*)/(\?(.+))?$" to="$1${UserProfileFolder}MyWall.aspx?UserName=$2&amp;$4" name="Profile" urlPattern="/profile/{UserNameUrlEncoded}/" />
      <rewrite url="^(.*)/profile-about/(.*)/(\?(.+))?$" to="$1${UserProfileFolder}AboutMe.aspx?UserName=$2&amp;$4" name="ProfileAbout" urlPattern="/profile-about/{UserNameUrlEncoded}/" />
      <rewrite url="^(.*)/profile-friends/(.*)/(\?(.+))?$" to="$1${UserProfileFolder}MyFriends.aspx?UserName=$2&amp;$4" name="ProfileFriends" urlPattern="/profile-friends/{UserNameUrlEncoded}/" />
      <rewrite url="^(.*)/profile-photos/(.*)/(\?(.+))?$" to="$1${UserProfileFolder}MyPhotos.aspx?UserName=$2&amp;$4" name="ProfilePhotos" urlPattern="/profile-photos/{UserNameUrlEncoded}/" />
      <!-- file view -->
      <rewrite url="^(.*)/fileview/(.*)/(.*)/(\?(.+))?$" to="$1${SocialNetworkingFolder}FileView.aspx?FileId=$2&amp;ReturnPageId=$3&amp;$5" name="FileView" urlPattern="/fileview/{FileId}/{ReturnPageId}/" />
      <rewrite url="^(.*)/fileviewsa/(.*)/(.*)/(\?(.+))?$" to="$1${SocialNetworkingFolder}FileViewStandalone.aspx?FileId=$2&amp;ReturnPageId=$3&amp;$5" name="FileViewStandalone" urlPattern="/fileviewsa/{FileId}/{ReturnPageId}/" />
      <rewrite url="^(.*)/(.*)/filelist-tag/(.*)/(\?(.+))?$" to="$1/$2.aspx?fTag=$3&amp;$5" name="FileListTagFilter" urlPattern="/{PageName}/filelist-tag/{Slug}/" />
      <!-- site search -->
      <rewrite url="^(.*)/search/(.*)/(\?(.+))?$" to="$1/MonoX/Pages/MonoX/SearchResults.aspx?srchq=$2&amp;$4" name="SiteSearch" urlPattern="/search/{Query}/" />
      <!-- dynamic group rules, can be used regardeless of the actual name of the page that holds group parts -->
      <rewrite url="^(.*)/(.*)/GroupView/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?GroupId=$3&amp;$6" name="GroupView" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupView/{ShortId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/GroupEdit/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?GroupId=$3&amp;EditMode=true&amp;$6" name="GroupEdit" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupEdit/{ShortId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/GroupList/(\?(.+))?$" to="$1/$2.aspx$3" name="GroupList" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupList/" />
      <rewrite url="^(.*)/(.*)/GroupInsert/(\?(.+))?$" to="$1/$2.aspx?InsertMode=true&amp;$4" name="GroupInsert" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupInsert/" />
      <rewrite url="^(.*)/(.*)/GroupSearch/(.*)/(\?(.+))?$" to="$1/$2.aspx?SearchValue=$3&amp;$5" name="GroupSearch" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupSearch/{SearchValue}/" />
      <rewrite url="^(.*)/(.*)/GroupSearch/(\?(.+))?$" to="$1/$2.aspx?ShowAllGroups=true&amp;$4" name="GroupSearchShowAll" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupSearch/" />
      <rewrite url="^(.*)/(.*)/GroupCategory/(.*)/(\?(.+))?$" to="$1/$2.aspx?Category=$3&amp;$5" name="GroupCategory" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupCategory/{CategorySlug}/" />
      <!-- social networking general -->
      <rewrite url="^(.*)/RequestConfirmation/(.*)/(.*)/(\?(.+))?$" to="$1/MonoX/Pages/MonoX/Confirmation.aspx?RequestType=$2&amp;RequestId=$3&amp;$5" name="RequestConfirmation" urlPattern="/RequestConfirmation/{RequestType}/{RequestId}/" />
      <!-- Photo Gallery -->
      <rewrite url="^(.*)/(.*)/activeview/(.*)/albumview/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?AlbumId=$4&amp;activeview=$3&amp;$5=$6&amp;$8" name="PhotoListPaged" defaultPage="/MonoX/Pages/SocialNetworking/PhotoGallery.aspx" urlPattern="/{PageName}/{ActiveControlAction}/{ActiveControlValue}/{AlbumView}/{AlbumId}/" />
      <rewrite url="^(.*)/(.*)/activeview/(.*)/albumview/(.*)/(\?(.+))?$" to="$1/$2.aspx?AlbumId=$4&amp;activeview=$3&amp;$6" name="PhotoList" defaultPage="/MonoX/Pages/SocialNetworking/PhotoGallery.aspx" urlPattern="/{PageName}/{ActiveControlAction}/{ActiveControlValue}/{AlbumView}/{AlbumId}/" />          
      <rewrite url="^(.*)/(.*)/activeview/(.*)/photoview/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?FileId=$4&amp;AlbumId=$5&amp;activeview=$3&amp;$7" name="PhotoView" defaultPage="/MonoX/Pages/SocialNetworking/PhotoGallery.aspx" urlPattern="/{PageName}/{ActiveControlAction}/{ActiveControlValue}/{PhotoView}/{PhotoId}/{AlbumId}/" />
 <!-- discussion board -->
      <rewrite url="^(.*)/(.*)/dboard/(.*)/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?boardId=$3&amp;$5=$6&amp;$8" name="DiscussionPaged" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dboard/{BoardId}/{Slug}/" />
 <rewrite url="^(.*)/(.*)/dboard/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?boardId=$3&amp;$6" name="Discussion" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dboard/{BoardId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/dtopic/(.*)/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?topicId=$3&amp;$5=$6&amp;$8" name="DiscussionTopicPaged" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dtopic/{TopicId}/{Slug}/" />
 <rewrite url="^(.*)/(.*)/dtopic/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?topicId=$3&amp;$6" name="DiscussionTopic" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dtopic/{TopicId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/dfilter/(.*)/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?tftype=$3&amp;$5=$6&amp;$8" name="DiscussionTopicFilterPaged" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dfilter/{FilterType}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/dfilter/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?tftype=$3&amp;$6" name="DiscussionTopicFilter" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dfilter/{FilterType}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/dfilter-tag/(.*)/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?tftype=$3&amp;dbtTag=$4&amp;$5=$6&amp;$8" name="DiscussionTopicTagFilterPaged" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dfilter-tag/{FilterType}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/dfilter-tag/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?tftype=$3&amp;dbtTag=$4&amp;$6" name="DiscussionTopicTagFilter" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dfilter-tag/{FilterType}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/dmessage/(.*)/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?dmsgId=$3&amp;dmsgMode=$4&amp;$5=$6&amp;$8" name="DiscussionEditMessagePaged" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dmessage/{MessageId}/{Mode}/" />
 <rewrite url="^(.*)/(.*)/dmessage/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?dmsgId=$3&amp;dmsgMode=$4&amp;$6" name="DiscussionEditMessage" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dmessage/{MessageId}/{Mode}/" />
      <!-- dynamic content page -->
      <rewrite url="^(.*)/ContentPage/(.*)/(\?(.+))?$" to="$1/MonoX/Pages/Content.aspx?hdci=$2&amp;$4" name="ContentPage" urlPattern="/ContentPage/{ContentId}/" />
      <!-- mobile dynamic content page -->
      <rewrite url="^(.*)/Mobile/Content/(.*)/(\?(.+))?$" to="$1/MonoX/Mobile/Content.aspx?hdci=$2&amp;$4" name="MobileContentPage" urlPattern="/Mobile/Content/{ContentId}/" />
      <!-- do not remove the last rule - supports for default page if all rules above have failed -->      
      <if url="^(.*)/\?lng=(.*)(\?(.+))?$" rewrite="$1/Default.aspx?lng=$2&amp;$4" />
      <if url="^(.*)/\?lng=(.*)/?$" rewrite="$1/Default.aspx?lng=$2" />
      <!--Obsolete: Used for backward compatibility only -->
      <if url="^(.*)/\?language=(.*)(\?(.+))?$" rewrite="$1/Default.aspx?lng=$2&amp;$4" />
    </UrlRewriter>
  </MonoSoftware.Web>
  <appSettings>
    <!-- roles  --> 
    <add key="AdministratorRoles" value="Administrators" />
    <add key="NewsPublisherRoleName" value="Publishers" />
    <add key="AdManagerRoles" value="AdManager,Administrators" />
    <add key="BlogAdministratorRoles" value="Administrators,Publishers" />
 <add key="CalendarAdministratorRoles" value="Administrators,Publishers" />
    <add key="DiscussionAdministratorRoles" value="Administrators,Publishers" />
    <add key="PhotoGalleryAdministratorRoles" value="Administrators,Publishers" />
    <add key="NewsEditorRoles" value="NewsEditors" />
    <add key="ShowAjaxPanelForRoles" value="Publishers" />
    <!-- User is added to these roles when he registers on the site -->
    <add key="DefaultUserRoles" value="Users" />
    <!-- database type  -->
    <add key="DbType" value="Sql Server" />
    <!-- navigation extensions to show in the file browser and similar utilities  -->
    <add key="NavigationExtensions" value=".aspx;.htm;.html" />
    <!-- system folders to hide in file browser and similar utilites  -->
    <add key="HideFoldersThatBeginWith" value="App_Browsers,App_Code,App_GlobalResources,App_LocalResources,classes,controls,.svn,_svn,bin,RssStorage,Cache,aspnet_client,obj,properties" />
    <!-- virtual localization subfolder that will be prepended before the locale-specific part of the path (example: /lng/en-US)  -->
    <add key="localizationSubFolder" value="lng" />
    <!-- wheter to log failed login attempts -->
    <add key="LogFailedLoginAttempts" value="true" />
    <!-- wheter to log important user actions -->
    <add key="LogUserLogins" value="false" />
    <!-- wheter to log important admin actions -->
    <add key="LogAdminActions" value="false" />
    <!-- keyword splitter characters for the news module -->
    <add key="NewsKeyWordsSplitters" value=" ;/;\;" />
    <!-- news working mode (SimpleMode, AdvancedMode) -->
    <add key="NewsWorkingMode" value="SimpleMode" />
    <!-- LLBLGen SQL Server DQE compatibility level -->
    <add key="SqlServerDQECompatibilityLevel" value="2" />
    <!-- path where all Web parts are stored (Comma separated values) -->
    <add key="ModuleGalleryPath" value="/MonoX/ModuleGallery, /MonoX/Samples/WebPartSample, /MonoX/Samples/TwitterFeedModule" />
    <!-- indicates if page titles should be rewritten by the values entered in Page manager. If set to false, values hardcoded in ASPX files are used. -->
    <add key="RewritePageTitles" value="true" />
    <!-- Google Analytics account number used for Google Analytics integration -->
    <add key="GoogleAnalyticsAccountNo" value="" />
    <!-- allowed extensions for file upload -->
    <add key="UploadAllowedFileExtensions" value=".bmp,.gif,.jpg,.jpeg,.tif,.tiff,.png,.rtf,.doc,.docx,.pdf,.txt,.xml,.xls,.xlsx,.ppt,.avi,.flv,.swf,.wmv,.mpeg,.mpg,.mp4,.mp3,.mov,.m4a,.3gp,.rm,.ogv,.webm,.mpe,.zip" />
    <!-- URL of the custom user admin page, since user administration often contains custom fields a custom module can be used instead of the default one -->
    <add key="CustomUserAdminEditPage" value="" />
    <!-- HTML editor toolbar mode -->
    <add key="EditorToolbarMode" value="PageTop" />
    <!-- main upload path for file storage. For Amazon S3 it has the format /bucket/folder, eg value="/monox"   -->
    <add key="MonoXUploadPath" value="/Upload" />
    <!-- folder in which temporary cache files will be held -->
    <add key="MonoXCacheFolder" value="/MonoX/ApplicationData/Cache" />
    <!-- indicates if RSS provider is turned on for appropriate content -->
    <add key="MonoXRssIsTurnedOn" value="true" />
    <!--indicates if content from all modules is aggregated into a single RSS channel -->
    <add key="MonoXRssAllWebPartsAsOneRssResource" value="true" />
    <!-- parameters for HTML editor file manager  -->
    <add key="MonoXMaxImageSize" value="5242880" />
    <add key="MonoXMaxFlashSize" value="204800" />
    <add key="MonoXMaxMediaSize" value="5242880" />
    <add key="MonoXMaxDocumentSize" value="5242880" />
    <add key="MonoXMaxTemplateSize" value="204800" />
    <!-- indicates if an advanced, ajax-compatible Web part manager should be used instead of the default one that works via postbacks -->
    <add key="AjaxedWebPartManager" value="true" />
    <!-- indicates if document backups are performed on each save in HTML editor -->
    <add key="SaveDocumentBackups" value="false" />
    <!-- number of documents to hold in the backup history -->
    <add key="NumberOfBackupItems" value="5" />
    <!-- indicates if Web part chrome is shown for non-admins -->
    <add key="ShowChromeForNonAdmins" value="false" />
    <!-- indicates if close verb is to be displayed in the Web part chrome menu -->
    <add key="AllowCloseVerb" value="false" />
    <!-- stop words for keyword generation -->
    <add key="StopWords" value="the,and,that,you,this,for,but,with,are,have,was,out,not" />
    <!-- indicates if META keywords are generated automatically from the page text -->
    <add key="AutogenerateMetaKeywords" value="false" />
    <!-- maximum number of META keywords -->
    <add key="MaximumNumberOfKeywords" value="100" />
    <!-- maximum number of threads for multithreaded operations -->
    <add key="MaximumNumberOfThreads" value="20" />
    <!-- indicates if HTML editor interface is shown in page design mode only to allow for better WYSIWZG experience -->
    <add key="ShowHtmlEditorsInDesignModeOnly" value="true" />
    <!-- localization SQL server connection key if DB provider is used -->
    <add key="LocalizationConnectionStringKey" value="LocalSqlServer" />
    <!-- URL of the ascx control that can be injected in the main page admin; it cab be used for all custom tasks -->
    <add key="CustomAdminTasksControl" value="" />
    <!-- inicates if Web part zone titles are to be shown -->
    <add key="ShowWebPartZoneTitles" value="false" />
    <!-- Blog-specific configuration properties -->
    <add key="ShowBlogCategories" value="true" />
    <!-- indicates if blog roles are to be shown -->
    <add key="ShowBlogRoles" value="true" />
    <!-- indicates if gravatars are shown -->
    <add key="ShowBlogGravatars" value="false" />
    <!-- Available values: identicon, monsterid, wavatar, full URL-encoded http address or virtual path of an image that should be served as a default image if there is no image for a particular address: http%3A%2F%2Fexample.com%2Fimages%2Fexample.jpg -->
    <add key="GravatarType" value="/App_Themes/Common/img/avatar_blank.jpg" />
    <!--
    <add key="GravatarType" value="wavatar" />
    -->
    <!-- indicates if avatars are shown -->
    <add key="ShowBlogAvatars" value="true" />
    <!-- lists blog ping services -->
    <add key="PingServices" value="http://rpc.pingomatic.com, http://blogsearch.google.com/ping/RPC2, http://www.blogsnow.com/ping" />
    <!-- social networking mode: Friend or Group-based. In group mode the user can invite and message only the users that are members of the same groups. -->
    <add key="SocialNetworkingMode" value="Friend" />
    <!-- one way (twitter) or two way (facebook) relationship mode -->
    <add key="SocialNetworkingRelationshipMode" value="TwoWay" />
    <!-- Page title prefix or suffix, used with all page titles -->
    <add key="PageTitlePrefix" value="" />
    <add key="PageTitleSuffix" value="" />
    <!-- indicates if the MonoX installation has been performed; if set to false all requests are redirected to the main installation page. ALWAYS set to true in the production environment. -->
    <add key="InstallationDone" value="false" />
    <!-- Used with a "Tell a friend" control. Available built-in modules that use it: News,Blog,Page,PhotoGallery,Discussion -->
    <add key="EnableContentSharingFor" value="Blog, PhotoGallery, Discussion, News" />
    <!-- Tell a friend service account -->
    <add key="TellAFriendAccount" value="" />
    <!-- name of the favicon if it is to be used on the portal -->
    <add key="FavIcon" value="/favicon.ico" />
    <!-- jQuery reference path. Change it to use other jQuery versions. Consider using CDNs - for example, http://ajax.microsoft.com/ajax/jQuery/jquery-1.6.2.min.js -->
    <add key="jQueryReferencePath" value="/MonoX/Scripts/jquery-1.9.1.min.js" />
    <!-- jQuery UI reference path. Change it to use other jQuery versions. Consider using CDNs. -->
    <add key="jQueryUIReferencePath" value="/MonoX/Scripts/jquery-ui-1.10.2.custom.min.js" />
    <!-- jQuery UI CSS reference path. Change it to use other jQuery CSS versions. -->
    <add key="jQueryUICSSReferencePath" value="/MonoX/Scripts/jquery-ui-1.10.2.custom.css" />
    <!-- Temporary upload path, used as an intermediary storage for transferring uploaded files to Amazon S3 and similar services -->
    <add key="TmpUploadPath" value="/Upload/Tmp" />
    <!-- indicates if thumbnails are automatically created and saved for all uploaded files; they are alternatively created on the fly on each request-->
    <add key="StoreThumbnails" value="true" />
    <!-- thumbnail size: Small (72px), Medium (144 px), Large (288 px), or you can add custom size in px e.g. "640" -->
    <add key="ThumbnailSize" value="Small" />
    <!-- indicates if Catalog icon images are shown for Web parts. Appropriate icons has to be present in the /App_Themes/Common/img/CatalogIconImages -->
    <add key="ShowCatalogIconImages" value="false" />
    <!-- mail address used to send various confirmation mail messages from the portal -->
    <add key="MailFromAddress" value="email@yourdomain.com" />
    <!-- application title used for user friendly email titles, signatures, etc. If left empty, host name is used by default -->
    <add key="ApplicationTitle" value="MonoX" />
    <!-- raw, non-rewritten URL of the page that displays blog posts for LiveWriter and similar MetaWeblog-based editing tools -->
    <add key="BlogDisplayUrl" value="/Blog.aspx" />
    <!-- indicates if all files are automatically converted to specified format -->
    <add key="ConvertVideo" value="true" />
    <!-- indicates the video converter type used while automatically converting to specified format. Providers: [MonoSoftware.MonoX.Video.FlvEncoder, MonoX], [MonoSoftware.MonoX.Video.Mp4Encoder, MonoX] -->
    <add key="ConvertVideoProviderType" value="MonoSoftware.MonoX.Video.FlvEncoder, MonoX" />
    <!-- holds a physical path to the video converter executable -->
    <add key="VideoConverterExeLocation" value="" />
    <!-- maximum nuber of items to put in a single SiteMap "file" -->
    <add key="MaxSiteMapItems" value="30000" />
    <!-- flag if SSL is enabled while sending an e-mail portal wide -->
    <add key="EnableSmtpSSL" value="false" />
    <!-- web page url used to show messages within the MonoX CMS -->
    <add key="MessagePageUrl" value="/MonoX/Pages/MonoX/Message.aspx" />
    <!-- enables pretty validators MonoX wide. Note: To correctly implement pretty validator adapter on the custom project you need to add a "ValidatorAdapter" css class to validator or your custom css class. -->
    <add key="EnableValidatorsAdapter" value="true" />
    <!-- enables public user registration -->
    <add key="EnableUserRegistration" value="true" />
    <!-- how long (in days) to keep the content cached in the client's browser. Used by GetImage handler and related parts, cache for standard static content types should also be set in system.webServer section (IIS 7) -->
    <add key="ClientCacheMaxAge" value="30" />
    <!-- indicates if page output cache is enabled in admin mode. Disable to avoid any side effects -->
    <add key="EnablePageOutputCacheInAdminMode" value="false" />
    <!-- indicates if error page should show detailed error message output for non administrator users -->
    <add key="ShowDetailedErrorsForNonAdmin" value="false" />
    <!-- contains the name of the MSMQ queue if it is used for mail sending tasks. A separate application or Windows service is needed to process the queue contents and send mail messages. Name must be in the format .\private$\mailqueue -->
    <add key="MailQueueName" value=".\private$\mailqueue" />
    <!-- Indicates if this is a WebPI Installation -->
    <add key="WebPIInstallation" value="true" />
    <!-- Default redirect URL for mobile clients. If empty, no redirect are performed unless this is set at the page level. -->
    <add key="DefaultMobileRedirectUrl" value="/MonoX/Mobile/Default.aspx" />
    <!-- jQuery reference path for mobile pages and controls. Change it to use other jQuery versions. Note that you can use different versions of jQuery for mobile and desktop versions of your site. -->
    <add key="jQueryMobileBaseReferencePath" value="http://code.jquery.com/jquery-1.9.1.min.js" />
    <!-- jQuery mobile reference path.  -->
    <add key="jQueryMobileReferencePath" value="/MonoX/Scripts/Mobile/jquery.mobile-1.3.1.min.js" />
    <!-- Web part verb render mode - titlebar or menu. -->
    <add key="WebPartVerbRenderMode" value="Titlebar" />
    <!-- Verb button type - link, image, button. -->
    <add key="WebPartTitleBarVerbButtonType" value="Image" />
    <!-- Value for the META viewport key, usually has to be set to at least width=device-width if used with reponsive designs. Leave empty if you don't want to use it at all. -->
    <add key="MetaViewportValue" value="width=device-width" />
    <!-- DOCTYPE declaration for all pages. If empty, defaults to XHTML. Enter like this: &lt;!DOCTYPE html&gt;" -->
    <add key="Doctype" value="&lt;!DOCTYPE html&gt;" />
  </appSettings>
<connectionStrings>
<remove name="LocalSqlServer" />
    
<add name="LocalSqlServer" connectionString="Server=10.82.128.58;Database=MonoX306;uid=MonoXUser306;Pwd=neeraj@123;Connect Timeout=90;" providerName="System.Data.SqlClient" />
    <!--<add name="ADConnectionString" connectionString="LDAP://server.domain" />-->
    <add name="ADConnectionString" connectionString="LDAP://leightonint.internal/" />
    
  </connectionStrings>
<system.web>
    <securityPolicy>
      <trustLevel name="MediumMonoX" policyFile="web_mediumtrust.monox.config" /> 
    </securityPolicy>
    <trust level="Full" legacyCasModel="true" />
    <webParts enableExport="true">
<personalization defaultProvider="SqlBlobPersonalizationProvider">
<providers>
<add connectionStringName="LocalSqlServer" applicationName="MonoX" name="SqlBlobPersonalizationProvider" type="MonoSoftware.MonoX.VersionedPersonalizationProvider" varyByParams="none" varyByCustom="LanguageId" />
</providers>
<authorization>
<allow verbs="enterSharedScope, modifyState" roles="Administrators,Users" />
</authorization>
</personalization>
</webParts>
<membership defaultProvider="ActiveDirectoryMembershipProvider" hashAlgorithmType="SHA1">
      <providers>
<remove name="AspNetSqlMembershipProvider" />
        <add connectionStringName="LocalSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="MonoX" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="AspNetSqlMembershipProvider" type="MonoSoftware.MonoX.MonoXMembershipProvider, MonoX" />
        <!-- <add name="ActiveDirectoryMembershipProvider" type="MonoSoftware.MonoX.ActiveDirectoryMembershipProvider"
        connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName" applicationName="MonoX"
         connectionUsername="username@yourdomain"
         connectionPassword="pwd" /> -->  
        
          
            <add name="ActiveDirectoryMembershipProvider" type="MonoSoftware.MonoX.ActiveDirectoryMembershipProvider" 
                 connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName" applicationName="MonoX" 
                 connectionUsername="shashank.admin" connectionPassword="Sept_2013" />
         
      </providers>
</membership>
<authentication mode="Forms">
<forms name=".MonoX2" slidingExpiration="true" cookieless="UseCookies" protection="All" timeout="129600" loginUrl="/login.aspx" />
</authentication>
    <identity impersonate="false" />
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" culture="en-US" uiCulture="en-US" />
<!--<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" culture="auto:en" uiCulture="auto:en" />                 -->
<!--<globalization requestEncoding="windows-1250" responseEncoding="windows-1250" fileEncoding="windows-1250" culture="hr-HR" uiCulture="hr-HR"/>-->
    <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
<providers>
<remove name="AspNetSqlRoleProvider" />
<add connectionStringName="LocalSqlServer" applicationName="MonoX" name="AspNetSqlRoleProvider" type="MonoSoftware.MonoX.MonoXRoleProvider, MonoX" />
        <!--<add applicationName="MonoX" name="ActiveDirectoryRoleProvider" type="MonoSoftware.MonoX.ActiveDirectoryRoleProvider" connectionStringName="ADConnectionString" 
          groupMode="Additive" 
          groupsToUse=""
          groupsToIgnore=""
          usersToIgnore=""
          sqlConnectionStringName=""
          cacheTime="1800"
          domainName="mono.local"
          userName="username@domain"
          password="pwd"
        /> -->
      </providers>
</roleManager>
    <pages theme="Default" validateRequest="false" enableEventValidation="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
        <controls>
            <add tagPrefix="MonoX" tagName="StyledButton" src="/MonoX/controls/StyledButton.ascx" />            
        </controls>        
    </pages>
<!--
          Set compilation debug="true" to insert debugging
          symbols into the compiled page. Because this
          affects performance, set this value to true only
          during development.
    -->
<!-- batch="false" cause of Nested master page issue ... Case exception on nested Master page -->
    <compilation debug="false" batch="true" defaultLanguage="c#" targetFramework="4.0">
       <assemblies>
          <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add assembly="MonoX.Localization" />
       </assemblies>
       <expressionBuilders>
          <add expressionPrefix="Code" type="MonoSoftware.Web.CodeExpressionBuilder" />
       </expressionBuilders>
    </compilation>
<httpHandlers>
<remove verb="POST,GET" path="MonoSoftware.MonoX.Upload.axd" />
<add verb="POST,GET" path="MonoSoftware.MonoX.Upload.axd" type="MonoSoftware.MonoX.Upload" />
<remove verb="POST,GET" path="MonoSoftware.MonoX.GetImage.axd" />
<add verb="POST,GET" path="MonoSoftware.MonoX.GetImage.axd" type="MonoSoftware.MonoX.GetImage" />
            <add verb="*" path="Thumbnailer.ashx" type="MonoSoftware.MonoX.Thumbnailer, MonoX" />
<!--Note: These Hanlders will optimize css and script content-->
<!--Note: To Enable these handlers you need to set css and js files to be parsed by aspnet_isapi.dll in IIS Application configuration-->
<!--<add verb="*" path="*.css" type="MonoSoftware.Web.WAO.Handlers.CssHandler, MonoSoftware.Web.WAO" validate="false"/>-->
<!--<add verb="*" path="*.js" type="MonoSoftware.Web.WAO.Handlers.ScriptHandler, MonoSoftware.Web.WAO" validate="false"/>-->
            <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
<add verb="*" path="SiteMap.ashx" type="MonoSoftware.MonoX.SiteMap.SiteMap, MonoX" />
            <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false" />
            <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
            <add verb="*" path="CaptchaHandler.ashx" type="MonoSoftware.Web.Controls.Captcha.CaptchaHandler, MonoSoftware.Web" />
            <add verb="*" path="*.sauth" type="Brickred.SocialAuth.NET.Core.CallbackHandler" />
</httpHandlers>
<httpRuntime maxRequestLength="1550000" enableVersionHeader="false" requestValidationMode="2.0" />
<httpModules>
<add type="MonoSoftware.UrlRewriter.RewriterHttpModule, MonoSoftware.UrlRewriter" name="UrlRewriter" />
<add name="CompressionModule" type="MonoSoftware.Web.WAO.HttpCompress.HttpCompressModule, MonoSoftware.Web.WAO" />
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
            <add name="WildCardExtensionFix" type="MonoSoftware.MonoX.WildCardExtensionFix, MonoX" />
<add name="OpenSocialModule" type="MonoSoftware.MonoX.OpenSocial.OpenSocialHttpModule, MonoX" />
            <add name="SocialAuthAuthentication" type="Brickred.SocialAuth.NET.Core.SocialAuthHttpModule" />
        </httpModules>
<!-- Asp.Net compiles the profile to the App_Code.dll which can't be shiped with the MonoX CMS because custom projects needs to have ability of having custom code put in to the Asp.net folder App_Code (which is compile it to the App_Code.dll) -->
    <!--"System.Collections.Specialized.StringCollection" type is added to show that complex types are ignored for now-->
    <profile enabled="true" defaultProvider="AspNetSqlProfileProvider">
      <providers>
        <remove name="AspNetSqlProfileProvider" />
        <add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="MonoX" type="System.Web.Profile.SqlProfileProvider" />
      </providers>
      <properties />
    </profile>
    <!--<profile enabled="true" defaultProvider="AspNetSqlProfileProvider"  >
        <providers>
          <remove name="AspNetSqlProfileProvider"/>
          <add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="MonoX" type="System.Web.Profile.SqlProfileProvider" />
        </providers>
        <properties>
          <add name="GPSLocation" defaultValue="45.562141,18.676414"/>
          <add name="Children" />
          <add name="RecentSearchList"
               type="System.Collections.Specialized.StringCollection"
               serializeAs="Xml"
                /> 
          <add name="Hometown" type="String" serializeAs="String" />
          <add name="IsModerator" type="bool"  />          
          <group name="Bio">
            <add name="Title" type="string" />
            <add name="Description" type="String" />
          </group>
          <group name="Publication">
            <add name="Title" type="string" />
            <add name="Description" type="String" />
            <add name="Date" type="DateTime" />
          </group>
          <add name="ClubJoinedYear" type="int"  />
          <add name="MoneyDonated" type="decimal"  />          
        </properties>
    </profile>-->
    <customErrors mode="On" defaultRedirect="/MonoX/Pages/MonoX/Error.aspx">
<!--<error statusCode="404" redirect="/WebTest/ErrorPages/404.html" />-->
</customErrors>
<trace enabled="false" requestLimit="40" localOnly="false" pageOutput="true" />
<sessionState timeout="30" />
<machineKey validationKey="432F2F845871EE74036D6FA75A7994EE77E2236634DC2C16AE71FC1EC5E482E80E9D0F2ACC281C7EE90BC5427F9FEBB1EE1E1E6B7AD05D2D2FB5FC6EA95843E4" decryptionKey="011D8C69D3102FE12A4AD59D79F6F976706553F1CD9D069A" validation="SHA1" />
</system.web>
<system.web.extensions>
<scripting>
   <scriptResourceHandler enableCompression="true" enableCaching="true" />
</scripting>
</system.web.extensions>
<system.webServer>
    <!-- Applications that require the use of the "+" character in the URL in IIS 7 (for example, for the search box) should leave this setting. This may make your application more vulnerable to malicious URLs so use it with care. -->
    <security>
      <requestFiltering allowDoubleEscaping="true">
        <hiddenSegments>
          <add segment="ApplicationData" />
        </hiddenSegments>
      </requestFiltering>
    </security>
    <validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
      <add name="CompressionModule" type="MonoSoftware.Web.WAO.HttpCompress.HttpCompressModule, MonoSoftware.Web.WAO" />
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add type="MonoSoftware.UrlRewriter.RewriterHttpModule, MonoSoftware.UrlRewriter" name="UrlRewriter" />
      <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />      
      <add name="SocialAuthAuthentication" type="Brickred.SocialAuth.NET.Core.SocialAuthHttpModule" />
      <!-- needed for IIS 7 MVC style routing 
      <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      -->
    </modules>
<handlers>
      <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />
      <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" preCondition="integratedMode" />
      <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
      <add name="SiteMap" verb="*" path="SiteMap.ashx" type="MonoSoftware.MonoX.SiteMap.SiteMap, MonoX" />
      <remove name="MonoSoftware.MonoX.Upload.axd" />
      <add name="MonoSoftware.MonoX.Upload.axd" verb="POST,GET" path="MonoSoftware.MonoX.Upload.axd" type="MonoSoftware.MonoX.Upload" />
      <remove name="MonoSoftware.MonoX.GetImage.axd" />
      <add name="MonoSoftware.MonoX.GetImage.axd" verb="POST,GET" path="MonoSoftware.MonoX.GetImage.axd" type="MonoSoftware.MonoX.GetImage" />
      <add name="MonoSoftware.MonoX.Thumbnailer" verb="*" path="Thumbnailer.ashx" type="MonoSoftware.MonoX.Thumbnailer, MonoX" />
      <add name="CaptchaHandler" verb="*" path="CaptchaHandler.ashx" type="MonoSoftware.Web.Controls.Captcha.CaptchaHandler, MonoSoftware.Web" />
      <add name="socialAuth.NET" verb="*" path="*.sauth" type="Brickred.SocialAuth.NET.Core.CallbackHandler" />
      <!--<add name="MonoSoftware.Web.WAO.Handlers.CssHandler" verb="*" path="*.css" type="MonoSoftware.Web.WAO.Handlers.CssHandler, MonoSoftware.Web.WAO" validate="false"/>-->
      <!--<add name="MonoSoftware.Web.WAO.Handlers.ScriptHandler" verb="*" path="*.js" type="MonoSoftware.Web.WAO.Handlers.ScriptHandler, MonoSoftware.Web.WAO" validate="false"/>-->
    </handlers>
    <httpProtocol>
      <!-- the following are performance optimizations for IIS 7 and higher: remove unneccessary headers, apply client side caching (7 days) for static content and content compression. Remove the compression in case of unespected behavior. -->
      <customHeaders>
        <remove name="X-Powered-By" />
      </customHeaders>
    </httpProtocol>
    <httpErrors existingResponse="PassThrough" />
    <staticContent>
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
    </staticContent>
    <urlCompression doStaticCompression="true" doDynamicCompression="true" />
  </system.webServer>
<system.net>
<mailSettings>
          <smtp deliveryMethod="Network">
            <network host="mail.yourdomain.com" />
          </smtp>
</mailSettings>
        <!--<defaultProxy>
            <proxy
                    usesystemdefault="False"
                    bypassonlocal="True"
                    proxyaddress="http://127.0.0.1:8888"
              />
        </defaultProxy>-->
</system.net>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"></serviceHostingEnvironment>
</system.serviceModel>

<openSocial tokenManager="MonoSoftware.MonoX.BusinessLayer.OAuthTokenManagerBLL, MonoX" authorizationEndpoint="/MonoX/OpenSocial/OAuth.ashx" authenticationPage="/MonoX/OpenSocial/OpenSocialAuthorizationPage.aspx" dataAccessAdapter="MonoSoftware.MonoX.OpenSocial.MonoXOpenSocialDataAccessAdpater, MonoX" />
</configuration>
This content has not been rated yet. 
110 Reputation 17 Total posts
denis

denis

1/3/2014 12:03:16 PM
It appears that you are using different AD server names in ActiveDirectoryConfiguration and ADConnectionString sections. Apart from that, could you please look into your log files (/MonoX/ApplicationData/Logs) to see if there
are any detailed error descriptions related to this error?
This content has not been rated yet. 
7207 Reputation 956 Total posts
neeraj

neeraj

1/3/2014 1:38:53 PM
2014-01-03 18:53:34,426 [24] ERROR MonoX [BaseHttpApplication] - Application Error
System.Configuration.ConfigurationErrorsException: Unable to query Active Directory. (C:\inetpub\MyBlog\web.config line 456) ---> System.Configuration.Provider.ProviderException: Unable to query Active Directory. ---> System.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password.
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_AdsObject()
   at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
   at System.DirectoryServices.DirectorySearcher.FindAll()
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.#Bj(String ConnectionString, String filter, String field)
   --- End of inner exception stack trace ---
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.#Bj(String ConnectionString, String filter, String field)
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.GetAllRoles()
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.#Aj()
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.Initialize(String name, NameValueCollection config)
   at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
   --- End of inner exception stack trace ---
   at System.Web.Security.Roles.Initialize()
   at System.Web.Security.RoleManagerModule.OnEnter(Object source, EventArgs eventArgs)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2014-01-03 18:53:34,737 [20] ERROR MonoX [BaseHttpApplication] - Application Error
System.Configuration.ConfigurationErrorsException: Unable to query Active Directory. (C:\inetpub\MyBlog\web.config line 456) ---> System.Configuration.Provider.ProviderException: Unable to query Active Directory. ---> System.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password.
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_AdsObject()
   at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
   at System.DirectoryServices.DirectorySearcher.FindAll()
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.#Bj(String ConnectionString, String filter, String field)
   --- End of inner exception stack trace ---
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.#Bj(String ConnectionString, String filter, String field)
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.GetAllRoles()
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.#Aj()
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.Initialize(String name, NameValueCollection config)
   at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
   --- End of inner exception stack trace ---
   at System.Web.Security.Roles.Initialize()
   at System.Web.Security.RoleManagerModule.OnEnter(Object source, EventArgs eventArgs)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
This content has not been rated yet. 
110 Reputation 17 Total posts
neeraj

neeraj

1/3/2014 1:44:20 PM
Step following in web.config. ( please  intimate where I a m doing wrong)
1)

<ActiveDirectoryConfiguration server="leightonint.internal" username="neeraj.admin" password="Ganesha@mont27" />
<SocialAuthConfiguration>
<Providers>
2)
<add name="ADConnectionString" connectionString="LDAP://leightonint.internal/CN=Neeraj Admin,OU=IT Admin,OU=Leighton Welspun India,OU=Group_IT,OU=Leighton International,DC=leightonint,DC=internal"/>

3)
<membership defaultProvider="ActiveDirectoryMembershipProvider" hashAlgorithmType="SHA1">
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add connectionStringName="LocalSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="MonoX" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="AspNetSqlMembershipProvider" type="MonoSoftware.MonoX.MonoXMembershipProvider, MonoX" />
<!-- <add name="ActiveDirectoryMembershipProvider" type="MonoSoftware.MonoX.ActiveDirectoryMembershipProvider" connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName" applicationName="MonoX"
connectionUsername="username@yourdomain"
connectionPassword="pwd" /> -->
<add name="ActiveDirectoryMembershipProvider" type="MonoSoftware.MonoX.ActiveDirectoryMembershipProvider"
connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName" applicationName="MonoX"
connectionUsername="username@yourdomain" connectionPassword="pwd" />
</providers>
</membership>
4)

<roleManager enabled="true" defaultProvider="ActiveDirectoryRoleProvider">
<providers>
<remove name="AspNetSqlRoleProvider" />
<add connectionStringName="LocalSqlServer" applicationName="MonoX" name="AspNetSqlRoleProvider" type="MonoSoftware.MonoX.MonoXRoleProvider, MonoX" />
<add applicationName="MonoX" name="ActiveDirectoryRoleProvider" type="MonoSoftware.MonoX.ActiveDirectoryRoleProvider" connectionStringName="ADConnectionString"
groupMode="Additive"
groupsToUse=""
groupsToIgnore=""
usersToIgnore=""
sqlConnectionStringName=""
cacheTime="1800"
domainName="mono.local"
userName="username@domain"
password="pwd"
/>
</providers>
</roleManager>
This content has not been rated yet. 
110 Reputation 17 Total posts
denis

denis

1/3/2014 2:47:14 PM
It looks to me that your are not using the correct username and password and it is not recognized by your AD server - see the detailed error message. As you can see in my blog post, the username in the membership provider section has the format MyUsername@mydomain. You can also try with the format mydomain\myusername in the AdConnectionString setting.
This content has not been rated yet. 
7207 Reputation 956 Total posts
neeraj

neeraj

1/4/2014 10:46:52 AM
Denis ,

If I am using same setting with LDAP tool then it is perfectly fetching the information from AD.
But in case when I am doing same thing from web.config then it is not working.
I am trying from last week. I also follow your instruction but not yet succeed.

sending u log detail , error and webconfig
Log

2014-01-04 15:31:07,088 [20] ERROR MonoX [neeraj.admin] - Error
System.Configuration.Provider.ProviderException: Unable to query Active Directory. ---> System.DirectoryServices.AccountManagement.PrincipalOperationException: While trying to retrieve the authorization groups, an error (5) occurred.
   at System.DirectoryServices.AccountManagement.AuthZSet..ctor(Byte[] userSid, NetCred credentials, ContextOptions contextOptions, String flatUserAuthority, StoreCtx userStoreCtx, Object userCtxBase)
   at System.DirectoryServices.AccountManagement.ADStoreCtx.GetGroupsMemberOfAZ(Principal p)
   at System.DirectoryServices.AccountManagement.UserPrincipal.GetAuthorizationGroupsHelper()
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.GetRolesForUser(String username)
   --- End of inner exception stack trace ---
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.GetRolesForUser(String username)
   at System.Web.Security.RolePrincipal.IsInRole(String role)
   at System.Web.Configuration.AuthorizationRule.IsTheUserInAnyRole(StringCollection roles, IPrincipal principal)
   at System.Web.Configuration.AuthorizationRule.IsUserAllowed(IPrincipal user, String verb)
   at System.Web.Configuration.AuthorizationRuleCollection.IsUserAllowed(IPrincipal user, String verb)
   at System.Web.UI.WebControls.WebParts.PersonalizationProvider.DetermineUserCapabilities(WebPartManager webPartManager)
   at System.Web.UI.WebControls.WebParts.WebPartPersonalization.Load()
   at System.Web.UI.WebControls.WebParts.WebPartPersonalization.LoadInternal()
   at System.Web.UI.WebControls.WebParts.WebPartManager.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2014-01-04 15:31:07,090 [20] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Configuration.Provider.ProviderException: Unable to query Active Directory. ---> System.DirectoryServices.AccountManagement.PrincipalOperationException: While trying to retrieve the authorization groups, an error (5) occurred.
   at System.DirectoryServices.AccountManagement.AuthZSet..ctor(Byte[] userSid, NetCred credentials, ContextOptions contextOptions, String flatUserAuthority, StoreCtx userStoreCtx, Object userCtxBase)
   at System.DirectoryServices.AccountManagement.ADStoreCtx.GetGroupsMemberOfAZ(Principal p)
   at System.DirectoryServices.AccountManagement.UserPrincipal.GetAuthorizationGroupsHelper()
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.GetRolesForUser(String username)
   --- End of inner exception stack trace ---
   at MonoSoftware.MonoX.ActiveDirectoryRoleProvider.GetRolesForUser(String username)
   at System.Web.Security.RolePrincipal.IsInRole(String role)
   at System.Web.Configuration.AuthorizationRule.IsTheUserInAnyRole(StringCollection roles, IPrincipal principal)
   at System.Web.Configuration.AuthorizationRule.IsUserAllowed(IPrincipal user, String verb)
   at System.Web.Configuration.AuthorizationRuleCollection.IsUserAllowed(IPrincipal user, String verb)
   at System.Web.UI.WebControls.WebParts.PersonalizationProvider.DetermineUserCapabilities(WebPartManager webPartManager)
   at System.Web.UI.WebControls.WebParts.WebPartPersonalization.Load()
   at System.Web.UI.WebControls.WebParts.WebPartPersonalization.LoadInternal()
   at System.Web.UI.WebControls.WebParts.WebPartManager.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.monox_pages_socialnetworking_discussion_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)



web config

<?xml version="1.0"
encoding="utf-8"?>

<configuration>

 
<configSections>

    <sectionGroup
name="MonoSoftware.Web.WAO">

      <section
name="ViewState"
type="MonoSoftware.Web.WAO.ViewState.Configuration.ViewStateConfiguration,
MonoSoftware.Web.WAO" requirePermission="false" />

      <section
name="HttpCompress"
type="MonoSoftware.Web.WAO.HttpCompress.Configuration.HttpCompressConfiguration,
MonoSoftware.Web.WAO" requirePermission="false" />

   
</sectionGroup>

    <sectionGroup
name="MonoSoftware.Web">

      <section
name="SearchEngine"
type="MonoSoftware.MonoX.SearchEngine.SearchEngineConfigurationHandler,
MonoX" requirePermission="false" />

      <section
name="RssStorage"
type="MonoSoftware.Web.Configuration.RssStorageConfiguration, MonoX"
requirePermission="false" />

      <section
name="AntiSpam"
type="MonoSoftware.Web.AntiSpam.AntiSpamConfigurationSection,
MonoSoftware.Web" requirePermission="false" />

      <section
name="Cache"
type="MonoSoftware.Web.Caching.CacheConfigurationSection,
MonoSoftware.Web" requirePermission="false" />

      <section
name="FileContent"
type="MonoSoftware.MonoX.FileSystem.FileContentConfigurationSection,
MonoX" requirePermission="false" />

      <section
name="LocalizationHandler"
type="MonoSoftware.MonoX.Localization.LocalizationHandlerConfigurationSection,
MonoX" requirePermission="false" />

      <section
name="ResourceProviderModel" type="MonoSoftware.Web.ResourceProviderModel.Configuration.ResourceProviderModelSection,
MonoSoftware.Web.ResourceProviderModel"
requirePermission="false" />

      <section
name="UrlRewriter"
type="MonoSoftware.UrlRewriter.Configuration.RewriterConfigurationSectionHandler,
MonoSoftware.UrlRewriter" requirePermission="false" />

   
</sectionGroup>

    <section
name="ActiveDirectoryConfiguration"
type="MonoSoftware.Web.Security.ActiveDirectoryConfigurationSection,
MonoSoftware.Web" requirePermission="false" />

    <section name="openSocial"
type="OpenSocial.Configuration.OpenSocialConfiguration, OpenSocial"
requirePermission="false" />

    <section
name="dotNetOpenAuth"
type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection"
requirePermission="false" allowLocation="true" />

    <section
name="SocialAuthConfiguration"
type="Brickred.SocialAuth.NET.Core.SocialAuthConfiguration,
SocialAuth-net, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null"
requirePermission="false" allowDefinition="Everywhere"
allowLocation="true" />

 
</configSections>

 
<ActiveDirectoryConfiguration server="10.82.128.20"
username="neeraj.admin@leightonint.internal"
password="Ganesha@mont27" />

 
<SocialAuthConfiguration>

    <Providers>

     
<!--DEFAULT-->

      <add
WrapperName="FacebookWrapper" ConsumerKey="475920645775866"
ConsumerSecret="fb075f96f6307e42aa554d2966cac250"
AdditionalScopes="user_photos,read_stream,publish_stream" />

      <add
WrapperName="GoogleWrapper"
ConsumerKey="monox.mono-software.com"
ConsumerSecret="jFydTTWRProaKvmFUnjf_cgF"
AdditionalScopes="https://www.googleapis.com/auth/userinfo.profile"
/>

      <add
WrapperName="TwitterWrapper"
ConsumerKey="D1tIt0m6Yq5CWEPcbqUf5A"
ConsumerSecret="2KaJr9EqDHSobHSJCwSa3WqTJevcf0DinOaJn5THY" />

      <add
WrapperName="LinkedInWrapper" ConsumerKey="418elvfuw51i"
ConsumerSecret="okkdbhUIom9dCnZ1"
AdditionalScopes="r_fullprofile,r_emailaddress" />

    </Providers>

    <Allow
Files="GetToken.aspx|Login.aspx" />

    <IconFolder
Path="/App_Themes/Default/Sn/" />

    <Authentication
Enabled="false" LoginUrl="Login.aspx"
DefaultUrl="Login.aspx" />

 
</SocialAuthConfiguration>

 
<dotNetOpenAuth>

    <reporting
enabled="false" />

 
</dotNetOpenAuth>

  <!--Note: In IIS
6, Css, js and other static content won't be compressed cause they aren't
parsed by aspnet_isapi.dll, to enable compression configure it in the IIS
Application configuration-->

  <!--Note:
customProperties are Case sensitive-->

 
<MonoSoftware.Web.WAO>

    <ViewState
turnedOn="true" defaultProvider="CompressionProvider">

     
<providers>

        <clear
/>

        <add
workingFolder="" sqlConnectionString="Data
Source=;uid=;pwd=;database=;Connect Timeout=1500;"
name="SqlProvider"
type="MonoSoftware.Web.WAO.ViewState.Providers.SqlProvider,
MonoSoftware.Web.WAO"
customProperties="RecycleTime=60;ViewStateTimeout=480;" />

        <add
workingFolder="" sqlConnectionString=""
name="CompressionProvider"
type="MonoSoftware.Web.WAO.ViewState.Providers.CompressionProvider,
MonoSoftware.Web.WAO" customProperties="" />

        <add
workingFolder="" sqlConnectionString=""
name="CacheProvider"
type="MonoSoftware.Web.WAO.ViewState.Providers.CacheProvider,
MonoSoftware.Web.WAO" customProperties="ViewStateTimeout=120;"
/>

        <add
workingFolder="/MonoX/ApplicationData/Cache"
sqlConnectionString="" name="DiskProvider"
type="MonoSoftware.Web.WAO.ViewState.Providers.DiskProvider,
MonoSoftware.Web.WAO"
customProperties="RecycleTime=60;ViewStateTimeout=480;" />

     
</providers>

    </ViewState>

    <HttpCompress
turnedOn="true" defaultProvider="Deflate"
useCaching="true">

     
<providers>

        <clear
/>

       
<!--compressionLevel="high|normal|low|none"-->

        <!--Note:
If you use None as compression level you will turn off the http
compressions-->

        <add name="Deflate"
type="MonoSoftware.Web.WAO.HttpCompress.Providers.DeflateProvider,
MonoSoftware.Web.WAO" customProperties="CompressionLevel=High;"
/>

        <add
name="GZip"
type="MonoSoftware.Web.WAO.HttpCompress.Providers.GZipProvider,
MonoSoftware.Web.WAO" customProperties="CompressionLevel=High;"
/>

     
</providers>

     
<ExcludedMimeTypes>

        <clear
/>

        <add
name="png" type="image/png" />

        <add
name="jpeg" type="image/jpeg" />

        <add
name="gif" type="image/gif" />

        <add
name="zip" type="application/zip" />

        <add
name="x-zip-compressed" type="application/x-zip-compressed"
/>

        <add
name="x-gzip-compressed"
type="application/x-gzip-compressed" />

        <add
name="x-compressed" type="application/x-compressed" />

        <add
name="octet-stream" type="application/octet-stream" />

        <add
name="pdf" type="application/pdf" />

        <add
name="mp3" type="audio/mpeg" />

        <add
name="mp4" type="video/mp4" />

        <add
name="ogv" type="video/ogg" />

        <add
name="webm" type="video/webm" />

        <add
name="xls" type="application/vnd.ms-excel" />

        <add
name="txt" type="text/plain" />

        <add
name="doc" type="application/vnd.ms-word" />

        <add
name="doc0" type="application/msword" />

        <add
name="doc1" type="application/xhtml+xml" />

        <add
name="doc2" type="application/xml" />

        <add
name="woff" type="application/x-font-woff" />

        <add
name="eot" type="application/x-font-eot" />

        <add name="svg"
type="application/x-font-svg" />

        <add
name="ttf" type="application/x-font-ttf" />

     
</ExcludedMimeTypes>

     
<ExcludedPaths>

        <clear
/>

       
<!--Example-->

        <!--<add
name="WebResource" path="WebResource.axd"/>-->

        <!--<add
name="SEOPath" path="/blog/posts/MonoX/"/>-->

        <!--<add
name="SEOPath" path="/blog/posts/MonoX/*"/>-->

     
</ExcludedPaths>

   
</HttpCompress>

 
</MonoSoftware.Web.WAO>

 
<MonoSoftware.Web>

   
<ResourceProviderModel defaultProvider="ResourceManager">

     
<providers>

        <clear
/>

        <add
name="ResourceManager" type="System.Resources.ResourceManager,
Mscorlib" customProperties="" />

        <add
name="DBResourceManager"
type="MonoSoftware.Web.ResourceProviderModel.Providers.DBResourceManager,
MonoSoftware.Web.ResourceProviderModel" customProperties=""
/>

     
</providers>

   
</ResourceProviderModel>

   
<SearchEngine>

     
<providers>

        <add
name="PagesSearchProvider"
type="MonoSoftware.MonoX.SearchEngine.Providers.PagesSearchProvider,
MonoX" PagesDescriptionContentLength="255"
BoldSearchPhrases="true" FullTextSearch="false"
MaxNoOfResults="100" />

        <add
name="NewsSearchProvider"
type="MonoSoftware.MonoX.SearchEngine.Providers.NewsSearchProvider,
MonoX" NewsReadPagePath="/MonoX/Pages/NewsDetails.aspx"
NewsContentLength="255" BoldSearchPhrases="true"
MaxNoOfResults="100" />

        <add
name="BlogSearchProvider"
type="MonoSoftware.MonoX.SearchEngine.Providers.BlogSearchProvider,
MonoX" BlogContentLength="255"
BoldSearchPhrases="true" FullTextSearch="false"
MaxNoOfResults="100" />

        <add
name="GroupSearchProvider"
type="MonoSoftware.MonoX.SearchEngine.Providers.GroupSearchProvider,
MonoX" GroupDescriptionLength="255"
BoldSearchPhrases="true" FullTextSearch="false"
MaxNoOfResults="100" />

        <add
name="UserProfileSearchProvider"
type="MonoSoftware.MonoX.SearchEngine.Providers.UserProfileSearchProvider,
MonoX" UserDescriptionLength="255" BoldSearchPhrases="true"
FullTextSearch="false" MaxNoOfResults="100" />

        <add
name="DiscussionSearchProvider"
type="MonoSoftware.MonoX.SearchEngine.Providers.DiscussionSearchProvider,
MonoX" DiscussionDescriptionLength="255" BoldSearchPhrases="true"
FullTextSearch="false" MaxNoOfResults="100" />

        <add name="PhotoGallerySearchProvider"
type="MonoSoftware.MonoX.SearchEngine.Providers.PhotoGallerySearchProvider,
MonoX"
PhotoGalleryPagePath="/MonoX/Pages/SocialNetworking/PhotoGallery.aspx"
PhotoGalleryDescriptionLength="255"
BoldSearchPhrases="true" FullTextSearch="false"
MaxNoOfResults="100" />

        <add
name="CalendarEventSearchProvider"
type="MonoSoftware.MonoX.SearchEngine.Providers.CalendarEventSearchProvider,
MonoX" BoldSearchPhrases="true" CalendarEventPreviewPagePath="/MonoX/Pages/SocialNetworking/EventCalendar.aspx"
MaxNoOfResults="100" />

        <!--<add
name="LuceneFileSystemSearchProvider"
type="MonoSoftware.MonoX.SearchEngine.Providers.LuceneFileSystemSearchProvider,
MonoX" IndexingEngineInterval="60" IndexingEngineIndexFolder="/MonoX/ApplicationData/FullTextIndexes"
IndexingEngineDocDirectory="/;"
IndexedFileExtensions=".htm;.html;.pdf;.doc;.rtf;.xml;.xls;.csv;.txt;.pps;.ppt;.docx;.xlsx;"/>-->

        <!--<add
name="IndexingServiceSearchProvider"
type="MonoSoftware.MonoX.SearchEngine.Providers.IndexingServiceSearchProvider,
MonoX" Catalogs="MonoXSearch"
IndexedFileExtensions=".htm;.html;.pdf;.doc;.rtf;.xml;.xls;.csv;.txt;.pps;.ppt;.docx;.xlsx;"/>-->

     
</providers>

   
</SearchEngine>

    <RssStorage
defaultProvider="RequestRssStorageProvider">

     
<providers>

        <add
name="DiskRssStorageProvider"
type="MonoSoftware.Web.RssEngine.Providers.DiskRssStorageProvider,
MonoX" workingFolder="/MonoX/ApplicationData/RssStorage"
sqlConnectionString="" timeout="30" />

        <add
name="CacheRssStorageProvider"
type="MonoSoftware.Web.RssEngine.Providers.CacheRssStorageProvider,
MonoX" workingFolder="" sqlConnectionString=""
timeout="30" />

        <add
name="RequestRssStorageProvider"
type="MonoSoftware.Web.RssEngine.Providers.RequestRssStorageProvider,
MonoX" workingFolder="" sqlConnectionString=""
timeout="30" />

     
</providers>

   
</RssStorage>

    <AntiSpam>

     
<providers>

        <add
name="Akismet"
type="MonoSoftware.Web.AntiSpam.AntiSpamProviders.Akismet.AkismetAntiSpamProvider,
MonoSoftware.Web" apiKey="" />

        <add
name="Defensio"
type="MonoSoftware.Web.AntiSpam.AntiSpamProviders.Defensio.DefensioAntiSpamProvider,
MonoSoftware.Web" apiKey="" />

     
</providers>

    </AntiSpam>

    <!--
defaultWebPartCacheDuration is time in seconds for Web parts / other front-end
modules. If greater than zero all cacheable parts will be set to this value,
unless they are individually set to some other value.

   
defaultSystemCahceDuration is time for storing system values (user
profiles, roles, etc.). If set to zero no caching is performed.

    -->

    <Cache
defaultProvider="AspNetCacheProvider"
defaultSystemCacheDuration="3600"
defaultWebPartCacheDuration="0">

     
<providers>

        <add
name="AspNetCacheProvider"
type="MonoSoftware.MonoX.Caching.AspNetCacheProvider, MonoX" />

     
</providers>

    </Cache>

    <FileContent
defaultProvider="MonoXFileSystemContentProvider">

     
<providers>

        <add
name="MonoXFileSystemContentProvider" type="MonoSoftware.MonoX.FileSystem.MonoXFileSystemContentProvider,
MonoX" />

        <!-- {0} in
urlFormat parameter will be replaced by the bucket name. Can be used if you
want to use custom domain names via DNS alias entries. -->

        <add
name="AmazonS3FileSystemContentProvider"
type="MonoSoftware.MonoX.FileSystem.AmazonS3FileSystemContentProvider,
MonoX" bucketLocation="us" accessKeyId=""
secretAccessKey="" urlFormat="{0}.s3.amazonaws.com" />

     
</providers>

   
</FileContent>

    <!--
LocalizationHandler is used to support custom URL rewriting for localization
scenarios. By default, MonoX localized URLs have a string similar to
"/lng/en-US" embedded in it and MonoX extracts the culture name from
such strings. However, the end user can choose the custom rewriting scheme, in
case of which the the InitializeCulture in the BasePage has to be overriden to
set Thread.CurrentCulture and CurrentUICulture to the desired value, and then
the ILocalizationUrlRewriter can be implemented to reflect the custom rewriting
rules. -->

   
<LocalizationHandler
defaultProvider="MonoXLocalizationHandler">

     
<providers>

        <add
name="MonoXLocalizationHandler"
type="MonoSoftware.MonoX.Localization.LocalizationHandler, MonoX"
/>

     
</providers>

   
</LocalizationHandler>

   
<UrlRewriter>

     
<default-documents>

       
<document>Default.aspx</document>

     
</default-documents>

      <register
logger="MonoSoftware.UrlRewriter.Logging.DebugLogger,&#xA;MonoSoftware.UrlRewriter"
/>

      <if
url="^(.*)/lng/(.*)/(.*).aspx(\?(.+))?$"
rewrite="$1/$3.aspx?lng=$2&amp;$5" />

      <if
url="^(.*)/lng/(.*)/(.*).aspx$" rewrite="$1/$3.aspx?lng=$2"
/>

      <if
url="^(.*)/lng/(.*)/(.*).ashx(\?(.+))?$"
rewrite="$1/$3.ashx?lng=$2&amp;$5" />

      <if
url="^(.*)/lng/(.*)/(.*).ashx$" rewrite="$1/$3.ashx?lng=$2"
/>

      <if
url="^(.*)/lng/(.*)/$" rewrite="$1/?lng=$2" />

      <if
url="^(.*)/lng/(.*)/(\?(.+))?$"
rewrite="$1/?lng=$2&amp;$4" />

      <!--Obsolete:
Used for backward compatibility only -->

      <if
url="^(.*)/language/(.*)/(.*).aspx(\?(.+))?$"
rewrite="$1/$3.aspx?lng=$2&amp;$5" />

      <if
url="^(.*)/language/(.*)/(.*).aspx$"
rewrite="$1/$3.aspx?lng=$2" />

      <if
url="^(.*)/language/(.*)/(.*).ashx(\?(.+))?$"
rewrite="$1/$3.ashx?lng=$2&amp;$5" />

      <if
url="^(.*)/language/(.*)/(.*).ashx$"
rewrite="$1/$3.ashx?lng=$2" />

      <if
url="^(.*)/language/(.*)/(\?(.+))?$"
rewrite="$1/?lng=$2&amp;$4" />

      <!-- dynamic
blog post rules, can be used regardless of the actual name of the page that
holds blog parts -->

      <rewrite
url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogCommentsPageNo/(.*)/BlogFilesPageNo/(.*)/(\?(.+))?$"
to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;BlogCommentsPageNo=$6&amp;BlogFilesPageNo=$7&amp;$9"
name="BlogPostCommentsFiles" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/"
/>

      <rewrite
url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogFilesPageNo/(.*)/BlogCommentsPageNo/(.*)/(\?(.+))?$"
to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;BlogFilesPageNo=$6&amp;BlogCommentsPageNo=$7&amp;$9"
name="BlogPostFilesComments" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogFilesPageNo/(.*)/(\?(.+))?$"
to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;BlogFilesPageNo=$6&amp;$8"
name="BlogPostFiles" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogCommentsPageNo/(.*)/(\?(.+))?$"
to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;BlogCommentsPageNo=$6&amp;$8"
name="BlogPostComments" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;$7"
name="BlogPost" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/posts/(.*)/BlogPostPage/(.*)/(\?(.+))?$"
to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostPage=$4&amp;$6"
name="BlogPostsPaged" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/posts/{Slug}/BlogPostPage/{PageNo}/" />

      <rewrite
url="^(.*)/(.*)/posts/(.*)/(\?(.+))?$"
to="$1/$2.aspx?BlogSlug=$3&amp;$5" name="BlogPosts"
defaultPage="/Blog.aspx"
urlPattern="/{PageName}/posts/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/search/(.*)/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?BlogSlug=$3&amp;SearchAction=$4&amp;SearchValue=$5&amp;$7"
name="BlogSearch" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/search/{Slug}/{SearchAction}/{SearchValue}/"
/>



      <rewrite
url="^(.*)/(.*)/blog-tag/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?BlogSlug=$3&amp;SearchAction=tag&amp;SearchValue=$4&amp;$6"
name="BlogTag" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/blog-tag/{Slug}/{Tag}/" />

      <rewrite
url="^(.*)/(.*)/settings/(.*)/(\?(.+))?$"
to="$1/$2.aspx?ShowBlogSettings=true&amp;BlogSlug=$3&amp;$5"
name="BlogSettings" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/settings/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/comments/(.*)/BlogCommentsPageNo/(.*)/(\?(.+))?$"
to="$1/$2.aspx?ShowBlogCommentsAdmin=true&amp;BlogSlug=$3&amp;BlogCommentsPageNo=$4&amp;$6"
name="BlogCommentsAdminComments" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/comments/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/comments/(.*)/(\?(.+))?$"
to="$1/$2.aspx?ShowBlogCommentsAdmin=true&amp;BlogSlug=$3&amp;$5"
name="BlogCommentsAdmin" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/comments/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/edit/(.*)/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?BlogSlug=$3&amp;BlogPostId=$4&amp;BlogEditMode=true&amp;$7"
name="BlogPostEdit" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/edit/{Blog.Slug}/{IdentityId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/insert/(.*)/(\?(.+))?$"
to="$1/$2.aspx?BlogSlug=$3&amp;BlogInsertMode=true&amp;$5"
name="BlogPostInsert" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/insert/{Slug}/" />

      <!-- shows
all blog posts regardless of the blog they were posted to -->

      <rewrite
url="^(.*)/(.*)/posts/(\?(.+))?$" to="$1/$2.aspx$3"
name="AllBlogPosts" defaultPage="/Blog.aspx"
urlPattern="/{PageName}/posts/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/posts/(.*)/wlwmanifest.xml(\?(.+))?$"
to="$1/wlwmanifest.xml" name="WlwManifest"
urlPattern="/wlwmanifest.xml" />

      <set property="SocialNetworkingFolder"
value="/MonoX/Pages/SocialNetworking/" />

      <set
property="UserProfileFolder"
value="/MonoX/Pages/UserProfile/" />

      <set
property="MobileFolder" value="/MonoX/Mobile/" />

      <!-- profile
-->

      <rewrite
url="^(.*)/mobile/profile/(.*)/(\?(.+))?$"
to="$1${MobileFolder}UserProfile.aspx?UserName=$2&amp;$4"
name="MobileProfile"
urlPattern="/mobile/profile/{UserNameUrlEncoded}/" />

      <rewrite
url="^(.*)/profile/(.*)/(\?(.+))?$"
to="$1${UserProfileFolder}MyWall.aspx?UserName=$2&amp;$4"
name="Profile" urlPattern="/profile/{UserNameUrlEncoded}/"
/>

      <rewrite
url="^(.*)/profile-about/(.*)/(\?(.+))?$"
to="$1${UserProfileFolder}AboutMe.aspx?UserName=$2&amp;$4"
name="ProfileAbout" urlPattern="/profile-about/{UserNameUrlEncoded}/"
/>

      <rewrite
url="^(.*)/profile-friends/(.*)/(\?(.+))?$"
to="$1${UserProfileFolder}MyFriends.aspx?UserName=$2&amp;$4"
name="ProfileFriends" urlPattern="/profile-friends/{UserNameUrlEncoded}/"
/>

      <rewrite
url="^(.*)/profile-photos/(.*)/(\?(.+))?$"
to="$1${UserProfileFolder}MyPhotos.aspx?UserName=$2&amp;$4"
name="ProfilePhotos"
urlPattern="/profile-photos/{UserNameUrlEncoded}/" />

      <!-- file
view -->

      <rewrite
url="^(.*)/fileview/(.*)/(.*)/(\?(.+))?$" to="$1${SocialNetworkingFolder}FileView.aspx?FileId=$2&amp;ReturnPageId=$3&amp;$5"
name="FileView"
urlPattern="/fileview/{FileId}/{ReturnPageId}/" />

      <rewrite
url="^(.*)/fileviewsa/(.*)/(.*)/(\?(.+))?$"
to="$1${SocialNetworkingFolder}FileViewStandalone.aspx?FileId=$2&amp;ReturnPageId=$3&amp;$5"
name="FileViewStandalone"
urlPattern="/fileviewsa/{FileId}/{ReturnPageId}/" />

      <rewrite
url="^(.*)/(.*)/filelist-tag/(.*)/(\?(.+))?$"
to="$1/$2.aspx?fTag=$3&amp;$5" name="FileListTagFilter"
urlPattern="/{PageName}/filelist-tag/{Slug}/" />

      <!-- site
search -->

      <rewrite
url="^(.*)/search/(.*)/(\?(.+))?$"
to="$1/MonoX/Pages/MonoX/SearchResults.aspx?srchq=$2&amp;$4"
name="SiteSearch" urlPattern="/search/{Query}/" />

      <!-- dynamic
group rules, can be used regardeless of the actual name of the page that holds
group parts -->

      <rewrite
url="^(.*)/(.*)/GroupView/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?GroupId=$3&amp;$6" name="GroupView"
defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx"
urlPattern="/{PageName}/GroupView/{ShortId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/GroupEdit/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?GroupId=$3&amp;EditMode=true&amp;$6"
name="GroupEdit" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx"
urlPattern="/{PageName}/GroupEdit/{ShortId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/GroupList/(\?(.+))?$" to="$1/$2.aspx$3"
name="GroupList"
defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx"
urlPattern="/{PageName}/GroupList/" />

      <rewrite
url="^(.*)/(.*)/GroupInsert/(\?(.+))?$"
to="$1/$2.aspx?InsertMode=true&amp;$4"
name="GroupInsert"
defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx"
urlPattern="/{PageName}/GroupInsert/" />

      <rewrite
url="^(.*)/(.*)/GroupSearch/(.*)/(\?(.+))?$"
to="$1/$2.aspx?SearchValue=$3&amp;$5"
name="GroupSearch"
defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx"
urlPattern="/{PageName}/GroupSearch/{SearchValue}/" />

      <rewrite
url="^(.*)/(.*)/GroupSearch/(\?(.+))?$"
to="$1/$2.aspx?ShowAllGroups=true&amp;$4"
name="GroupSearchShowAll"
defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx"
urlPattern="/{PageName}/GroupSearch/" />

      <rewrite
url="^(.*)/(.*)/GroupCategory/(.*)/(\?(.+))?$"
to="$1/$2.aspx?Category=$3&amp;$5" name="GroupCategory"
defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx"
urlPattern="/{PageName}/GroupCategory/{CategorySlug}/" />

      <!-- social
networking general -->

      <rewrite
url="^(.*)/RequestConfirmation/(.*)/(.*)/(\?(.+))?$"
to="$1/MonoX/Pages/MonoX/Confirmation.aspx?RequestType=$2&amp;RequestId=$3&amp;$5"
name="RequestConfirmation"
urlPattern="/RequestConfirmation/{RequestType}/{RequestId}/" />

      <!-- Photo
Gallery -->

      <rewrite
url="^(.*)/(.*)/activeview/(.*)/albumview/(.*)/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?AlbumId=$4&amp;activeview=$3&amp;$5=$6&amp;$8"
name="PhotoListPaged"
defaultPage="/MonoX/Pages/SocialNetworking/PhotoGallery.aspx" urlPattern="/{PageName}/{ActiveControlAction}/{ActiveControlValue}/{AlbumView}/{AlbumId}/"
/>

      <rewrite
url="^(.*)/(.*)/activeview/(.*)/albumview/(.*)/(\?(.+))?$"
to="$1/$2.aspx?AlbumId=$4&amp;activeview=$3&amp;$6"
name="PhotoList" defaultPage="/MonoX/Pages/SocialNetworking/PhotoGallery.aspx"
urlPattern="/{PageName}/{ActiveControlAction}/{ActiveControlValue}/{AlbumView}/{AlbumId}/"
/>

      <rewrite
url="^(.*)/(.*)/activeview/(.*)/photoview/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?FileId=$4&amp;AlbumId=$5&amp;activeview=$3&amp;$7"
name="PhotoView" defaultPage="/MonoX/Pages/SocialNetworking/PhotoGallery.aspx"
urlPattern="/{PageName}/{ActiveControlAction}/{ActiveControlValue}/{PhotoView}/{PhotoId}/{AlbumId}/"
/>

      <!--
discussion board -->

      <rewrite
url="^(.*)/(.*)/dboard/(.*)/(.*)/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?boardId=$3&amp;$5=$6&amp;$8"
name="DiscussionPaged"
defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx"
urlPattern="/{PageName}/dboard/{BoardId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/dboard/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?boardId=$3&amp;$6"
name="Discussion"
defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx"
urlPattern="/{PageName}/dboard/{BoardId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/dtopic/(.*)/(.*)/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?topicId=$3&amp;$5=$6&amp;$8"
name="DiscussionTopicPaged"
defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx"
urlPattern="/{PageName}/dtopic/{TopicId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/dtopic/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?topicId=$3&amp;$6"
name="DiscussionTopic"
defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx"
urlPattern="/{PageName}/dtopic/{TopicId}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/dfilter/(.*)/(.*)/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?tftype=$3&amp;$5=$6&amp;$8" name="DiscussionTopicFilterPaged"
defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx"
urlPattern="/{PageName}/dfilter/{FilterType}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/dfilter/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?tftype=$3&amp;$6" name="DiscussionTopicFilter"
defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx"
urlPattern="/{PageName}/dfilter/{FilterType}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/dfilter-tag/(.*)/(.*)/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?tftype=$3&amp;dbtTag=$4&amp;$5=$6&amp;$8"
name="DiscussionTopicTagFilterPaged"
defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx"
urlPattern="/{PageName}/dfilter-tag/{FilterType}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/dfilter-tag/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?tftype=$3&amp;dbtTag=$4&amp;$6"
name="DiscussionTopicTagFilter"
defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx"
urlPattern="/{PageName}/dfilter-tag/{FilterType}/{Slug}/" />

      <rewrite
url="^(.*)/(.*)/dmessage/(.*)/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?dmsgId=$3&amp;dmsgMode=$4&amp;$5=$6&amp;$8"
name="DiscussionEditMessagePaged"
defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx"
urlPattern="/{PageName}/dmessage/{MessageId}/{Mode}/" />

      <rewrite
url="^(.*)/(.*)/dmessage/(.*)/(.*)/(\?(.+))?$"
to="$1/$2.aspx?dmsgId=$3&amp;dmsgMode=$4&amp;$6"
name="DiscussionEditMessage"
defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx"
urlPattern="/{PageName}/dmessage/{MessageId}/{Mode}/" />

      <!-- dynamic
content page -->

      <rewrite
url="^(.*)/ContentPage/(.*)/(\?(.+))?$"
to="$1/MonoX/Pages/Content.aspx?hdci=$2&amp;$4"
name="ContentPage" urlPattern="/ContentPage/{ContentId}/"
/>

      <!-- mobile
dynamic content page -->

      <rewrite
url="^(.*)/Mobile/Content/(.*)/(\?(.+))?$"
to="$1/MonoX/Mobile/Content.aspx?hdci=$2&amp;$4"
name="MobileContentPage"
urlPattern="/Mobile/Content/{ContentId}/" />

      <!-- do not
remove the last rule - supports for default page if all rules above have failed
-->

      <if
url="^(.*)/\?lng=(.*)(\?(.+))?$"
rewrite="$1/Default.aspx?lng=$2&amp;$4" />

      <if
url="^(.*)/\?lng=(.*)/?$" rewrite="$1/Default.aspx?lng=$2"
/>

      <!--Obsolete:
Used for backward compatibility only -->

      <if
url="^(.*)/\?language=(.*)(\?(.+))?$" rewrite="$1/Default.aspx?lng=$2&amp;$4"
/>

   
</UrlRewriter>

 
</MonoSoftware.Web>

  <appSettings>

    <!-- roles  -->

    <add
key="AdministratorRoles" value="Administrators" />

    <add
key="NewsPublisherRoleName" value="Publishers" />

    <add
key="AdManagerRoles" value="AdManager,Administrators" />

    <add
key="BlogAdministratorRoles"
value="Administrators,Publishers" />

    <add
key="CalendarAdministratorRoles"
value="Administrators,Publishers" />

    <add
key="DiscussionAdministratorRoles"
value="Administrators,Publishers" />

    <add
key="PhotoGalleryAdministratorRoles"
value="Administrators,Publishers" />

    <add
key="NewsEditorRoles" value="NewsEditors" />

    <add
key="ShowAjaxPanelForRoles" value="Publishers" />

    <!-- User is
added to these roles when he registers on the site -->

    <add
key="DefaultUserRoles" value="Users" />

    <!-- database
type  -->

    <add
key="DbType" value="Sql Server" />

    <!-- navigation
extensions to show in the file browser and similar utilities  -->

    <add
key="NavigationExtensions" value=".aspx;.htm;.html" />

    <!-- system
folders to hide in file browser and similar utilites  -->

    <add
key="HideFoldersThatBeginWith"
value="App_Browsers,App_Code,App_GlobalResources,App_LocalResources,classes,controls,.svn,_svn,bin,RssStorage,Cache,aspnet_client,obj,properties"
/>

    <!-- virtual
localization subfolder that will be prepended before the locale-specific part
of the path (example: /lng/en-US)  -->

    <add
key="localizationSubFolder" value="lng" />

    <!-- wheter to
log failed login attempts -->

    <add
key="LogFailedLoginAttempts" value="False" />

    <!-- wheter to
log important user actions -->

    <add
key="LogUserLogins" value="False" />

    <!-- wheter to
log important admin actions -->

    <add
key="LogAdminActions" value="False" />

    <!-- keyword
splitter characters for the news module -->

    <add
key="NewsKeyWordsSplitters" value=" ;/;\;" />

    <!-- news
working mode (SimpleMode, AdvancedMode) -->

    <add
key="NewsWorkingMode" value="SimpleMode" />

    <!-- LLBLGen
SQL Server DQE compatibility level -->

    <add
key="SqlServerDQECompatibilityLevel" value="2" />

    <!-- path where
all Web parts are stored (Comma separated values) -->

    <add key="ModuleGalleryPath"
value="/MonoX/ModuleGallery, /MonoX/Samples/WebPartSample,
/MonoX/Samples/TwitterFeedModule" />

    <!-- indicates
if page titles should be rewritten by the values entered in Page manager. If
set to false, values hardcoded in ASPX files are used. -->

    <add
key="RewritePageTitles" value="True" />

    <!-- Google
Analytics account number used for Google Analytics integration -->

    <add
key="GoogleAnalyticsAccountNo" value="" />

    <!-- allowed
extensions for file upload -->

    <add
key="UploadAllowedFileExtensions"
value=".bmp,.gif,.jpg,.jpeg,.tif,.tiff,.png,.rtf,.doc,.docx,.pdf,.txt,.xml,.xls,.xlsx,.ppt,.avi,.flv,.swf,.wmv,.mpeg,.mpg,.mp4,.mp3,.mov,.m4a,.3gp,.rm,.ogv,.webm,.mpe,.zip"
/>

    <!-- URL of the
custom user admin page, since user administration often contains custom fields
a custom module can be used instead of the default one -->

    <add
key="CustomUserAdminEditPage" value="" />

    <!-- HTML
editor toolbar mode -->

    <add
key="EditorToolbarMode" value="PageTop" />

    <!-- main upload path for file storage.
For Amazon S3 it has the format /bucket/folder, eg
value="/monox"   -->

    <add
key="MonoXUploadPath" value="/Upload" />

    <!-- folder in
which temporary cache files will be held -->

    <add
key="MonoXCacheFolder"
value="/MonoX/ApplicationData/Cache" />

    <!-- indicates
if RSS provider is turned on for appropriate content -->

    <add
key="MonoXRssIsTurnedOn" value="True" />

    <!--indicates
if content from all modules is aggregated into a single RSS channel -->

    <add
key="MonoXRssAllWebPartsAsOneRssResource" value="True"
/>

    <!-- parameters
for HTML editor file manager  -->

    <add
key="MonoXMaxImageSize" value="5242880" />

    <add
key="MonoXMaxFlashSize" value="204800" />

    <add
key="MonoXMaxMediaSize" value="5242880" />

    <add
key="MonoXMaxDocumentSize" value="5242880" />

    <add
key="MonoXMaxTemplateSize" value="204800" />

    <!-- indicates
if an advanced, ajax-compatible Web part manager should be used instead of the
default one that works via postbacks -->

    <add
key="AjaxedWebPartManager" value="True" />

    <!-- indicates
if document backups are performed on each save in HTML editor -->

    <add
key="SaveDocumentBackups" value="False" />

    <!-- number of
documents to hold in the backup history -->

    <add
key="NumberOfBackupItems" value="5" />

    <!-- indicates
if Web part chrome is shown for non-admins -->

    <add
key="ShowChromeForNonAdmins" value="True" />

    <!-- indicates
if close verb is to be displayed in the Web part chrome menu -->

    <add
key="AllowCloseVerb" value="True" />

    <!-- stop words
for keyword generation -->

    <add
key="StopWords"
value="the,and,that,you,this,for,but,with,are,have,was,out,not" />

    <!-- indicates
if META keywords are generated automatically from the page text -->

    <add
key="AutogenerateMetaKeywords" value="True" />

    <!-- maximum
number of META keywords -->

    <add
key="MaximumNumberOfKeywords" value="100" />

    <!-- maximum
number of threads for multithreaded operations -->

    <add
key="MaximumNumberOfThreads" value="20" />

    <!-- indicates
if HTML editor interface is shown in page design mode only to allow for better
WYSIWZG experience -->

    <add
key="ShowHtmlEditorsInDesignModeOnly" value="True" />

    <!-- localization SQL server connection
key if DB provider is used -->

    <add
key="LocalizationConnectionStringKey"
value="LocalSqlServer" />

    <!-- URL of the
ascx control that can be injected in the main page admin; it cab be used for
all custom tasks -->

    <add
key="CustomAdminTasksControl" value="" />

    <!-- inicates
if Web part zone titles are to be shown -->

    <add
key="ShowWebPartZoneTitles" value="True" />

    <!--
Blog-specific configuration properties -->

    <add
key="ShowBlogCategories" value="True" />

    <!-- indicates
if blog roles are to be shown -->

    <add
key="ShowBlogRoles" value="True" />

    <!-- indicates
if gravatars are shown -->

    <add
key="ShowBlogGravatars" value="False" />

    <!-- Available
values: identicon, monsterid, wavatar, full URL-encoded http address or virtual
path of an image that should be served as a default image if there is no image
for a particular address: http%3A%2F%2Fexample.com%2Fimages%2Fexample.jpg
-->



    <add key="GravatarType"
value="/App_Themes/Common/img/avatar_blank.jpg" />

    <!--

    <add
key="GravatarType" value="wavatar" />

    -->

    <!-- indicates
if avatars are shown -->

    <add
key="ShowBlogAvatars" value="True" />

    <!-- lists blog
ping services -->

    <add
key="PingServices" value="http://rpc.pingomatic.com,
http://blogsearch.google.com/ping/RPC2, http://www.blogsnow.com/ping"
/>

    <!-- social
networking mode: Friend or Group-based. In group mode the user can invite and
message only the users that are members of the same groups. -->

    <add
key="SocialNetworkingMode" value="Friend" />

    <!-- one way
(twitter) or two way (facebook) relationship mode -->

    <add
key="SocialNetworkingRelationshipMode" value="TwoWay" />

    <!-- Page title
prefix or suffix, used with all page titles -->

    <add
key="PageTitlePrefix" value="" />

    <add
key="PageTitleSuffix" value="" />

    <!-- indicates
if the MonoX installation has been performed; if set to false all requests are
redirected to the main installation page. ALWAYS set to true in the production
environment. -->

    <add
key="InstallationDone" value="True" />

    <!-- Used with
a "Tell a friend" control. Available built-in modules that use it:
News,Blog,Page,PhotoGallery,Discussion -->

    <add key="EnableContentSharingFor"
value="Blog, PhotoGallery, Discussion, News" />

    <!-- Tell a
friend service account -->

    <add
key="TellAFriendAccount" value="" />

    <!-- name of
the favicon if it is to be used on the portal -->

    <add
key="FavIcon" value="/favicon.ico" />

    <!-- jQuery
reference path. Change it to use other jQuery versions. Consider using CDNs -
for example, http://ajax.microsoft.com/ajax/jQuery/jquery-1.6.2.min.js -->

    <add
key="jQueryReferencePath" value="/MonoX/Scripts/jquery-1.9.1.min.js"
/>

    <!-- jQuery UI
reference path. Change it to use other jQuery versions. Consider using CDNs.
-->

    <add
key="jQueryUIReferencePath"
value="/MonoX/Scripts/jquery-ui-1.10.2.custom.min.js" />

    <!-- jQuery UI
CSS reference path. Change it to use other jQuery CSS versions. -->

    <add
key="jQueryUICSSReferencePath"
value="/MonoX/Scripts/jquery-ui-1.10.2.custom.css" />

    <!-- Temporary
upload path, used as an intermediary storage for transferring uploaded files to
Amazon S3 and similar services -->

    <add
key="TmpUploadPath" value="/Upload/Tmp" />

    <!-- indicates
if thumbnails are automatically created and saved for all uploaded files; they
are alternatively created on the fly on each request-->

    <add
key="StoreThumbnails" value="True" />

    <!-- thumbnail
size: Small (72px), Medium (144 px), Large (288 px), or you can add custom size
in px e.g. "640" -->

    <add
key="ThumbnailSize" value="Small" />

    <!-- indicates
if Catalog icon images are shown for Web parts. Appropriate icons has to be
present in the /App_Themes/Common/img/CatalogIconImages -->

    <add
key="ShowCatalogIconImages" value="True" />

    <!-- mail
address used to send various confirmation mail messages from the portal -->

    <add
key="MailFromAddress" value="email@yourdomain.com" />

    <!--
application title used for user friendly email titles, signatures, etc. If left
empty, host name is used by default -->

    <add
key="ApplicationTitle" value="IT Knowledgebase" />

    <!-- raw,
non-rewritten URL of the page that displays blog posts for LiveWriter and
similar MetaWeblog-based editing tools -->

    <add
key="BlogDisplayUrl" value="/Blog.aspx" />

    <!-- indicates
if all files are automatically converted to specified format -->

    <add
key="ConvertVideo" value="True" />

    <!-- indicates
the video converter type used while automatically converting to specified
format. Providers: [MonoSoftware.MonoX.Video.FlvEncoder, MonoX],
[MonoSoftware.MonoX.Video.Mp4Encoder, MonoX] -->

    <add
key="ConvertVideoProviderType"
value="MonoSoftware.MonoX.Video.FlvEncoder, MonoX" />

    <!-- holds a
physical path to the video converter executable -->

    <add
key="VideoConverterExeLocation" value="" />

    <!-- maximum
nuber of items to put in a single SiteMap "file" -->

    <add
key="MaxSiteMapItems" value="30000" />

    <!-- flag if
SSL is enabled while sending an e-mail portal wide -->

    <add
key="EnableSmtpSSL" value="False" />

    <!-- web page
url used to show messages within the MonoX CMS -->

    <add
key="MessagePageUrl"
value="/MonoX/Pages/MonoX/Message.aspx" />

    <!-- enables
pretty validators MonoX wide. Note: To correctly implement pretty validator
adapter on the custom project you need to add a "ValidatorAdapter"
css class to validator or your custom css class. -->

    <add
key="EnableValidatorsAdapter" value="true" />

    <!-- enables
public user registration -->

    <add
key="EnableUserRegistration" value="True" />

    <!-- how long (in days) to keep the
content cached in the client's browser. Used by GetImage handler and related
parts, cache for standard static content types should also be set in
system.webServer section (IIS 7) -->

    <add
key="ClientCacheMaxAge" value="30" />

    <!-- indicates
if page output cache is enabled in admin mode. Disable to avoid any side
effects -->

    <add
key="EnablePageOutputCacheInAdminMode" value="False" />

    <!-- indicates
if error page should show detailed error message output for non administrator
users -->

    <add
key="ShowDetailedErrorsForNonAdmin" value="False" />

    <!-- contains
the name of the MSMQ queue if it is used for mail sending tasks. A separate
application or Windows service is needed to process the queue contents and send
mail messages. Name must be in the format .\private$\mailqueue -->

    <add
key="MailQueueName" value=".\private$\mailqueue" />

    <!-- Indicates
if this is a WebPI Installation -->

    <add
key="WebPIInstallation" value="true" />

    <!-- Default
redirect URL for mobile clients. If empty, no redirect are performed unless
this is set at the page level. -->

    <add
key="DefaultMobileRedirectUrl"
value="/MonoX/Mobile/Default.aspx" />

    <!-- jQuery
reference path for mobile pages and controls. Change it to use other jQuery
versions. Note that you can use different versions of jQuery for mobile and
desktop versions of your site. -->

    <add
key="jQueryMobileBaseReferencePath"
value="http://code.jquery.com/jquery-1.9.1.min.js" />

    <!-- jQuery
mobile reference path.  -->

    <add
key="jQueryMobileReferencePath"
value="/MonoX/Scripts/Mobile/jquery.mobile-1.3.1.min.js" />

    <!-- Web part
verb render mode - titlebar or menu. -->

    <add
key="WebPartVerbRenderMode" value="Titlebar" />

    <!-- Verb
button type - link, image, button. -->

    <add
key="WebPartTitleBarVerbButtonType" value="Image" />

    <!-- Value for
the META viewport key, usually has to be set to at least width=device-width if
used with reponsive designs. Leave empty if you don't want to use it at all.
-->

    <add
key="MetaViewportValue" value="width=device-width" />

    <!-- DOCTYPE
declaration for all pages. If empty, defaults to XHTML. Enter like this:
&lt;!DOCTYPE html&gt;" -->

    <add
key="Doctype" value="&lt;!DOCTYPE html&gt;" />

  </appSettings>

 
<connectionStrings>

    <remove
name="LocalSqlServer" />

    <add
name="LocalSqlServer"
connectionString="Server=10.82.128.58;Database=monoX875;uid=monoXUser875;Pwd=neeraj@123;Connect
Timeout=90;" providerName="System.Data.SqlClient" />

    <!--<add
name="ADConnectionString"
connectionString="LDAP://server.domain" />-->

                <add
name="ADConnectionString"
connectionString="LDAP://10.82.128.20/OU=Leighton Welspun
India,OU=Group_IT,OU=Leighton
International,DC=leightonint,DC=internal"/>

 
</connectionStrings>

  <system.web>

   
<securityPolicy>

      <trustLevel
name="MediumMonoX"
policyFile="web_mediumtrust.monox.config" />

   
</securityPolicy>

    <trust
level="Full" legacyCasModel="true" />

    <webParts
enableExport="true">

     
<personalization
defaultProvider="SqlBlobPersonalizationProvider">

       
<providers>

          <add
connectionStringName="LocalSqlServer"
applicationName="MonoX"
name="SqlBlobPersonalizationProvider" type="MonoSoftware.MonoX.VersionedPersonalizationProvider"
varyByParams="none" varyByCustom="LanguageId" />

       
</providers>

       
<authorization>

          <allow
verbs="enterSharedScope, modifyState"
roles="Administrators,Users" />

       
</authorization>

     
</personalization>

    </webParts>

    <membership
defaultProvider="ActiveDirectoryMembershipProvider"
hashAlgorithmType="SHA1">

     
<providers>

      

                                 <add
name="ActiveDirectoryMembershipProvider"
type="MonoSoftware.MonoX.ActiveDirectoryMembershipProvider"

                
connectionStringName="ADConnectionString"
attributeMapUsername="sAMAccountName"
applicationName="MonoX"

                
connectionUsername="neeraj.admin@leightonint.internal"
connectionPassword="Ganesha@mont27" />

                                                                 

     
</providers>

   
</membership>

    <authentication
mode="Forms">

      <forms
name=".MonoX2" slidingExpiration="true"
cookieless="UseCookies" protection="All"
timeout="129600" loginUrl="/login.aspx" />

   
</authentication>

    <identity
impersonate="false" />

    <globalization
requestEncoding="utf-8" responseEncoding="utf-8"
fileEncoding="utf-8" culture="en-US"
uiCulture="en-US" />

   
<!--<globalization requestEncoding="utf-8"
responseEncoding="utf-8" fileEncoding="utf-8"
culture="auto:en" uiCulture="auto:en" />                 -->

   
<!--<globalization requestEncoding="windows-1250"
responseEncoding="windows-1250" fileEncoding="windows-1250"
culture="hr-HR" uiCulture="hr-HR"/>-->

    <roleManager
enabled="true" defaultProvider="ActiveDirectoryRoleProvider">

     
<providers>      

      <add
applicationName="MonoX" name="ActiveDirectoryRoleProvider"
type="MonoSoftware.MonoX.ActiveDirectoryRoleProvider"

                 
connectionStringName="ADConnectionString"

         
groupMode="Additive"

          groupsToUse=""

         
groupsToIgnore=""

         
usersToIgnore=""

         
sqlConnectionStringName=""

         
cacheTime="1800"

         
domainName="leightonint.internal"

         
userName="neeraj.admin@leightonint.internal"

         
password="Ganesha@mont27"

        />

     
</providers>

   
</roleManager>

    <pages
theme="Default" validateRequest="false"
enableEventValidation="false"
controlRenderingCompatibilityVersion="3.5"
clientIDMode="AutoID">

      <controls>

        <add
tagPrefix="MonoX" tagName="StyledButton"
src="/MonoX/controls/StyledButton.ascx" />

     
</controls>

    </pages>

    <!--

          Set
compilation debug="true" to insert debugging

          symbols into
the compiled page. Because this

          affects performance, set this value to
true only

          during
development.

    -->

    <!--
batch="false" cause of Nested master page issue ... Case exception on
nested Master page -->

    <compilation
debug="false" batch="true" defaultLanguage="c#"
targetFramework="4.0">

     
<assemblies>

        <add
assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />

        <add
assembly="System.Transactions, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />

        <add
assembly="System.Design, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />

        <add
assembly="System.Configuration, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />

        <add assembly="System.Data,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

        <add
assembly="System, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />

        <add
assembly="System.Web, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />

        <add
assembly="System.Xml, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />

        <add
assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />

        <add
assembly="System.Drawing, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />

        <add
assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />

        <add
assembly="System.Security, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />

        <add
assembly="System.Configuration.Install, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />

        <add
assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />

        <add
assembly="System.Management, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />

        <add
assembly="System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />

        <add
assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" />

        <add
assembly="MonoX.Localization" />

     
</assemblies>

     
<expressionBuilders>

        <add
expressionPrefix="Code"
type="MonoSoftware.Web.CodeExpressionBuilder" />

     
</expressionBuilders>

   
</compilation>

   
<httpHandlers>

      <remove
verb="POST,GET" path="MonoSoftware.MonoX.Upload.axd" />

      <add
verb="POST,GET" path="MonoSoftware.MonoX.Upload.axd"
type="MonoSoftware.MonoX.Upload" />

      <remove
verb="POST,GET" path="MonoSoftware.MonoX.GetImage.axd"
/>

      <add
verb="POST,GET" path="MonoSoftware.MonoX.GetImage.axd"
type="MonoSoftware.MonoX.GetImage" />

      <add
verb="*" path="Thumbnailer.ashx"
type="MonoSoftware.MonoX.Thumbnailer, MonoX" />

      <!--Note:
These Hanlders will optimize css and script content-->

      <!--Note: To
Enable these handlers you need to set css and js files to be parsed by
aspnet_isapi.dll in IIS Application configuration-->

      <!--<add
verb="*" path="*.css"
type="MonoSoftware.Web.WAO.Handlers.CssHandler, MonoSoftware.Web.WAO"
validate="false"/>-->

      <!--<add
verb="*" path="*.js" type="MonoSoftware.Web.WAO.Handlers.ScriptHandler,
MonoSoftware.Web.WAO" validate="false"/>-->

      <add
path="Telerik.RadUploadProgressHandler.ashx"
type="Telerik.Web.UI.RadUploadProgressHandler" verb="*"
validate="false" />

      <add
verb="*" path="SiteMap.ashx" type="MonoSoftware.MonoX.SiteMap.SiteMap,
MonoX" />

      <add
path="Telerik.Web.UI.DialogHandler.aspx" verb="*"
type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"
validate="false" />

      <add
path="Telerik.Web.UI.WebResource.axd" verb="*"
type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />

      <add
verb="*" path="CaptchaHandler.ashx"
type="MonoSoftware.Web.Controls.Captcha.CaptchaHandler,
MonoSoftware.Web" />

      <add
verb="*" path="*.sauth"
type="Brickred.SocialAuth.NET.Core.CallbackHandler" />

   
</httpHandlers>

    <httpRuntime
maxRequestLength="1550000" enableVersionHeader="false"
requestValidationMode="2.0" />

   
<httpModules>

      <add
type="MonoSoftware.UrlRewriter.RewriterHttpModule,
MonoSoftware.UrlRewriter" name="UrlRewriter" />

      <add
name="CompressionModule"
type="MonoSoftware.Web.WAO.HttpCompress.HttpCompressModule,
MonoSoftware.Web.WAO" />

      <add
name="RadUploadModule"
type="Telerik.Web.UI.RadUploadHttpModule" />

      <add
name="WildCardExtensionFix"
type="MonoSoftware.MonoX.WildCardExtensionFix, MonoX" />

      <add
name="OpenSocialModule"
type="MonoSoftware.MonoX.OpenSocial.OpenSocialHttpModule, MonoX"
/>

      <add
name="SocialAuthAuthentication" type="Brickred.SocialAuth.NET.Core.SocialAuthHttpModule"
/>

   
</httpModules>

    <!-- Asp.Net
compiles the profile to the App_Code.dll which can't be shiped with the MonoX
CMS because custom projects needs to have ability of having custom code put in
to the Asp.net folder App_Code (which is compile it to the App_Code.dll) -->

   
<!--"System.Collections.Specialized.StringCollection" type
is added to show that complex types are ignored for now-->

    <profile
enabled="true"
defaultProvider="AspNetSqlProfileProvider">

      <providers>

        <remove
name="AspNetSqlProfileProvider" />

        <add
name="AspNetSqlProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="MonoX"
type="System.Web.Profile.SqlProfileProvider" />

     
</providers>

      <properties
/>

    </profile>

    <!--<profile
enabled="true"
defaultProvider="AspNetSqlProfileProvider"  >

       
<providers>

          <remove
name="AspNetSqlProfileProvider"/>

          <add
name="AspNetSqlProfileProvider"
connectionStringName="LocalSqlServer" applicationName="MonoX"
type="System.Web.Profile.SqlProfileProvider" />

       
</providers>

       
<properties>

          <add
name="GPSLocation" defaultValue="45.562141,18.676414"/>

          <add
name="Children" />

          <add
name="RecentSearchList"

              
type="System.Collections.Specialized.StringCollection"

              
serializeAs="Xml"

                />

          <add
name="Hometown" type="String"
serializeAs="String" />

          <add
name="IsModerator" type="bool"  />         


          <group name="Bio">

            <add
name="Title" type="string" />

            <add
name="Description" type="String" />

         
</group>

          <group
name="Publication">

            <add
name="Title" type="string" />

            <add
name="Description" type="String" />

            <add
name="Date" type="DateTime" />

         
</group>

          <add
name="ClubJoinedYear" type="int"  />

          <add
name="MoneyDonated" type="decimal"  />         


       
</properties>

   
</profile>-->

    <customErrors
mode="Off" defaultRedirect="">

      <!--<error
statusCode="404" redirect="/WebTest/ErrorPages/404.html"
/>-->

   
</customErrors>

    <trace
enabled="false" requestLimit="40"
localOnly="false" pageOutput="true" />

    <sessionState timeout="30" />

    <machineKey
validationKey="432F2F845871EE74036D6FA75A7994EE77E2236634DC2C16AE71FC1EC5E482E80E9D0F2ACC281C7EE90BC5427F9FEBB1EE1E1E6B7AD05D2D2FB5FC6EA95843E4"
decryptionKey="011D8C69D3102FE12A4AD59D79F6F976706553F1CD9D069A"
validation="SHA1" />

  </system.web>

 
<system.web.extensions>

    <scripting>

     
<scriptResourceHandler enableCompression="true"
enableCaching="true" />

    </scripting>

 
</system.web.extensions>

 
<system.webServer>

    <!--
Applications that require the use of the "+" character in the URL in
IIS 7 (for example, for the search box) should leave this setting. This may
make your application more vulnerable to malicious URLs so use it with care.
-->

    <security>

     
<requestFiltering allowDoubleEscaping="true">

       
<hiddenSegments>

          <add
segment="ApplicationData" />

       
</hiddenSegments>

     
</requestFiltering>

    </security>

    <validation
validateIntegratedModeConfiguration="false" />

    <modules
runAllManagedModulesForAllRequests="true">

      <add
name="CompressionModule"
type="MonoSoftware.Web.WAO.HttpCompress.HttpCompressModule,
MonoSoftware.Web.WAO" />

      <remove
name="ScriptModule" />

      <add
name="ScriptModule" preCondition="managedHandler"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

      <add
type="MonoSoftware.UrlRewriter.RewriterHttpModule,
MonoSoftware.UrlRewriter" name="UrlRewriter" />

      <add
name="RadUploadModule" preCondition="integratedMode"
type="Telerik.Web.UI.RadUploadHttpModule" />

      <add
name="SocialAuthAuthentication"
type="Brickred.SocialAuth.NET.Core.SocialAuthHttpModule" />

      <!-- needed
for IIS 7 MVC style routing

      <add
name="UrlRoutingModule"
type="System.Web.Routing.UrlRoutingModule, System.Web.Routing,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

      -->

    </modules>

    <handlers>

      <add
name="Telerik_RadUploadProgressHandler_ashx" verb="*"
preCondition="integratedMode"
path="Telerik.RadUploadProgressHandler.ashx"
type="Telerik.Web.UI.RadUploadProgressHandler" />

      <add
name="Telerik.Web.UI.DialogHandler"
path="Telerik.Web.UI.DialogHandler.aspx" verb="*"
type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"
preCondition="integratedMode" />

      <add
name="Telerik.Web.UI.WebResource"
path="Telerik.Web.UI.WebResource.axd" verb="*"
type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />

      <add
name="SiteMap" verb="*" path="SiteMap.ashx"
type="MonoSoftware.MonoX.SiteMap.SiteMap, MonoX" />

      <remove
name="MonoSoftware.MonoX.Upload.axd" />

      <add
name="MonoSoftware.MonoX.Upload.axd" verb="POST,GET"
path="MonoSoftware.MonoX.Upload.axd"
type="MonoSoftware.MonoX.Upload" />

      <remove
name="MonoSoftware.MonoX.GetImage.axd" />

      <add
name="MonoSoftware.MonoX.GetImage.axd" verb="POST,GET"
path="MonoSoftware.MonoX.GetImage.axd"
type="MonoSoftware.MonoX.GetImage" />

      <add
name="MonoSoftware.MonoX.Thumbnailer" verb="*"
path="Thumbnailer.ashx" type="MonoSoftware.MonoX.Thumbnailer,
MonoX" />

      <add
name="CaptchaHandler" verb="*"
path="CaptchaHandler.ashx"
type="MonoSoftware.Web.Controls.Captcha.CaptchaHandler,
MonoSoftware.Web" />

      <add
name="socialAuth.NET" verb="*" path="*.sauth"
type="Brickred.SocialAuth.NET.Core.CallbackHandler" />

      <!--<add
name="MonoSoftware.Web.WAO.Handlers.CssHandler" verb="*"
path="*.css" type="MonoSoftware.Web.WAO.Handlers.CssHandler,
MonoSoftware.Web.WAO" validate="false"/>-->

      <!--<add
name="MonoSoftware.Web.WAO.Handlers.ScriptHandler" verb="*"
path="*.js" type="MonoSoftware.Web.WAO.Handlers.ScriptHandler,
MonoSoftware.Web.WAO" validate="false"/>-->

    </handlers>

   
<httpProtocol>

      <!-- the
following are performance optimizations for IIS 7 and higher: remove
unneccessary headers, apply client side caching (7 days) for static content and
content compression. Remove the compression in case of unespected behavior.
-->

      <customHeaders>

        <remove
name="X-Powered-By" />

     
</customHeaders>

   
</httpProtocol>

    <httpErrors
existingResponse="PassThrough" />

   
<staticContent>

      <clientCache
cacheControlMode="UseMaxAge"
cacheControlMaxAge="7.00:00:00" />

    </staticContent>

    <urlCompression
doStaticCompression="true" doDynamicCompression="true"
/>

 
</system.webServer>

  <system.net>

   
<mailSettings>

      <smtp
deliveryMethod="Network">

        <network
host="mail.yourdomain.com" />

      </smtp>

    </mailSettings>

   
<!--<defaultProxy>

            <proxy

                   
usesystemdefault="False"

                   
bypassonlocal="True"

                   
proxyaddress="http://127.0.0.1:8888"

              />

       
</defaultProxy>-->

  </system.net>

  <system.serviceModel>

   
<serviceHostingEnvironment
aspNetCompatibilityEnabled="true"></serviceHostingEnvironment>

 
</system.serviceModel>

  <openSocial
tokenManager="MonoSoftware.MonoX.BusinessLayer.OAuthTokenManagerBLL,
MonoX" authorizationEndpoint="/MonoX/OpenSocial/OAuth.ashx"
authenticationPage="/MonoX/OpenSocial/OpenSocialAuthorizationPage.aspx"
dataAccessAdapter="MonoSoftware.MonoX.OpenSocial.MonoXOpenSocialDataAccessAdpater,
MonoX" />

</configuration>
This content has not been rated yet. 
110 Reputation 17 Total posts
1 2 3