PDA

View Full Version : استفاده از یک دیتابیس با برنامه ویندوز و وب سایت



علی فتحی
شنبه 01 مهر 1402, 00:17 صبح
سلام یک دیتابیس روی سیستم دارم sql express اتچ کردم روی مننجمنت

حالا با برنامه ویندوزی .exe وصل میشه بد.ن مشکل ولی وقی که با asp.net وصل میشم این اخطار و میده
Server Error in '/' Application.Cannot open database "F:\GROH\DATA\DATA.MDF" requested by the login. The login failed.
Login failed for user 'NT AUTHORITY\SYSTEM'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Cannot open database "F:\GROH\DATA\DATA.MDF" requested by the login. The login failed.
Login failed for user 'NT AUTHORITY\SYSTEM'.

Source Error:



An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.



Stack Trace:

ولی وقتی برنامه ویندوزی و میبندم asp.net بدون مشکل اطلاعات و میخونه

لطفا راهنمایی فرمایید ایا راهی وجود داره با هردو روش بتونم روی دیتابیس کارکنم
؟؟
asp.net و با ای پی وصل میشم روی گوشی

ROSTAM2
شنبه 01 مهر 1402, 05:09 صبح
سلام.
به نظر میاد دیتابیس لوکال باشه اینجوریه