Inti dari directory browsing ini :
<directoryBrowse enabled="true" />
Jadi cukup kayak gini aja :
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
CMIIW
Thanks,
Mohamad Iqbal
Microsoft Student Partner
{ <http://www.ciebal.web.id/> Blog | <http://www.facebook.com/ciebal>
Facebook | <http://twitter.com/ciebal> Twitter }
From: [email protected] [mailto:[email protected]] On Behalf Of
Airlangga Bhumintara Amitaba
Sent: Thursday, June 09, 2011 10:42 AM
To: [email protected]; [email protected]
Subject: [Mugi] setting web config
Ehm, agak masalah sama web config......
Awalnya kan seperti ini :
<configuration>
<appSettings/>
<connectionStrings>
<add name="Hubung_data" connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated
Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" strict="false" explicit="true"/>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
Standard banget kan ?
Terus supaya bisa directory browsing, saya tambahkan :
<configuration>
<appSettings/>
<connectionStrings>
<add name="Hubung_data" connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated
Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<!--
Ini penambahan
-->
<directoryBrowse enabled="true" />
<defaultDocument>
<files>
<clear />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="Default.aspx" />
<add value="index.php" />
<add value="index.html" />
<add value="index.pl" />
<add value="default.html" />
</files>
</defaultDocument>
Jadinya kacau.......malah http error 500 - file can not be found.
Jelas saya salah tempatkan setting web.config. Supaya bisa directory
browsing ditaruh mana ya ??????
Elang
--
This message has been scanned for viruses and
dangerous content by <http://www.mailscanner.info/> MailScanner, and is
believed to be clean.
_______________________________________________
To unsubscribe from this group, send an email to:
[email protected]
Get Free 5 GB mailbox Check this http://www.mugi.or.id
Powered by bisnismedia.com