Error XmlSiteMapProvider does not exist - c#

///This is my Agent.sitemap
<siteMapNode url="default.aspx#" title="Start" description="Start">
<siteMapNode url="~/dirCommon/default.aspx" title="Home" description="Home" />
<siteMapNode url="dirAgent/profile.aspx#" title="Agent" description="Agent">
<siteMapNode url="dirAgent/profile.aspx" title="My Profile" description="Agent:My Profile" />
<siteMapNode url="dirUser/account.aspx" title="My Account" description="Agent:My Account" />
<!--<siteMapNode url="dirUser/downloads.aspx" title="Downloads" description="Agent:Downloads" />-->
</siteMapNode>
<siteMapNode url="dirAgent/default.aspx" title="Calls" description="Calls">
<siteMapNode url="dirAgent/CallQueue.aspx" title="Call Queue" description="Agent:Call Queue" />
<siteMapNode url="dirAgent/myCalls.aspx" title="My Calls" description="Agent:My Calls" />
<siteMapNode url="dirAgent/followupcalls.aspx" title="Follow-Up" description="Agent:Follow-Up" />
<siteMapNode url="dirAgent/calls.aspx" title="Call History" description="Agent:Call History" />
</siteMapNode>
<siteMapNode url="dirAgent/default3.aspx" title="Environment" description="Environment">
<siteMapNode url="dirAgent/facilities.aspx" title="Facilities" description="Agent:Facilities" />
<!-->
<siteMapNode url="dirAgent/contacts.aspx" title="Contacts" description="Agent:Contacts" />
<!-->
</siteMapNode>
</siteMapNode>
//This Web.sitemap
<siteMapNode url="~/dirCommon/default.aspx" title="Home" description="Home" />
//when i run application from iis getting an error "AGENT.sitemap required by XmlSiteMapProvider does not exist."

Looks like your XmlSiteMapProvider is configured in the web.config (or code) to use your Agent.sitemap instead of the default ~/web.sitemap. check if that reference and the actual location of the Agent.sitemap are correct!

Related

Xamarin android debugging taking a lot of time?

I am creating an application in Xamarin Android, the problem is my application Takes a lot of time(around two to three minutes) for debugging even in second or plus attempt and even when I don't do any changes. I have enabled fast deployment in android options and set my Linker settings to none and attached a screen shot here for detailed review of my settings.
and here is my androidmanifest.xml file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.companyname.finalproject_pu" android:installLocation="auto" android:versionCode="1" android:versionName="1.0">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
<!-- Google Maps for Android v2 requires OpenGL ES v2 -->
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<!-- Permission to receive remote notifications from Google Play Services -->
<!-- Notice here that we have the package name of our application as a prefix on the permissions. -->
<uses-permission android:name="com.companyname.finalproject_pu.permission.MAPS_RECEIVE" />
<permission android:name="com.companyname.finalproject_pu.permission.MAPS_RECEIVE" android:protectionLevel="signature" />
<!-- These are optional, but recommended. They will allow Maps to use the My Location provider. -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<application android:name="android.app.Application" android:allowBackup="true" android:appComponentFactory="androidx.core.app.CoreComponentFactory" android:debuggable="true" android:extractNativeLibs="true" android:icon="#drawable/appiconfinal" android:label="Problem Update" android:roundIcon="#drawable/appiconfinal" android:supportsRtl="true" android:theme="#style/AppTheme" android:usesCleartextTraffic="true">
<!-- Necessary for apps that target Android 9.0 or higher -->
<uses-library android:name="org.apache.http.legacy" android:required="false" />
<provider android:name="androidx.core.content.FileProvider" android:authorities="com.companyname.finalproject_pu.fileprovider" android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="#xml/file_paths" />
<meta-data android:name="com.google.android.gms.version" android:value="#integer/google_play_services_version" />
</provider>
<activity android:name="crc64830617e3579ebeb9.CreateIssue" android:label="CreateIssue" />
<activity android:name="crc64830617e3579ebeb9.createissue2" android:label="createissue2" />
<activity android:name="crc64830617e3579ebeb9.createissue3" android:label="createissue3" />
<activity android:name="crc64830617e3579ebeb9.createissue4" android:label="createissue4" />
<activity android:name="crc64830617e3579ebeb9.createissue5" android:label="createissue5" />
<activity android:name="crc64830617e3579ebeb9.createissue6" android:label="createissue6" />
<activity android:name="crc64830617e3579ebeb9.EmailVerifyActivity" android:label="EmailVerifyActivity" />
<activity android:name="crc64830617e3579ebeb9.ForgotPassActivity" android:label="ForgotPassActivity" />
<activity android:name="crc64830617e3579ebeb9.FundsActivity" android:label="FundsActivity" />
<activity android:name="crc64830617e3579ebeb9.LocationActivity" android:label="LocationActivity" />act
<activity android:name="crc64830617e3579ebeb9.LocationsActivity" android:label="LocationsActivity" />
<activity android:name="crc64830617e3579ebeb9.Login" android:label="Login" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="crc64830617e3579ebeb9.MainActivity" android:label="#string/app_name" android:theme="#style/AppTheme" >
</activity>
<activity android:name="crc64830617e3579ebeb9.testActivity" android:label="testActivity">
</activity>
<activity android:name="crc64830617e3579ebeb9.MapActivity" android:label="MapActivity"/>
<activity android:name="crc64830617e3579ebeb9.Newpassword" android:label="Newpassword" />
<activity android:name="crc64830617e3579ebeb9.NotificationsActivity" android:label="NotificationsActivity" />
<activity android:name="crc64830617e3579ebeb9.OTPVerify" android:label="OTPVerify" />
<activity android:name="crc64830617e3579ebeb9.PhotoUploading" android:label="PhotoUploading" />
<activity android:name="crc64830617e3579ebeb9.Register1Activity" android:label="Register1Activity" />
<activity android:name="crc64830617e3579ebeb9.Register2Activity" android:label="Register2Activity" />
<activity android:name="crc64830617e3579ebeb9.Register3Activity" android:label="Register3Activity" />
<activity android:name="crc64830617e3579ebeb9.SettingsActivity" android:label="SettingsActivity" />
<activity android:name="crc644f28929abffd59e1.HomeActivity" android:label="HomeActivity" />
<activity android:name="crc646957603ea1820544.MediaPickerActivity" android:configChanges="orientation|screenSize|uiMode" />
<service android:name="crc64396a3fe5f8138e3f.KeepAliveService" />
<receiver android:name="crc64a0e0a82d0db9a07d.BatteryBroadcastReceiver" android:enabled="true" android:exported="false" android:label="Essentials Battery Broadcast Receiver" />
<receiver android:name="crc64a0e0a82d0db9a07d.EnergySaverBroadcastReceiver" android:enabled="true" android:exported="false" android:label="Essentials Energy Saver Broadcast Receiver" />
<receiver android:name="crc64a0e0a82d0db9a07d.ConnectivityBroadcastReceiver" android:enabled="true" android:exported="false" android:label="Essentials Connectivity Broadcast Receiver" />
<provider android:name="xamarin.essentials.fileProvider" android:authorities="com.companyname.finalproject_pu.fileProvider" android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="#xml/xamarin_essentials_fileprovider_file_paths" />
</provider>
<provider android:name="mono.MonoRuntimeProvider" android:authorities="com.companyname.finalproject_pu.mono.MonoRuntimeProvider.__mono_init__" android:exported="false" android:initOrder="1999999999" />
<!-- suppress ExportedReceiver -->
<receiver android:name="mono.android.Seppuku">
<intent-filter>
<action android:name="mono.android.intent.action.SEPPUKU" />
<category android:name="mono.android.intent.category.SEPPUKU.com.companyname.finalproject_pu" />
</intent-filter>
</receiver>
<activity android:name="com.google.android.gms.common.api.GoogleApiActivity" android:exported="false" android:theme="#android:style/Theme.Translucent.NoTitleBar" />
<meta-data android:name="com.google.android.gms.version" android:value="#integer/google_play_services_version" />
<!-- suppress ExportedReceiver -->
<meta-data android:name="com.google.android.geo.API_KEY" android:value="AIzaSyD8-hqAD2UZX-8VSVoxOpabG2zW1RnmfzE"/>
<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
android:exported="false" />
<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="${applicationId}" />
</intent-filter>
</receiver>
<!--FCM RECEIVER ENDS HERE-->
</application>
</manifest>

