site view disappears

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 13
Reputation: Dha_King is an unknown quantity at this point 
Solved Threads: 0
Dha_King Dha_King is offline Offline
Newbie Poster

site view disappears

 
0
  #1
Dec 9th, 2007
when i use security trimming. i cant figure out whats wrong. Please help me =)

secure/web.config its in a map called secure with admin.apx
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  3. <location path="Secure/Admin" allowOverride="false"/>
  4. <system.web>
  5.  
  6.  
  7. <authorization>
  8. <allow roles="Administrators" />
  9. <deny users="*" />
  10. </authorization>
  11.  
  12.  
  13. </system.web>
  14. </configuration>


Web.sitemap

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
  3. <siteMapNode>
  4.  
  5. <siteMapNode url="~/Default.aspx" title="Home" roles="*" />
  6.  
  7. <siteMapNode url="~/HotPicks.aspx" title="HotPicks" roles="*" />
  8. <siteMapNode url="~/Events.aspx" title="Events" roles="*"/>
  9. <siteMapNode url="~/Forums.aspx" title="Forums" roles="*" />
  10. <siteMapNode url="~/FAQ.aspx" title="FAQ" roles="*" />
  11. <siteMapNode url="~/Secure/Admin.aspx" title="Admin" roles="Administrators" />
  12. </siteMapNode>
  13. </siteMap>

web.config
  1. <?xml version="1.0"?>
  2. <!--
  3. Note: As an alternative to hand editing this file you can use the
  4. web admin tool to configure settings for your application. Use
  5. the Website->Asp.Net Configuration option in Visual Studio.
  6. A full list of settings and comments can be found in
  7. machine.config.comments usually located in
  8. \Windows\Microsoft.Net\Framework\v2.x\Config
  9. -->
  10. <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  11. <appSettings/>
  12. <connectionStrings>
  13. <add name="MyComicsConnectionString" connectionString="Data Source=GARBAGEC-88A927\sqlexpress;Initial Catalog=MyComics;Integrated Security=True" providerName="System.Data.SqlClient"/>
  14. </connectionStrings>
  15. <system.web>
  16.  
  17.  
  18. <roleManager enabled="true" />
  19. <pages theme="MyComics"/>
  20.  
  21.  
  22. <siteMap>
  23. <providers>
  24. <remove name ="AspNetXmlSiteMapProvider"/>
  25. <add name ="AspNetXmlSiteMapProvider" description="Default SiteMap provider."
  26. type="System.Web.XmlSiteMapProvider" siteMapFile="web.sitemap"
  27. securityTrimmingEnabled="true" />
  28. </providers>
  29. </siteMap>
  30.  
  31.  
  32.  
  33.  
  34.  
  35. <caching>
  36. <sqlCacheDependency enabled="true" pollTime="5000">
  37. <databases>
  38. <add name="MyComics"
  39. connectionStringName="MyComicsConnectionString" />
  40. </databases>
  41. </sqlCacheDependency>
  42. </caching>
  43.  
  44.  
  45. <!--
  46. Set compilation debug="true" to insert debugging
  47. symbols into the compiled page. Because this
  48. affects performance, set this value to true only
  49. during development.
  50. -->
  51. <compilation debug="true"/>
  52. <!--
  53. The <authentication> section enables configuration
  54. of the security authentication mode used by
  55. ASP.NET to identify an incoming user.
  56. -->
  57. <authentication mode="Forms" />
  58. <!--
  59. The <customErrors> section enables configuration
  60. of what to do if/when an unhandled error occurs
  61. during the execution of a request. Specifically,
  62. it enables developers to configure html error pages
  63. to be displayed in place of a error stack trace.
  64.  
  65. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  66. <error statusCode="403" redirect="NoAccess.htm" />
  67. <error statusCode="404" redirect="FileNotFound.htm" />
  68. </customErrors>
  69. -->
  70. </system.web>
  71. </configuration>
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: site view disappears

 
0
  #2
Dec 9th, 2007
Please Dha_King move your thread to ASP.NET forum to get fast help http://www.daniweb.com/forums/forum18.html
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 13
Reputation: Dha_King is an unknown quantity at this point 
Solved Threads: 0
Dha_King Dha_King is offline Offline
Newbie Poster

Re: site view disappears

 
0
  #3
Dec 9th, 2007
i found out what the problem was, so if any mod or admin feels like it the can move och erase this tread.


<siteMapNode url="~/Default.aspx" title="Home" roles="*" /> the problem!!... "/"

<siteMapNode url="~/HotPicks.aspx" title="HotPicks" roles="*" />
<siteMapNode url="~/Events.aspx" title="Events" roles="*"/>
<siteMapNode url="~/Forums.aspx" title="Forums" roles="*" />
<siteMapNode url="~/FAQ.aspx" title="FAQ" roles="*" />
<siteMapNode url="~/Secure/Admin.aspx" title="Admin" roles="Administrators" />
</siteMapNode>
</siteMap>

Originally Posted by RamyMahrous View Post
Please Dha_King move your thread to ASP.NET forum to get fast help http://www.daniweb.com/forums/forum18.html
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC