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.

Installing MonoX on Windows 7  (Mono Support )

Viewed 224672 time(s), 21 post(s) 5/19/2011 3:57:34 PMby gonzalom
denis

denis

5/20/2011 9:06:04 PM
Hi Gonzalo,
You are welcome.
For the rest of our visitors, this was caused by the ASP.NET and IIS misconfiguration. Whenever you start getting "500 internal server error" in your browser, it is wise to check MonoX logs (/MonoX/ApplicationData/Logs) and Windows event log. If both are empty, the browser request is probably not reaching the MonoX engine at all, and it may be solved by simply running aspnet_regiis -i from your .NET framework folder ( C:\Windows\Microsoft.NET\Framework\v4.0.30319 or something like that, depending on the version of the framework you are using). This will reinstall ASP.NET and update existing applications to use the correct version of the application pool.
Rated 5.00, 1 vote(s). 
7207 Reputation 956 Total posts
gonzalom

gonzalom

5/19/2011 3:57:34 PM
Hello,

I've downloaded MonoX and been trying to install it for the last 2 days directly setting up the site in IIS7.
Then, I choosed to use Web Application Installer. It seemed to work, but as I soon as I tryed to register my account to start exploring MonoX I got an error page complaining about a problem when trying to send me a confirmation email.
I would really appreciate if you could provide me with a detailed step by step installation and start-up guide. I'm relatively new to web applications in general and I find the user's manual a bit difficult for begginers.
May be a tutorial is available online showing the process step by step over IIS 7 and Win 7.
I will be very grateful for any help.
Thanks in advance,

Gonzalo
This content has not been rated yet. 
345 Reputation 38 Total posts
khorvat

khorvat

5/19/2011 7:48:00 PM
Hi Gonzalo,

yes there is a Windows 7 installation guide, it is basically the same as Windows Server 2008 installation. But I think that you are facing a different issue here. To setup SMTP configuration used for sending an e-mail while registering you will need to do the following:

1. Go to web.config and find the following section
<mailSettings>
    <smtp deliveryMethod="Network" >
      <network host="mail.yourdomain.com"  />
    </smtp>
</mailSettings>
2. Change the mail.yourdomain.com to the SMTP server you would like to use while sending an e-mail
3. Note: If you are using the GMail account for sending e-mails you will need to set the EnableSmtpSSL to true, because SSL is required by the Google's mail
<!-- flag if SSL is enabled while sending an e-mail portal wide -->
<add key="EnableSmtpSSL" value="true"/>
4. If your SMTP server requires authentication don't forget to set the username and password in the network section above

You can find more information on SMTP configuration in the ASP.NET here.

Regards

This content has not been rated yet. 
15993 Reputation 2214 Total posts
gonzalom

gonzalom

5/19/2011 8:11:54 PM
Hi Khorvat,

Thanks for the response. Unfortunatelly I tryed to follow the link for the installation guide but it lead me to a page with the following message:

The requested post cannot be found. You may entered the incorrect address, or the post was deleted by the author.

I'm still trying to set up MonoX over IIS. Could you please review the link?

In the meantime I'll change the configuration as you are suggesting.

Thanks,

Gonzalo
This content has not been rated yet. 
345 Reputation 38 Total posts
khorvat

khorvat

5/19/2011 8:25:45 PM
Hi,

I have reviewed the link and it was my mistake this blog isn't published yet, so I'm sending you an unofficial version by e-mail.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
gonzalom

gonzalom

5/19/2011 8:27:03 PM
Great!! I'd be very grateful if you do so.
Regards,

Gonzalo
This content has not been rated yet. 
345 Reputation 38 Total posts
gonzalom

gonzalom

5/19/2011 9:28:15 PM
Hi,

I tryed to follow your instructions for setting up the email.
Based on Gmai'ls information posted here I changed the settings you told me without luck and then added some settings as follows:

<mailSettings>
<smtp deliveryMethod="Network" from="MyUserName@gmail.com">>
<network host="smtp.gmail.com" userName="MyUserName@gmail.com" password="MyPassword" port ="465" />
</smtp>
</mailSettings>

But I still get the error message reporting the email couldn't be send.
Am I missing something?

