إن نشر موقع الويب الخاص بي على قرصي المحلي يسبب استثناءات لإظهار مسارات بما في ذلك القرص المحلي الخاص بي

StackOverflow https://stackoverflow.com/questions/2542205

  •  23-09-2019
  •  | 
  •  

سؤال

لقد نشرت موقع الويب الخاص بي عدة مرات. لكن لم أفكر في هذا حتى واجهت هذه القضية. لذلك قررت نشر مشروع WAP الخاص بي إلى مجلد محلي على محرك الأقراص C أولاً. ثم استخدم FTP لتحميله على مضيف مشترك على DiscountAsp.net. لقد لاحظت خلال وقت التشغيل أن تتبع المكدس كان يشير إلى أن المجلد المحلي لا يزال يخطئ.

أي شخص يعرف ما هي إعدادات التكوين التي تتأثر عند النشر؟ من الواضح أن هناك شيئًا ما لا يزال يشير إلى محرك C المحلي ، وقد بحثت في الحل بالكامل ولا أرى السبب.

إليك خطأ وقت التشغيل الذي أحصل عليه عندما يحاول الكود الخاص بي تشغيله في خادم الويب الخاص بـ DervanceAsp.net

 Cannot write into the public directory - check permissions
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: ScrewTurn.Wiki.PluginFramework.InvalidConfigurationException: Cannot write into the public directory - check permissions

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:

[InvalidConfigurationException: Cannot write into the public directory - check permissions]
   ScrewTurn.Wiki.SettingsStorageProvider.Init(IHostV30 host, String config) in C:\www\Wiki\Screwturn3_0_2_509\Core\SettingsStorageProvider.cs:90
   ScrewTurn.Wiki.StartupTools.Startup() in C:\www\Wiki\Screwturn3_0_2_509\Core\StartupTools.cs:69
   ScrewTurn.Wiki.Global.Application_BeginRequest(Object sender, EventArgs e) in C:\www\Wiki\Screwturn3_0_2_509\WebApplication\Global.asax.cs:29
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

يقول Discountasp إنها ليست مشكلة إذن ولكن من الواضح أنها كذلك.

هل كانت مفيدة؟

المحلول

ال .pdb الملف هو ما يشير إلى الدليل المحلي الخاص بك ، وهذا لا يعني أي شيء في الموقع ، هذه مشكلة غير ذات صلة. أينما تم تجميع المشروع الإعلان .pdb الملفات التي تم إنشاؤها ، هذه هي المسارات التي ستظهر في تتبع المكدس.

لا تؤثر إدخالات الدليل هذه على المكان الذي يتم فيه نشر التطبيق بالفعل ، فهو بشكل أساسي فقط حتى تتمكن من معرفة أين يوجد الفصل الخاطئ (ونأمل أن تتمكن من أن تذهب كمطور ".أوه نعم ، تلك الطبقة لعنة مرة أخرى"). إذا قمت بنشر المكدس ، فقد نتمكن من المساعدة ... ولكن حقيقة أن الدليل يشير إلى C:\ القيادة لا تقلق بشأنها ، وهذا أمر طبيعي تمامًا.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top