xamarin android app crashes after multitasking

I have finished my first xamarin android mobile app. It all works fine. I have only one problem that I cannot solve and I could not find solution using google.
When I start my app it all works great but when I press home button, open and close few other apps and come back to app it crashes. Also when I open app and go turn off my screen and then I turn it back on and to back to app it creshes.
Besides that all works great and there is no crashes.
This crash is happening both on emulator and on physical device.
The error I get when this happens on emulator is this:
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.name.appname/com.name.android.publish.OverlayActivity}; have you declared this activity in your AndroidManifest.xml?
How to solve this if possible?
Edit:
AndoirdManifest.xml file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.name.tournamentorganizer" android:installLocation="auto" android:versionName="1.1" android:versionCode="2">
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="27" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application android:allowBackup="true" android:label="#string/app_name" android:icon="#drawable/icon11" android:name="android.app.Application" android:debuggable="true">
<activity android:label="Create new tournament" android:theme="#android:style/Theme.Material.Light" android:name="md57e31db4bba5ea713128b60ee6f3868c2.createNewTournament" />
<activity android:label="Tournament Organizer" android:theme="#android:style/Theme.Material.Light" android:name="md57e31db4bba5ea713128b60ee6f3868c2.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:label="Add new players" android:theme="#android:style/Theme.Material.Light" android:name="md5a2089f5b800658a06dd2a11fca5a1f83.addNewPlayers" />
<activity android:label="addGoalScorer" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.addGoalScorer" />
<activity android:label="All fixtures and results" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.allFixturesAndResults" />
<activity android:label="Players database" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.allPlayersActivity" />
<activity android:label="knockout4Players" android:name="md54d075dbf8b437fae408fa9e57e2203ba.knockout4Players" />
<activity android:label="League" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.leagueType" />
<activity android:label="My tournaments" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.myTournaments" />
<activity android:label="About" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.settings" />
<activity android:label="Player Info" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.stats" />
<activity android:label="table" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.table" />
<activity android:label="Top scorers" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.topScorerActivity" />
<activity android:label="Winners" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.winnersActivity" />
<activity android:label="winnersAllTimeActivity" android:theme="#android:style/Theme.Material.Light" android:name="md54d075dbf8b437fae408fa9e57e2203ba.winnersAllTimeActivity" />
<provider android:name="mono.MonoRuntimeProvider" android:exported="false" android:initOrder="2147483647" android:authorities="com.name.tournamentorganizer.mono.MonoRuntimeProvider.__mono_init__" />
<!--suppress ExportedReceiver-->
<receiver android:name="mono.android.Seppuku">
<intent-filter>
<action android:name="mono.android.intent.action.SEPPUKU" />
<category android:name="mono.android.intent.category.SEPPUKU.com.name.tournamentorganizer" />
</intent-filter>
</receiver>
<meta-data android:name="android.support.VERSION" android:value="25.4.0" />
</application>
</manifest>
Edit2:
I have app version with and without ads. The one without ads does not have this issue. The one with ads does have issue so the ads are problem somehow. I am using startapp ads.
you don't probably use the [Activity] code adornment
[Activity]
internal class YourActivity: Activity {}
If all your activities have
[Activity(Theme = "theme", Label = "name", MainLauncher = true)]
the MainLauncher argument set to true you will run into trouble.
The Activity annotation is used by Xamarin to configure/generate the AndroidManifest.xml
Have you included a MainApplication class, also tagged with the [Application] attribute? Looking at your manifest I am surprised to see the line
<application android:allowBackup="true" android:label="#string/app_name" android:icon="#drawable/icon11" android:name="android.app.Application" android:debuggable="true">
with android:name="android.app.Application". I would expect to see something with an md5 hash (i.e. md5xxx.MainApplication - or whatever the name of your Application class is)
A Clean and Rebuild maybe necessary after changing your application class