Thanks

Gonzalo
This content has not been rated yet. 
345 Reputation 38 Total posts
khorvat

khorvat

5/19/2011 9:53:40 PM
Hi,

did you set the EnableSmtpSSL to true in the web.config ?

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

And for Gmail your settings should look like this:

<network defaultCredentials="false" host="smtp.gmail.com" userName="MyUserName@gmail.com" password="MyPassword" port ="587" />

I hope this will work for you, if not get back to us.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
gonzalom

gonzalom

5/20/2011 1:30:40 PM
Hi,

Right now I have all set up as you're suggesting but it's not working yet.
I'm attaching an snapshot for your reference. It must be something else. If you wish I can email you sending my web.config.

I'm running the site from WebMatrix, in case this is relevant. Thanks for the tutorials about MonoX over IIS I'll try to set up the site over IIS. These are 2 separete issues.

Best regards,

Gonzalo
This content has not been rated yet. 
345 Reputation 38 Total posts
gonzalom

gonzalom

5/20/2011 2:31:29 PM
Hello Again,

I've followed the tuutorial for setting up the site as a new web appliction inside the default web site (First approach in the tutorial).
I think it's not a security issue. I'm attaching some snapshots, please look at security.png.
When I tryed to navigate to the site IE lead me to the IIS default page. I realized that I should type http://localhost/MonoX/Default.aspx to go to the default page. But when I did, an error page showed up. Please look at ErrorPage.png.
Finally, I tryed to set up the default document from within IIS. It displayed a dialog with the same error (DefaultDocument.png), so I think something's wrong with my web.config.
I'm pasting its code below.
Thanks in advance for your valuable effort.
Regards,

Gonzalo

