[ mii @ 05.01.2007. 16:28 ] @
Pozdrav svima Koristim access bazu za jednu apliakaciju po kojoj radim pretragu, i to mi sve fino radi na mom racunaru.E sad uradio sam sajt za jednu agenciju ,samo ne znam kako da prebacim aspx stranu na net i bazu??? na mome racunaru konekcija prema bazi je: OleDbConnection con1 = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\real-estate\\web\\remdb.mdb"); internet provajder nudi da imam odbc konekciju ali ja ne zelim jer nisam to koristio ,internet provajder nudi i mogucnost bez odbc tako da konekcioni string izgleda ovako (izdvojeno iz njihovog primjera): strConn = "Provider=Microsoft.Jet.OLEDB.4.0;data source=" + HttpContext.Current.Server.MapPath("sökväg\till\din\databas\db.mdb"); e sada meni su rekli da mogu u public_html folderu (gdje se nalaze ostale html stranice) da napravim folder sa imenom recimo BAZA i da u njega stavim access bazu remdb.mdb (baza gdje se nalaze moji podaci) i onda to izgleda ovako: strConn = "Provider=Microsoft.Jet.OLEDB.4.0;data source=" + HttpContext.Current.Server.MapPath("BAZA\remdb.mdb"); e sada kada pokrenem tu stranicu na netu daje odgovor: ************************************************************************************************************** Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration> Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration> ***************************************************************************************************************** tolko naucis o asp.net a ne znam stavit bazu na net:)) ,tako molim za pomoc jer je u pitanju neka glupost a meni je jako hitno!!! Pozdrav i Srecni Praznici:) |