| | |
site view disappears
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2007
Posts: 13
Reputation:
Solved Threads: 0
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
Web.sitemap
web.config
secure/web.config its in a map called secure with admin.apx
C# Syntax (Toggle Plain Text)
<?xml version="1.0" encoding="utf-8"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <location path="Secure/Admin" allowOverride="false"/> <system.web> <authorization> <allow roles="Administrators" /> <deny users="*" /> </authorization> </system.web> </configuration>
Web.sitemap
C# Syntax (Toggle Plain Text)
<?xml version="1.0" encoding="utf-8"?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"> <siteMapNode> <siteMapNode url="~/Default.aspx" title="Home" roles="*" /> <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>
web.config
C# Syntax (Toggle Plain Text)
<?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <appSettings/> <connectionStrings> <add name="MyComicsConnectionString" connectionString="Data Source=GARBAGEC-88A927\sqlexpress;Initial Catalog=MyComics;Integrated Security=True" providerName="System.Data.SqlClient"/> </connectionStrings> <system.web> <roleManager enabled="true" /> <pages theme="MyComics"/> <siteMap> <providers> <remove name ="AspNetXmlSiteMapProvider"/> <add name ="AspNetXmlSiteMapProvider" description="Default SiteMap provider." type="System.Web.XmlSiteMapProvider" siteMapFile="web.sitemap" securityTrimmingEnabled="true" /> </providers> </siteMap> <caching> <sqlCacheDependency enabled="true" pollTime="5000"> <databases> <add name="MyComics" connectionStringName="MyComicsConnectionString" /> </databases> </sqlCacheDependency> </caching> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation debug="true"/> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Forms" /> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> </system.web> </configuration>
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
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
•
•
Join Date: Sep 2007
Posts: 13
Reputation:
Solved Threads: 0
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>
<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>
•
•
•
•
Please Dha_King move your thread to ASP.NET forum to get fast help http://www.daniweb.com/forums/forum18.html
![]() |
Similar Threads
- picture viewer taken over (Windows 95 / 98 / Me)
- Image swap behaviour from Dreamweaver no longer works once uploaded (Site Layout and Usability)
- Press Release Websites - Please review? (Website Reviews)
Other Threads in the C# Forum
- Previous Thread: ConfusedMuchMor
- Next Thread: How to make a child form fix into a main form which panel alocated.
| Thread Tools | Search this Thread |
.net access algorithm alignment app array barchart bitmap box broadcast c# c#gridviewcolumn cast check checkbox client combobox communication control conversion csharp custom database datagrid datagridview dataset datatable datetime degrees development draganddrop drawing elevated encryption enum excel file focus form format forms function gdi+ hospitalmanagementsystem httpwebrequest image index input install java label list listbox localization login mandelbrot math messagebox mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox server sleep socket sql statistics stream string stringformatting sun table text textbox thread time timer update usercontrol validation visualstudio webbrowser whileloop windows winforms wpf xml