How to add nested context menu - visual studio addin

I created the extension for Visual Studio 2015 which looks this
But i want to place all the four menus in a category say My Group. Which should like this.
My Group [On click of this the rest of submenus shoud come same as shown in the image]
menu one
menu two
My vsct file looks like this
<Commands package="package">
<Groups>
<Group guid="PackageCmdSet" id="MenuGroup" priority="0x0300">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_ITEMNODE"/>
</Group>
<Group guid="ClassPackageCmdSet" id="ProjectMenuGroup" priority="0x0400">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_PROJNODE"/>
</Group>
</Groups>
and i have buttons like this
<Buttons>
<Button guid="PackageCmdSet" id="BranchModelClassId" priority="0x0100" type="Button" >
<Parent guid="PackageCmdSet" id="MenuGroup" />
<Icon guid="guidImages" id="bmpPic1" />
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>Test</CommandName>
<ButtonText>Test</ButtonText>
</Strings>
</Button>
How to created a nested menu which i shouwn in the second image ?
Please help me on this.
I finally figured out the way. The change has to be done in the vsct file.
Add menus first inside the Commands
<Menus>
<Menu guid="PackageCmdSet" id="MainMenu" priority="0x0100" type="Menu">
<Parent guid="PackageCmdSet" id="MenuGroup" />
<Strings>
<ButtonText>Nested Menu</ButtonText>
</Strings>
</Menu>
<Menus>
Then add groups
<Groups>
<Group guid="PackageCmdSet" id="MenuGroup" priority="0x0200">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_ITEMNODE"/>
</Group>
<Group guid="PackageCmdSet" id="CommandsMenuGruop" priority="0x0300">
<Parent guid="PackageCmdSet" id="MainMenu"/>
</Group>
<Groups>
The button should be like this
<Buttons>
<Button guid="PackageCmdSet" id="ClassId" priority="0x0100" type="Button">
<Parent guid="PackageCmdSet" id="CommandsMenuGruop" />
<Icon guid="guidImages" id="bmpPic1" />
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>Command</CommandName>
<ButtonText>Item 1</ButtonText>
</Strings>
</Button>
<Buttons>

Not able to remove menu items as per roles in asp.net

