PDA

View Full Version : ایراد خطا از 'MachineToApplication



mosi123
یک شنبه 09 خرداد 1389, 21:03 عصر
سلام
می خواستم بدانم علت این خطا چیست؟ و چطور قابل حل است.

ASP.NET runtime error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\Documents and Settings\Merrikh\My Documents\Downloads\Compressed\PicUpload -&- Show In Gridview\pic_up\web.config line 81)

Peyman.Gh
یک شنبه 09 خرداد 1389, 21:14 عصر
تگ <authentication mode="Forms"> در Web.Config را پاک کنید ببینید درست میشود !

mosi123
یک شنبه 09 خرداد 1389, 21:39 عصر
متاسفانه نه. خطای جدیدی به صورت زیر می دهد:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

hamedsabzian
یک شنبه 09 خرداد 1389, 21:58 عصر
مشکل از اتصال به پایگاه داده است.
ConnectionString رو چک کن.

mosi123
دوشنبه 10 خرداد 1389, 00:35 صبح
روش تنظیم conectionstring را بلد نیستم. آدرس فایل را قرار می دهم راهنماییم کنید.
با تشکر


http://barnamenevis.org/forum/attachment.php?attachmentid=50033&d=1275221220

shirin_sh1024
دوشنبه 10 خرداد 1389, 00:42 صبح
روش تنظیم conectionstring را بلد نیستم.

دوست عزیز شما اگه میخوای برنامه نویسی یاد بگیری اول از همه باید روش اتصال به پایگاه داده رو بلد باشی
اینجا رو ببین
http://connectionstrings.com/
اگه مشکلی داشتی بگو راهنمایی کنیم