أقوم بتصميم موقع على ASP.NET2005 باستخدام C#
قمت بعمل قاعدة بيانات على الـACCESS وقمت بربطها باستخدام AccessDataSource وبعد ذلك قمت باستخدامها في أشياء مختلفة وصفحات مختلفة فقد استخدمتها في GridView و DataList و Details View وقد كانت جملة الربط في Source واللتي يضيفها Visual Studio تلقائيا (في إحدى الصفحات)هكذا:
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/gdata.mdb"
OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT [name], [city], [website], [adcomt], [comment], [email] FROM [users] WHERE ([prevent] = ?) ORDER BY [no] DESC">
<SelectParameters>
<asp:Parameter DefaultValue="false" Name="prevent" Type="Boolean" />
</SelectParameters>
</asp:AccessDataSource>والموقع يعمل بالشكل المطلوب
المشكلة أنني عندما رفعت الموقع على Server ظهر لي أن هناك مشكلة
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>
بعد البحث والتمحيص والسؤال والاستفسار من مزود خدمة الاستضافة على Server تبين أن السيرفر يدعم خدمة DSN أي Database Source Name
حيث أنه يجب علي أن أضع قاعدة البيانات في مجلد خاص تم تحديده من المستضيف ويمكنني أن أتصل بقاعدة البيانات من أي مكان في الموقع
كيف يمكنني أن أحول Connection من DataFile إلى DSN؟؟؟؟؟
أرجو المساعدة في أقرب وقت لانني بحاجة ماسة لذلك ولكم كل الشكر والتقدير والاحترام