I have
Web.sitemap like this :
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="" description="">
<siteMapNode url="~/Home.aspx" title="Home" description=" this is the home page" />
<siteMapNode url="~/ProjectList.aspx" title="Project List" description="Approved projects" />
<siteMapNode url="" title="Project Choices" description="">
<siteMapNode url="~/StudentChoices.aspx" title="Student Project Choices" description="" />
<siteMapNode url="~/StaffChoices.aspx" title="Supervisor Project Choices" description="" />
</siteMapNode>
<siteMapNode url="~/AllocationList.aspx" title="Project Allocation List" description="" />
<siteMapNode url="" title="Submit Proposal" description="" >
<siteMapNode url="~/submit.aspx" title="New Proposal" description="new proposal" />
<siteMapNode url="~/reSubmit.aspx" title="Re-Submit Proposal" description="re submit proposal"/>
</siteMapNode>
<siteMapNode url="~/StaffRecords.aspx" title="Staff Records" description="" >
<siteMapNode url="~/addStaff.aspx" title="Add new Staff" description="" />
</siteMapNode>
<siteMapNode url="~/StudentRecords.aspx" title="Student Records" description="" />
<siteMapNode url="~/Administration.aspx" title="Administration" description="" />
</siteMapNode>
</siteMap>
I used this sitemap for creating menu items : like following :
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal"
BackColor="#33CCFF" Font-Overline="False" DataSourceID="SiteMapDataSource1"
Font-Size="Larger" ForeColor="Black" ItemWrap="True" StaticDisplayLevels="2"
StaticSubMenuIndent="60px" Width="100%" OnMenuItemDataBound="Menu1_MenuItemDataBound">
<DynamicHoverStyle BackColor="#9999FF" ForeColor="Black" />
<DynamicMenuItemStyle BackColor="#0099FF" ForeColor="Black" />
<DynamicMenuStyle BackColor="#0099FF" />
<DynamicSelectedStyle BackColor="#0099FF" ForeColor="Black" />
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
on code be-hide i wrote following things :
protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
{
//string role = Session["Roles"].ToString();
string AdminRole = ConfigurationManager.AppSettings["AdminRole"];
string StaffRole = ConfigurationManager.AppSettings["StaffRole"];
string StudentRole = ConfigurationManager.AppSettings["StudentRole"];
if (StaffRole == "Staff")
{
if (e.Item.Text == "Project Choices" ||
e.Item.Text == "Staff Records" ||
e.Item.Text == "Student Records")
{
Menu1.Items.Remove(e.Item);
}
}
}
and web config like this
<appSettings>
<add key="AdminRole" value="Admin"/>
<add key="StaffRole" value="Staff"/>
<add key="StudentRole" value="Student"/>
</appSettings>
but I am still able to see those menus, I am not able find out why it's not removing, Can anyone tell me why? Show me sample code.
The siteMapNode already provide an attribute called roles. This attribute hold the roles that can access that area of the site.
For exemple, the Project list should looks like:
<siteMapNode url="~/ProjectList.aspx"
title="Project List"
description="Approved projects"
roles="AdminRole"/>
Theres a Security trimming that in conjuction with ASP.NET Membership can manage the access based on user roles.
You should take a look here: ASP.NET Site-Map Security Trimming
The easiest way to use a SiteMapProvider is to configure with SecurityTrimmingEnabled = true.
Add this under Web.Config file
<siteMap enabled="true" defaultProvider ="AspNetXmlSiteMapProvider" >
<providers>
<clear/>
<add siteMapFile="Web.sitemap" name="AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true" />
</providers>
</siteMap>
try to add the roles to the site map like this
<siteMapNode url="~/StaffRecords.aspx" title="Staff Records" description="" roles="StaffRole">
<siteMapNode url="~/addStaff.aspx" title="Add new Staff" description="" />
</siteMapNode>

Upgrade from ASP.net 3.5 to 4.0 Results in Web.Sitemap Problems

