PDA

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



sg.programmer
دوشنبه 10 مرداد 1390, 23:50 عصر
سایتم قرار دو برنامه روش نصب بشه
یکی در /wwwroot/ و دیگری در /wwwroot/uploder/ که بصورت مجزا در دو برنامه قرار کار کنن
wwwroot/Default.aspx قرار کاربر با اون کار کنه و یک بخش مدیریتی
wwwroot/uploder/Default.aspx قرار مدیر برای مدیریت فایل و یکسری عملیات

آیا باید تکنیک خاصی برای این موضوع در تنظیمات Host بکار برد مثل Subdirectory یا Virtual...

dontspeak
سه شنبه 11 مرداد 1390, 00:10 صبح
چیز خاصی نیست. مگر اینکه بخواهید دسترسی به اون پوشه رو فقط برای مدیر محدود کنید که اونم به وسیله asp.net Configoration امکانپذیره

sg.programmer
سه شنبه 11 مرداد 1390, 05:11 صبح
من زمانیکه برنامه داخل پوشه Uploder را صدا می زنم خطای زیر میده


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>

Saman Hashemi
سه شنبه 11 مرداد 1390, 08:14 صبح
شما برنامه هارو جدا جدا نوشتين؟يعني در قالب يك پروژه نيستند؟

sg.programmer
سه شنبه 11 مرداد 1390, 10:31 صبح
بله دو پروژه مجزا هستند

Saman Hashemi
سه شنبه 11 مرداد 1390, 10:41 صبح
در قالب يك پروژه كنيد ببينيد بازهم ايراد ميگيره؟