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 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