I use the web.sitemap of my ASP.net application to help build my navigation links. This way if my navigation changes, I update the web.sitemap, and it builds my navigation automatically. However since upgrading from ASP.net 3.5 to 4.0 I'm having problems related to my web.sitemap file. After upgrading to ASP.net 4.0 the links generated from my web.sitemap sometimes have strange characters inserted after the domain name (link broken on purpose because my limit is 2):
http //www.cheatsheetwarroom.com/(A(jUhJqoX4zAEkAAAAN2VlZTM2N2MtOWU5Mi00OWUyLTllZTUtMTY4MDY3ZGM2MTM2hMR-oHFFNS-DvXxMDadonaHu8pk1))/fantasy-football/nfl/free/rankings/offense/running-backs.aspx
You can see this by hovering over links on my Sitemap page (if its broken while you happen to view it).
The problem caused by this is that the following method (which takes in the url of a sitemap node as its parameter) begins to return NULL for any nodes throughout my application, even if I point to nodes that I know are in my web.sitemap file:
SiteMapNode myNode = SiteMap.Provider.FindSiteMapNode("~/fantasy-football/nfl/free/rankings/player-rankings.aspx");
This is presumably because the funky urls generated by the web.sitemap no longer match the explicit nodes I'm looking for. Since many of my menu controls are based on comparing the current page to nodes in the web.sitemap file, much of my navigation breaks. When reverting back to ASP.net 3.5, everything works again.
I found this suggested solution on Stack Overflow which suggests the problem is related to 'cookieless' mode. However, as you can see in my web.config below I'm forcing the use of cookies. So, either the suggested fix does not entirely work or I'm not correctly forcing the use of cookies. I should note that updating the web.config file (in any form or fashion) does sometimes momentarily fix the problem, only to have it surface again.
My web.config
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<!-- Note Custom CSWR Section -->
<configSections>
<section name="cheatSheetWarRoom" type="BP.CheatSheetWarRoom.CheatSheetWarRoomSection"/>
</configSections>
<!--Custom Section-->
<cheatSheetWarRoom defaultConnectionStringName="LocalSqlServer" enableAdvertisements="true" applicationState="prod">
<contactForm mailTo="admin#cheatsheetwarroom.com" mailCC="bperniciaro#gmail.com"/>
<sheets pageSize="25" providerType="BP.CheatSheetWarRoom.DAL.SqlClient.SqlSheetsProvider" enableCaching="true" cacheDuration="300" defaultSportCode="FOO" defaultQBsPerSheet="35" defaultRBsPerSheet="50" defaultWRsPerSheet="50" defaultTEsPerSheet="35" defaultKsPerSheet="32" defaultDEFsPerSheet="32"/>
</cheatSheetWarRoom>
<!--Point to external connection string-->
<connectionStrings configSource="configuration\connstrings\ConnStringsProd.config"/>
<!--This ensures this section isn't read by child apps-->
<location path="." inheritInChildApplications="false">
<system.web>
<healthMonitoring enabled="true">
<eventMappings>
<clear/>
<!-- Log ALL error events -->
<add name="All Errors" type="System.Web.Management.WebBaseErrorEvent" startEventCode="0" endEventCode="2147483647"/>
<!-- Log application startup/shutdown events -->
<!--<add name="Application Events" type="System.Web.Management.WebApplicationLifetimeEvent" startEventCode="0" endEventCode="2147483647"/>-->
</eventMappings>
<providers>
<clear/>
<!-- Provide any customized SqlWebEventProvider information here (such as a different connection string name value -->
<add connectionStringName="LocalSqlServer" maxEventDetailsLength="1073741823" buffer="false" name="SqlWebEventProvider" type="System.Web.Management.SqlWebEventProvider"/>
</providers>
<rules>
<clear/>
<add name="All Errors Default" eventName="All Errors" provider="SqlWebEventProvider" profile="Default" minInstances="1" maxLimit="Infinite" minInterval="00:00:00" custom=""/>
<!--<add name="Application Events Default" eventName="Application Events" provider="SqlWebEventProvider" profile="Default" minInstances="1" maxLimit="Infinite" minInterval="00:00:00" custom=""/>-->
</rules>
</healthMonitoring>
<!--Session Timeout-->
<sessionState timeout="60"/>
<!-- Autentication -->
<authentication mode="Forms">
<forms name="CSWRFORMAUTH" protection="All" path="/" loginUrl="~/error/AccessDenied.aspx" timeout="2592000" cookieless="UseCookies"/>
</authentication>
<!-- Roles -->
<roleManager enabled="true"/>
<!--Membership-->
<membership defaultProvider="CSWR_MembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<add name="CSWR_MembershipProvider" connectionStringName="LocalSqlServer" applicationName="/" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="true" passwordFormat="Encrypted" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</membership>
<!--Anonymous Users-->
<anonymousIdentification cookieless="UseCookies" enabled="true"/>
<!--Profile Info-->
<profile defaultProvider="CSWR_ProfileProvider">
<providers>
<add name="CSWR_ProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
<properties>
<add name="FirstName" type="String"/>
<add name="FavoriteTeam" type="String"/>
<add name="EmailNotifications" type="Bool" defaultValue="true"/>
<group name="SiteSettings">
<add name="LastFootballCheatSheetID" type="Integer"/>
<add name="LastRacingCheatSheetID" type="Integer"/>
<add name="FiguredOutReordering" type="Boolean" defaultValue="false"/>
</group>
</properties>
</profile>
<!-- Keys for encrypting and decrypting passwords, generated at the website www.aspnetresources.com/tools/keycreator.aspx -->
<machineKey validationKey="B8C7F65D22B69591SDFSDFSDF68331064D46D3B43F7DB71F6AA6EE854475E10B92C030D7D41D75B3AB50F1B7B0F85126E68FFFE1F0114B825E6DD34D284D10" decryptionKey="3B168CB07DFD5F5FB7EAFDSDFDSSDF8BD41ABFB37D4537" validation="SHA1"/>
<!-- Custom Error Pages -->
<customErrors mode="Off" defaultRedirect="~/Error/Error.aspx">
<error statusCode="408" redirect="~/Error/Error.aspx?code=408"/>
<error statusCode="505" redirect="~/Error/Error.aspx?code=505"/>
</customErrors>
<!--Sitemap-->
<siteMap defaultProvider="CSWR_SiteMapProvider" enabled="true">
<providers>
<add name="CSWR_SiteMapProvider" type="System.Web.XmlSiteMapProvider" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
</providers>
</siteMap>
<!-- Pages -->
<pages theme="Web20" masterPageFile="~/MasterPages/Web20Master/Frame.master">
<controls>
<add tagPrefix="captcha" namespace="WebControlCaptcha" assembly="WebControlCaptcha"/>
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
<add tagPrefix="cswr" src="~/usercontrols/HoverImage.ascx" tagName="HoverImage"/>
<add tagPrefix="cswr" src="~/usercontrols/SEOPager.ascx" tagName="SEOPager"/>
<add tagPrefix="cswr" src="~/usercontrols/UserProfile.ascx" tagName="UserProfile"/>
<add tagPrefix="cswr" src="~/usercontrols/AdGenerator.aspx" tagName="AdGenerator"/>
<add tagPrefix="cswr" src="~/usercontrols/Football/PlayerRankingItemTemplate.aspx" tagName="PlayerRankingItemTemplate"/>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<compilation debug="false" targetFramework="4.0" />
<!--<httpHandlers>
<add verb="GET" path="CaptchaImage.aspx" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha"/>
</httpHandlers>-->
</system.web>
</location>
<location path="EditProfile.aspx">
<system.web>
<authorization>
<allow roles="Member"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="admin#CheatSheetWarRoom.com">
<network defaultCredentials="true" host="localhost" port="25"/>
</smtp>
</mailSettings>
</system.net>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<handlers>
<add name ="CaptchaImage" verb="GET" path="CaptchaImage.aspx" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha"/>
</handlers>
</system.webServer>
</configuration>
My web.sitemap
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/default.aspx" title="Fantasy Cheat Sheets" description="Create customized fantasy draft cheat sheets for various fantasy sports including NFL football and NASCAR racing, or free.">
<siteMapNode url="~/register.aspx" title="Register" description="Register to unlock the full power of CheatSheetWarRoom." />
<siteMapNode url="~/sitemap.aspx" title="Sitemap" description="View all pages of our website provided as hyperlinks for easy navigation." />
<siteMapNode url="~/faq.aspx" title="FAQ" description="Get answers to frequently asked questions." />
<siteMapNode url="~/about.aspx" title="About" description="Read about what drove the creation of our cheat sheet creation tools." />
<siteMapNode url="~/contact.aspx" title="Contact" description="Contact us with any queries or suggestions you may have." />
<siteMapNode url="~/passwordrecovery.aspx" title="Password Recovery" description="If you've forgot your password, validate yourself and we'll sent it to you." />
<siteMapNode url="~/editprofile.aspx" title="Edit Profile" description="Edit your personal profile to keep your personal information current." />
<siteMapNode url="~/admin/Users/UserStats.aspx?" title="Admin" roles="Administrator" description="An entry point into the administration menu." />
<!-- **************** -->
<!-- Fantasy Football -->
<!-- **************** -->
<siteMapNode url="/FantasyFootball" title="Fantasy Football" description="These pages are relevant to fantasy football." roles="*" link="false">
<!--Fantasy Football Landing Page-->
<siteMapNode url="~/fantasy-football/nfl/cheat-sheets.aspx" title="Fantasy Football Cheat Sheets" description="Prepare for your 2011 NFL fantasy football draft by creating customized fantasy football cheat sheets, for free."></siteMapNode>
<!--Fantasy Football Help-->
<siteMapNode url="~/fantasy-football/nfl/cheat-sheet-help.aspx" title="Football Cheat Sheet Help" description="Explore all features for creating fantasy football cheat sheets."/>
<siteMapNode url="~/fantasy-football/nfl/trophies/cheap-trophies.aspx" title="Cheap Fantasy Football Trophies" description="These cheap fantasy football trophies are of the highest quality."></siteMapNode>
<siteMapNode url="~/fantasy-football/nfl/trophies/funny-trophies.aspx" title="Funny Fantasy Football Trophies" description="Add a comedic touch to your league with a funny fantasy football trophy."></siteMapNode>
<!--Fantasy Football Cheat Sheet Creation-->
<siteMapNode url="/FantasyFootballCreateSheetCreation" title="Fantasy Football Cheat Sheet Creation" description="The creation of cheat sheets." roles="*" link="false">
<siteMapNode url="~/fantasy-football/nfl/create/custom-sheet.aspx" title="Custom Fantasy Football Cheat Sheet" description="Use this free, custom fantasy football cheat sheet to easily create your NFL fantasy player rankings using drag and drop."></siteMapNode>
<siteMapNode url="~/fantasy-football/nfl/create/editsheet.aspx" title="Edit Fantasy Football Cheat Sheet" showNode="false"></siteMapNode>
<siteMapNode url="~/fantasy-football/nfl/create/newsheet.aspx" title="New Fantasy Football Cheat Sheet"></siteMapNode>
<siteMapNode url="~/fantasy-football/nfl/create/managesheets.aspx" title="Manage Fantasy Football Cheat Sheet"></siteMapNode>
<siteMapNode url="~/fantasy-football/nfl/create/configureprint.aspx" title="Configure Printable Fantasy Football Cheat Sheet" roles="Member, SupplementalSource, Administrator"></siteMapNode>
</siteMapNode> <!-- Close Fantasy Football Cheat Sheet Creation -->
<!-- Fantasy Football Free -->
<siteMapNode url="/FantasyFootballFree" title="Free Fantasy Football Resources" roles="*" link="false">
<!-- Fantasy Football (Offensive) Player Rankings-->
<siteMapNode url="~/fantasy-football/nfl/free/rankings/player-rankings.aspx" roles="*" title="2011 NFL Player Rankings">
<siteMapNode url="/FantasyFootballFreeRankingsOffense" title="Offensive Positions" link="false" roles="*">
<siteMapNode url="~/fantasy-football/nfl/free/rankings/offense/quarterbacks.aspx" title="Quarterback Rankings" description="View our free quarterback rankings in preparation for your 2011 fantasy football draft." />
<siteMapNode url="~/fantasy-football/nfl/free/rankings/offense/running-backs.aspx" title="Running Back Rankings" description="View our free running back rankings in preparation for your 2011 fantasy football draft." />
<siteMapNode url="~/fantasy-football/nfl/free/rankings/offense/wide-receivers.aspx" title="Wide Receiver Rankings" description="View our free wide receiver rankings in preparation for your 2011 fantasy football draft." />
<siteMapNode url="~/fantasy-football/nfl/free/rankings/offense/tight-ends.aspx" title="Tight End Rankings" description="View our free tight end rankings in preparation for your 2011 fantasy football draft." />
<siteMapNode url="~/fantasy-football/nfl/free/rankings/offense/kickers.aspx" title="Kicker Rankings" description="View our free kicker rankings in preparation for your 2011 fantasy football draft." />
<siteMapNode url="~/fantasy-football/nfl/free/rankings/offense/defenses.aspx" title="Defense Rankings" description="View our free defense rankings in preparation for your 2011 fantasy football draft." />
</siteMapNode>
</siteMapNode> <!-- Close Fantasy Football Player Rankings -->
<!-- Printable Fantasy Football Cheat Sheets-->
<siteMapNode url="~/fantasy-football/nfl/free/printable/cheat-sheets.aspx" title="Printable Fantasy Football Cheat Sheets" roles="*">
<siteMapNode url="/FantasyFootballFreePrintableCheatSheetsOffense" title="Offensive Positions" link="false" roles="*">
<!--All-in-One-->
<siteMapNode url="~/fantasy-football/nfl/free/printable/offense/cheat-sheet-with-roster.aspx" title="Printable Fantasy Football Cheat Sheet With Roster" roles="*"/>
<!--By Position-->
<siteMapNode url="~/fantasy-football/nfl/free/printable/offense/quarterbacks-cheat-sheet.aspx" title="Printable Quarterbacks Cheat Sheet" roles="*"/>
<siteMapNode url="~/fantasy-football/nfl/free/printable/offense/running-backs-cheat-sheet.aspx" title="Printable Running Backs Cheat Sheet" roles="*"/>
<siteMapNode url="~/fantasy-football/nfl/free/printable/offense/wide-receivers-cheat-sheet.aspx" title="Printable Wide Receivers Cheat Sheet" roles="*"/>
<siteMapNode url="~/fantasy-football/nfl/free/printable/offense/tight-ends-cheat-sheet.aspx" title="Printable Tight Ends Cheat Sheet" roles="*"/>
<siteMapNode url="~/fantasy-football/nfl/free/printable/offense/kickers-cheat-sheet.aspx" title="Printable Kickers Cheat Sheet" roles="*"/>
<siteMapNode url="~/fantasy-football/nfl/free/printable/offense/defenses-cheat-sheet.aspx" title="Printable Defenses Cheat Sheet" roles="*"/>
</siteMapNode> <!-- Close Printable Fantasy Football Cheat Sheets OFFENSE -->
</siteMapNode> <!-- Close Printable Fantasy Football Cheat Sheets-->
<!-- Fantasy Football Links -->
<siteMapNode url="~/fantasy-football/nfl/free/links.aspx" title="Fantasy Football Links" description="This page contains links to various fantasy NFL football websites categorized by type." />
</siteMapNode> <!-- Close Printable Fantasy Football Free -->
</siteMapNode> <!-- Close Fantasy Football -->
<!-- ************** -->
<!-- Fantasy Racing -->
<!-- ************** -->
<siteMapNode url="/FantasyRacing" title="Fantasy Racing" description="These pages are relevant to fantasy racing." roles="*" link="false">
<!-- Fantasy Racing Landing Page -->
<siteMapNode url="~/fantasy-racing/nascar/cheat-sheets.aspx" title="Fantasy Racing Cheat Sheets" description="Prepare for your 2011 NASCAR fantasy racing draft by creating customized fantasy racing cheat sheets, for free."></siteMapNode>
<siteMapNode url="~/fantasy-racing/nascar/cheat-sheet-help.aspx" title="Racing Cheat Sheet Help" description="Explore all features for creating fantasy racing cheat sheets."/>
<!-- Fantasy Racing Cheat Sheet Creation -->
<siteMapNode url="/FantasyRacingCreateSheetCreation" title="Fantasy Racing Cheat Sheet Creation" description="The creation of cheat sheets." roles="*" link="false">
<siteMapNode url="~/fantasy-racing/nascar/create/custom-sheet.aspx" title="Custom Fantasy Racing Cheat Sheet" description="Use this free, custom fantasy racing cheat sheet to easily create your fantasy NASCAR driver rankings using drag and drop."></siteMapNode>
<siteMapNode url="~/fantasy-racing/nascar/create/editsheet.aspx" title="Edit Fantasy Racing Cheat Sheet" showNode="false"></siteMapNode>
<siteMapNode url="~/fantasy-racing/nascar/create/newsheet.aspx" title="New Fantasy Racing Cheat Sheet"></siteMapNode>
<siteMapNode url="~/fantasy-racing/nascar/create/managesheets.aspx" title="Manage Fantasy Racing Cheat Sheet"></siteMapNode>
</siteMapNode> <!-- Close Fantasy Racing Cheat Sheet Creation -->
<!-- Fantasy Racing Free -->
<siteMapNode url="/FantasyRacingFree" title="Free Fantasy Racing Resources" roles="*" link="false">
<!-- Links -->
<siteMapNode url="~/fantasy-racing/nascar/free/links.aspx" title="Fantasy Racing Links" description="This page contains links to various fantasy NASCAR racing websites categorized by type." />
<!--Fantasy NASCAR Driver Rankings-->
<siteMapNode url="~/fantasy-racing/nascar/free/rankings/drivers.aspx" title="2011 NASCAR Driver Rankings" description="Use this free, custom fantasy racing cheat sheet to easily create your fantasy NASCAR driver rankings using drag and drop." />
<!--Free Fantasy NASCAR Cheat Sheets-->
<siteMapNode url="~/fantasy-racing/nascar/free/printable/drivers-cheat-sheet.aspx" title="Free Printable Fantasy Racing Cheat Sheet" description="This free, printable fantasy racing cheat sheet includes all drivers for the 2011 fantasy NASCAR draft." />
</siteMapNode> <!-- Close Fantasy Racing Free -->
</siteMapNode> <!-- Close Fantasy Racing -->
<!-- Legal -->
<siteMapNode title="Legal" roles="*">
<siteMapNode url="~/Legal/Disclaimer.aspx" title="Disclaimer" description="Read our legal disclaimer to learn about who we are AND AREN'T affiliated with."/>
<siteMapNode url="~/Legal/PrivacyPolicy.aspx" title="Privacy Policy" description="Your privacy is important to us and we won't share this information."/>
<siteMapNode url="~/Legal/TermsOfService.aspx" title="Terms of Service" description="Our Terms of Service provide you with rules dictating how you can use our website."/>
</siteMapNode> <!--Close Legal-->
<!--Administrative-->
<siteMapNode url="/AdminMain" roles="Administrator" title="Admin" showNode="false">
<siteMapNode url="~/admin/summary.aspx" roles="Administrator" title="Stats" description="">
<!--Users-->
<siteMapNode title="Users" roles="Administrator" url="/Users" description="">
<siteMapNode url="~/admin/users/manageusers.aspx" roles="Administrator" title="Manage Users" description="" />
<siteMapNode url="~/admin/users/edituser.aspx" roles="Administrator" title="Edit User" description="" />
</siteMapNode>
<!--Football-->
<siteMapNode title="Football" roles="Administrator" url="/Football" description="">
<siteMapNode url="~/admin/sports/football/sheetsettings.aspx" roles="Administrator" title="Sheet Settings" description="" />
<!--Players-->
<siteMapNode title="Players" roles="Administrator" url="/FootballPlayers" description="">
<siteMapNode url="~/admin/sports/football/players/manageplayers.aspx" roles="Administrator" title="Manage Players" description="" />
<!--Stats-->
<siteMapNode title="Stats" url="/FootballStats" roles="Administrator" description="">
<siteMapNode url="~/admin/sports/football/players/stats/manageplayerseasonstats.aspx" roles="Administrator" title="Manage Player Season Stats" description="" />
<siteMapNode title="Import" roles="Administrator" description="">
<siteMapNode url="~/admin/sports/football/players/stats/import/importseasonstats.aspx" roles="Administrator" title="Import Season Stats" description="" />
<siteMapNode url="~/admin/sports/football/players/stats/import/mapplayerids.aspx" roles="Administrator" title="Map PlayerIDs" description="" />
</siteMapNode>
</siteMapNode>
</siteMapNode>
<!--Supplementals-->
<siteMapNode title="Supplementals" roles="Administrator" url="/FootballSupplementals" description="">
<siteMapNode roles="Administrator" url="~/admin/sports/football/supplementals/managesupplementalsheets.aspx" title="Manage Supplemental Sheets" description="" />
<siteMapNode roles="Administrator" url="~/admin/sports/football/supplementals/editsupplementalsheet.aspx" title="Edit Supplemental Sheet" description="" />
<siteMapNode roles="Administrator" url="~/admin/sports/football/supplementals/ranksupplementalplayers.aspx" title="Rank Supplemental Players" description="" />
<siteMapNode roles="Administrator" url="~/admin/sports/football/supplementals/managesupplementalsources.aspx" title="Manage Supplemental Sources" description="" />
<siteMapNode roles="Administrator" url="~/admin/sports/football/supplementals/scraperankings.aspx" title="Scrape Rankings" description="" />
</siteMapNode>
</siteMapNode>
<!--Racing-->
<siteMapNode title="Racing" roles="Administrator" url="/Racing" description="">
<siteMapNode url="~/admin/sports/racing/sheetsettings.aspx" roles="Administrator" title="Sheet Settings" description="" />
<!--Drivers-->
<siteMapNode title="Drivers" roles="Administrator" url="/RacingDrivers" description="">
<siteMapNode url="~/admin/sports/racing/drivers/managedrivers.aspx" roles="Administrator" title="Manage Drivers" description="" />
<!--Stats-->
<siteMapNode title="Stats" url="/RacingStats" roles="Administrator" description="">
<siteMapNode url="~/admin/sports/racing/drivers/stats/managedriverseasonstats.aspx" roles="Administrator" title="Manage Driver Season Stats" description="" />
</siteMapNode>
</siteMapNode>
<!--Supplementals-->
<siteMapNode title="Supplementals" roles="Administrator" url="/RacingSupplementals" description="">
<siteMapNode roles="Administrator" url="~/admin/sports/racing/supplementals/managesupplementalsheets.aspx" title="Manage Racing Supplemental Sheets" description="" />
<siteMapNode roles="Administrator" url="~/admin/sports/racing/supplementals/ranksupplementalplayers.aspx" title="Rank Supplemental Players" description="" />
<siteMapNode roles="Administrator" url="~/admin/sports/racing/supplementals/editsupplementalsheet.aspx" title="Edit Supplemental Sheet" description="" />
</siteMapNode>
</siteMapNode>
<!--Health-->
<siteMapNode title="Health" roles="Administrator" url="/Health" description="">
<siteMapNode roles="Administrator" url="~/admin/health/manageexceptions.aspx" title="Manage Exceptions" description="" />
</siteMapNode>
</siteMapNode>
</siteMapNode>
<siteMapNode title="Errors">
</siteMapNode>
</siteMapNode>
</siteMap>
I've been chasing around this problem for the greater part of a year so any help would be appreciated.
The problem seems to lie specifically with use of cookies for anonymousIdentification. This can be seen by the format of the string in Uri.
A(XXXX): This is the Anonymous-ID. It is used to identify the (anonymous) user accessing your application. Source
Your web.config does however seem to show that option disabled and set to UseCookies only.
You can also force session to use cookies.
<sessionState mode="InProc" cookieless="UseCookies" timeout="60" />
More Info: http://msdn.microsoft.com/en-us/library/h6bb9cz9.aspx

Categories

Resources