- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我使用我的 ASP.net 应用程序的 web.sitemap 来帮助构建我的导航链接。这样,如果我的导航发生变化,我会更新 web.sitemap,它会自动构建我的导航。但是,自从从 ASP.net 3.5 升级到 4.0 后,我遇到了与我的 web.sitemap 文件相关的问题。升级到 ASP.net 4.0 后,从我的 web.sitemap 生成的链接有时会在域名后插入奇怪的字符(链接故意断开,因为我的限制是 2):
http//www.cheatsheetwarroom.com/(A(jUhJqoX4zAEkAAAAN2VlZTM2N2MtOWU5Mi00OWUyLTllZTUtMTY4MDY3ZGM2MTM2hMR-oHFFNS-DvXxMDadonaHu8pk1))/fantasy-football/nfl/free/rankings/offense/running-backs.aspx
您可以通过将鼠标悬停在我的 Sitemap page 上的链接上来查看它(如果您碰巧看到它时它坏了)。
由此引起的问题是以下方法(将站点地图节点的 url 作为其参数)开始为我的应用程序中的任何节点返回 NULL,即使我指向我知道的节点在我的 web.sitemap 文件中:
SiteMapNode myNode = SiteMap.Provider.FindSiteMapNode("~/fantasy-football/nfl/free/rankings/player-rankings.aspx");
这大概是因为 web.sitemap 生成的时髦 url 不再匹配我正在寻找的显式节点。由于我的许多菜单控件都基于将当前页面与 web.sitemap 文件中的节点进行比较,因此我的大部分导航中断。当恢复到 ASP.net 3.5 时,一切都会恢复正常。
我找到了 this suggested solution在 Stack Overflow 上,这表明问题与“无 cookie”模式有关。但是,正如您在下面的 web.config 中看到的那样,我强制使用 cookie。因此,要么建议的修复不完全有效,要么我没有正确地强制使用 cookie。我应该注意,更新 web.config 文件(以任何形式或方式)有时确实可以暂时解决问题,只是让它再次浮出水面。
我的 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>
我的 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>
我在一年的大部分时间里都在追寻这个问题,所以我们将不胜感激。
最佳答案
问题似乎特别在于 anonymousIdentification
使用 cookie。从Uri中字符串的格式可以看出这一点。
A(XXXX):这是匿名 ID。它用于识别访问您的应用程序的(匿名)用户。 Source
不过,您的 web.config
似乎确实显示该选项已禁用并仅设置为 UseCookies
。
您还可以强制 session 使用 cookie。
<sessionState mode="InProc" cookieless="UseCookies" timeout="60" />
关于c# - 从 ASP.net 3.5 升级到 4.0 导致 Web.Sitemap 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8624929/
我有一个几乎可以构建的Maven / Grails应用,但在web.xml上找不到[my-app]\webapp\WEB-INF\web.xml。但是目录结构像往常一样包含web-app文件夹,而不是
正如我在标题中提到的:我想知道 web-service 和 web-socket 之间的区别?我们什么时候使用每一个? 谢谢! 最佳答案 一个web service是一个响应客户端 SOAP/REST
让我们看一个示例场景: 客户端打开一个网站并找到他从文本框中输入的两个数字的总和。然后单击“添加”按钮。两个参数通过 HTTP GET 发送到服务器,在服务器上写入 PHP 代码以添加数字,结果为回声
我知道这是一个老问题,肯定已经被回答了数百次,但我还无法找到令人满意的答案。 我正在创建一个应用程序,其他应用程序(移动/网络)将使用该应用程序来获取数据。现在我有两个选择: 将我的应用程序创建为简单
通过 Web 作业部署新功能有 3 种方法: 创建一个新的 Web 应用,并部署一个包含该函数的 Web 作业。 向现有 Web 作业添加一项新函数(这样您现在在一个 Web 作业中就拥有了多个函数)
我收到来自网络场景的通知,上面写着“问题”和“确定”。我想在问题发生时包含网络响应的内容。我不担心标题值,只担心网页的内容. 这是我可以在通知设置中引用的变量吗? 最佳答案 不幸的是 zabbix 不
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引起辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the he
嗨,这是一个理论问题,但我真的无法弄清楚 Web 应用程序、基于 Web 的应用程序和基于云的应用程序之间的区别。这个你能帮我吗。 最佳答案 @Matt 是对的 - 这真的无关紧要,但是,为了清楚起见
我正在尝试使用多个 Web 服务,这些服务在它们的 wsdl 中重新定义了一些相同的公共(public)类。我目前在网站中引用了它们,但我想转换为 Web 应用程序。 由于一些相同的类是从多个 Web
一个。我必须考虑哪些事项?b.当前应用程序正在执行多个存储过程。如果我创建等效的方法来执行这些过程,会有什么风险或挑战。 最佳答案 在架构上,将网络应用程序转换为网络服务时必须考虑的一件事是,对方法和
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 5年前关闭。 Improve thi
网络 API 和网络服务之间有什么区别吗?或者它们是同一个吗? 最佳答案 网络服务通常提供 WSDL您可以从中自动创建客户端 stub 。 Web 服务基于 SOAP protocol 。ASP.NE
我已经获得了我需要的所有资源。我将 Web 服务放入应用程序服务环境中,然后将 NSG 连接到应用程序服务环境使用的子网。然后,我允许 VNET 内的应用程序与 Web 服务进行通信,但它无法正常工作
我已经获得了我需要的所有资源。我将 Web 服务放入应用程序服务环境中,然后将 NSG 连接到应用程序服务环境使用的子网。然后,我允许 VNET 内的应用程序与 Web 服务进行通信,但它无法正常工作
我正在使用 stub 将我的网络服务相关测试与实际网络服务隔离开来。 你/我应该如何合并测试以确保我制作的响应与实际的网络服务匹配(我无法控制它)? 我不想知道怎么做,而是何时何地? 我应该为测试数据
我在互联网上搜索了很多,但我仍然没有得到网络服务和网络 API 之间的明显区别?我在某处读到所有 Web 服务都是 API,但所有 API 都不是 Web 服务。如何? 我所知道的是两者都允许利用其他
假设我已经完成了使用 JavaEE 制作的 Web 应用程序。这个 Web 应用程序包含登录系统,但最后它是非常基本的 Web 应用程序。我使用的是 GlassFish 3.1.2.2。 我想知道一旦
我希望设计者能够打开与我相同的解决方案文件。这可以通过 Expressions Web 实现吗? 最佳答案 简短的回答是“不”;但这是一个非常常见的请求,我知道很多人都希望下一个版本(无论何时)对此有
我正在尝试在 CF10 中创建一个 Web 服务对象。我已验证它在 SoapUI 中按预期工作。但是,当我在 CF 中运行它时,我得到一个错误,它无法找到在 WSDL 的导入语句中导入的 XSD。这是
我的要求是开发一个 Web 服务,充当外部 Web 服务和客户端之间的中间人。 我知道,我可以为我的服务设计一个wsdl,然后将外部wsdl映射到代码中我的wsdl。我的问题是有一个开源 api/工具
我是一名优秀的程序员,十分优秀!