PDA

نسخه کامل مشاهده نسخه کامل : ارور اجرا کردن سایت



karevan_boys
01-06-2009, 09:31
باسلام
من چند صفحه با asp طراحی کردم ولی متاسفانه این ارور را به من می دهد

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>
ممنون میشم اگه کمکم کنید

Far Va Har
03-06-2009, 13:20
پند دلیلیچند دلیل می تونه داشته باشه یکی اسنکه صفحه ی مورد نظری که شما دارید لود می کنید در اون آدرس اصلا وجود نداره
حالت دیگه البته وقتی برای من پیش میاد که دارم ASP.NET کار میکنم اون موقعی هست که Engine مربوط به سرور مجازی Visual Studio اسم پروژه رو هم در آدرس بار اضا فه میکنه مثال:

فرض کنیم اسم پروژه ی شما Test باشه آدرس درست اینه که شبیه به زیر باشه:


برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید

اما اگه Engine به ادرس بار اسم پروژه شما رو اضافه کنه ایطور میشه:


برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید

در این صورت شما باید در قسمت Solution Explorer در سمت راست ویژوال استودیو روی عنوان پروژه کلیک چپ بکنید و در قسمت Properties در سمت راست و پایین Virtual Path رو به شکل زیر تبدیل کنید:


برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید

در این حالت پروژه را دوبار Run کنید تا درست شود

----

حالت دوم که گفتم برای ASP.NET هست


موفق باشی