<?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" />
  </configSections>
  <ActiveDirectoryConfiguration server="" username="" password="" />
  <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" />
      </ExcludedMimeTypes>
      <ExcludedPaths>
        <clear />
        <!--Example-->
        <!--<add name="WebResource" path="WebResource.axd"/>-->
      </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" PagesDescriptionContentLenght="255" BoldSearchPhrases="true" FullTextSearch="false" />
        <add name="NewsSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.NewsSearchProvider, MonoX" NewsReadPagePath="/MonoX/Pages/NewsDetails.aspx" NewsContentLenght="255" BoldSearchPhrases="true" />
        <add name="BlogSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.BlogSearchProvider, MonoX" BlogContentLenght="255" BoldSearchPhrases="true" FullTextSearch="false" />
        <add name="GroupSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.GroupSearchProvider, MonoX" GroupDescriptionLenght="255" BoldSearchPhrases="true" FullTextSearch="false" />
        <add name="UserProfileSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.UserProfileSearchProvider, MonoX" UserDescriptionLenght="255" BoldSearchPhrases="true" FullTextSearch="false" />
        <add name="DiscussionSearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.DiscussionSearchProvider, MonoX" DiscussionDescriptionLength="255" BoldSearchPhrases="true" FullTextSearch="false" />
        <add name="PhotoGallerySearchProvider" type="MonoSoftware.MonoX.SearchEngine.Providers.PhotoGallerySearchProvider, MonoX" PhotoGalleryPagePath="/MonoX/Pages/SocialNetworking/PhotoGallery.aspx" PhotoGalleryDescriptionLength="255" BoldSearchPhrases="true" FullTextSearch="false" />
        <!--<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="" />
      </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 "/language/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, MonoSoftware.UrlRewriter" />
      <if url="^(.*)/language/(.*)/(.*).aspx(\?(.+))?$" rewrite="$1/$3.aspx?language=$2&$5" />
      <if url="^(.*)/language/(.*)/(.*).aspx$" rewrite="$1/$3.aspx?language=$2" />
          <if url="^(.*)/language/(.*)/(.*).ashx(\?(.+))?$" rewrite="$1/$3.ashx?language=$2&$5" />
          <if url="^(.*)/language/(.*)/(.*).ashx$" rewrite="$1/$3.ashx?language=$2" />
          <if url="^(.*)/language/(.*)/(\?(.+))?$" rewrite="$1/?language=$2&$4" />
      <!-- dynamic blog post rules, can be used regardless of the actual name of the page that holds blog parts -->
      <rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogPostId=$4&$7" name="BlogPost" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/posts/(.*)/Page/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogPageNo=$4&$6" name="BlogPostsPaged" defaultPage="/Blog.aspx" urlPattern="/{PageName}/posts/{Slug}/Page/{PageNo}/" />
      <rewrite url="^(.*)/(.*)/posts/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&$5" name="BlogPosts" defaultPage="/Blog.aspx" urlPattern="/{PageName}/posts/{Slug}/" />
      <rewrite url="^(.*)/(.*)/search/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&SearchAction=$4&SearchValue=$5&$7" name="BlogSearch" defaultPage="/Blog.aspx" urlPattern="/{PageName}/search/{Slug}/{SearchAction}/{SearchValue}/" />
      <rewrite url="^(.*)/(.*)/blog-tag/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&SearchAction=tag&SearchValue=$4&$6" name="BlogTag" defaultPage="/Blog.aspx" urlPattern="/{PageName}/blog-tag/{Slug}/{Tag}/" />
      <rewrite url="^(.*)/(.*)/settings/(.*)/(\?(.+))?$" to="$1/$2.aspx?ShowBlogSettings=true&BlogSlug=$3&$5" name="BlogSettings" defaultPage="/Blog.aspx" urlPattern="/{PageName}/settings/{Slug}/" />
      <rewrite url="^(.*)/(.*)/comments/(.*)/(\?(.+))?$" to="$1/$2.aspx?ShowBlogCommentsAdmin=true&BlogSlug=$3&$5" name="BlogCommentsAdmin" defaultPage="/Blog.aspx" urlPattern="/{PageName}/comments/{Slug}/" />
      <rewrite url="^(.*)/(.*)/edit/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogPostId=$4&BlogEditMode=true&$7" name="BlogPostEdit" defaultPage="/Blog.aspx" urlPattern="/{PageName}/edit/{Blog.Slug}/{IdentityId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/insert/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogInsertMode=true&$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/" />
      <!-- profile -->
      <rewrite url="^(.*)/profile/(.*)/(\?(.+))?$" to="$1${SocialNetworkingFolder}UserProfile.aspx?UserName=$2&$4" name="Profile" urlPattern="/profile/{UserNameUrlEncoded}/" />
      <!-- file view -->
      <rewrite url="^(.*)/fileview/(.*)/(.*)/(\?(.+))?$" to="$1${SocialNetworkingFolder}FileView.aspx?FileId=$2&ReturnPageId=$3&$5" name="FileView" urlPattern="/fileview/{FileId}/{ReturnPageId}/" />
      <rewrite url="^(.*)/fileviewsa/(.*)/(.*)/(\?(.+))?$" to="$1${SocialNetworkingFolder}FileViewStandalone.aspx?FileId=$2&ReturnPageId=$3&$5" name="FileViewStandalone" urlPattern="/fileviewsa/{FileId}/{ReturnPageId}/" />
      <rewrite url="^(.*)/(.*)/filelist-tag/(.*)/(\?(.+))?$" to="$1/$2.aspx?fTag=$3&$5" name="FileListTagFilter" urlPattern="/{PageName}/filelist-tag/{Slug}/" />
      <!-- site search -->
      <rewrite url="^(.*)/search/(.*)/(\?(.+))?$" to="$1/MonoX/Pages/MonoX/SearchResults.aspx?srchq=$2&$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&$6" name="GroupView" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupView/{ShortId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/GroupEdit/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?GroupId=$3&EditMode=true&$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&$4" name="GroupInsert" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupInsert/" />
      <rewrite url="^(.*)/(.*)/GroupSearch/(.*)/(\?(.+))?$" to="$1/$2.aspx?SearchValue=$3&$5" name="GroupSearch" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupSearch/{SearchValue}/" />
      <rewrite url="^(.*)/(.*)/GroupSearch/(\?(.+))?$" to="$1/$2.aspx?ShowAllGroups=true&$4" name="GroupSearchShowAll" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupSearch/" />
      <rewrite url="^(.*)/(.*)/GroupCategory/(.*)/(\?(.+))?$" to="$1/$2.aspx?Category=$3&$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&RequestId=$3&$5" name="RequestConfirmation" urlPattern="/RequestConfirmation/{RequestType}/{RequestId}/" />
      <!-- Photo Gallery -->
      <rewrite url="^(.*)/(.*)/activeview/(.*)/albumview/(.*)/(\?(.+))?$" to="$1/$2.aspx?AlbumId=$4&activeview=$3&$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&AlbumId=$5&activeview=$3&$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&$6" name="Discussion" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dboard/{BoardId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/dtopic/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?topicId=$3&$6" name="DiscussionTopic" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dtopic/{TopicId}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/dfilter/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?tftype=$3&$6" name="DiscussionTopicFilter" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dfilter/{FilterType}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/dfilter-tag/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?tftype=$3&dbtTag=$4&$6" name="DiscussionTopicTagFilter" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dfilter-tag/{FilterType}/{Slug}/" />
      <rewrite url="^(.*)/(.*)/dmessage/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?dmsgId=$3&dmsgMode=$4&$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&$4" name="ContentPage" urlPattern="/ContentPage/{ContentId}/" />
      <!-- do not remove the last rule - supports for default page if all rules above have failed -->
      <if url="^(.*)/\?language=(.*)(\?(.+))?$" rewrite="$1/Default.aspx?language=$2&$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,Publishers" />
    <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: /language/en-US)  -->
    <add key="localizationSubFolder" value="language" />
    <!-- wheter to log failed login attempts -->
    <add key="LogFailedLoginAttempts" value="True" />
    <!-- wheter to log important user actions -->
    <add key="LogUserLogins" value="True" />
    <!-- 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" />
    <!-- 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,.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 -->
    <!-- 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" />
    <!-- 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.3.2.min.js -->
    <add key="jQueryReferencePath" value="/MonoX/Scripts/jquery-1.3.2.min.js" />
    <!-- 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) -->
    <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="gonzalom@onetree.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 FLV format -->
    <add key="ConvertVideoToFlv" value="true" />
    <!-- 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="true"/>
    <!-- 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" />
  </appSettings>
  <connectionStrings>
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionString="Server=.\SQLEXPRESS;Database=MonoX;uid=MonoXUser;Pwd=33lala33;" providerName="System.Data.SqlClient" />
     
    <add name="ADConnectionString" connectionString="Server=.\SQLEXPRESS;Database=MonoX;uid=MonoXUser;Pwd=33lala33;" />
  </connectionStrings>
  <system.web>
    <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="AspNetSqlMembershipProvider" 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="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName" applicationName="MonoX"
         connectionUsername="username@yourdomain"
         connectionPassword="pwd" /> -->
      </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 validateRequest="false" enableEventValidation="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
      <namespaces />
    </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" />
      </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 verb="*" path="CaptchaHandler.ashx" type="MonoSoftware.Web.Controls.Captcha.CaptchaHandler, MonoSoftware.Web" />
        </httpHandlers>
        <httpRuntime maxRequestLength="1550000" enableVersionHeader="false" />
        <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" />
    </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="RemoteOnly" 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" />
      <add type="MonoSoftware.UrlRewriter.RewriterHttpModule, MonoSoftware.UrlRewriter" name="UrlRewriter" />
      <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
      <!-- 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="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="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" />
        <defaultDocument>
            <files>
                <add value="Default.aspx" />
            </files>
        </defaultDocument>
  </system.webServer>
  <system.net>
    <mailSettings
      <smtp deliveryMethod="Network" from="MyUserName@gmail.com">
        <network host="smtp.gmail.com" userName="MyUserName@gmail.com" password="MyPassword" port ="587" defaultCredentials="false"/>
      </smtp>
    </mailSettings>
  </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. 
345 Reputation 38 Total posts
gonzalom

gonzalom

5/20/2011 2:52:36 PM
I also tryed this that looks like the same problem. Now I see a different error page and a different error message inside IIS when trying to set the default document.
2 snapshots are attached.
Thanks.

Gonzalo
This content has not been rated yet. 
345 Reputation 38 Total posts
1 2 3