الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

السماح للجهاز بتصفح asp كيف الحل ؟

مغلق
بدأه الشهاب الحارق في 20 فبراير 2003 · 4 رد · 946 مشاهدة · في قسم تكنولوجيا Microsoft .NET العام
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

تظهر لي مشكلة عند عرض صفحات aspx و أظن أنها تتكلم عن الـ security

هذه هي الرسالة

Server Error in '/MyASPApplication' Application.

--------------------------------------------------------------------------------

Access to the path "C:WINDOWSMicrosoft.NETFrameworkv1.0.3705Temporary ASP.NET Files" is denied.

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.UnauthorizedAccessException: Access to the path "C:WINDOWSMicrosoft.NETFrameworkv1.0.3705Temporary ASP.NET Files" is denied.

The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}ASPNET', which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the "{machinename}ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column

لكن من أين أقوم بإضافية اسم الجهاز للسماح بعرض الصفحة ؟

السلام عليكم

في المثال يتضح المقال

#2

السلام عليكم

هذه الرسالة برمتها يا أخوان يا خبراء العرب أين أنتم

Server Error in '/MyASPApplication' Application.

--------------------------------------------------------------------------------

Access to the path "C:WINDOWSMicrosoft.NETFrameworkv1.0.3705Temporary ASP.NET Files" is denied.

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.UnauthorizedAccessException: Access to the path "C:WINDOWSMicrosoft.NETFrameworkv1.0.3705Temporary ASP.NET Files" is denied.

The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}ASPNET', which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the "{machinename}ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column.

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:

[unauthorizedAccessException: Access to the path "C:WINDOWSMicrosoft.NETFrameworkv1.0.3705Temporary ASP.NET Files" is denied.]

System.IO.__Error.WinIOError(Int32 errorCode, String str) +393

System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +596

System.IO.Directory.CreateDirectory(String path) +195

System.Web.Compilation.PreservedAssemblyEntry.DoFirstTimeInit(HttpContext context)

System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContext context)

System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(HttpContext context, String virtualPath, Boolean fApplicationFile)

System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation()

System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound)

System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath()

System.Web.UI.TemplateParser.GetParserCacheItem()

System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser)

System.Web.HttpApplicationFactory.CompileApplication(HttpContext context)

System.Web.HttpApplicationFactory.Init(HttpContext context)

System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +155

System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +407

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288

في المثال يتضح المقال

#3

السلام عليكم..

شوف يا أخي.. جرب إحدى هاتين الطريقتين:

1)افتح مجلد

Microsoft .NET

الموجد عندك في إفتراضيا في مجلد الويندوز

مثلا أنا عندي المجلد موجود كالتالي:

Microsoft.NET\Framework\v1.1.4322

افتح ملف

ConfigWizards.exe

ثم افتح

ِAdjust .NET Security

بعد ذلك قم باضغط على

Next

بعد إختيار الإختيار الأول

إجعل المقياس على

Full Trust

على كل من

Local Internet

Computer

الطريقة الثانية

2)عليك ببرمجة ملف من الفيجول بيسك الإصدار السادس يقوم بتسجيل دخولك إذا كنت على شبكة محلية أو نحوه ثم قم بتسجيل هذا الملف.. بعد ذلك صمنه بالكود الخاص بالإي إس بي الخاص بك

الطريقة الثانية عملية أكثر ... لكن الطريقة الأولى تنفع

#4

اخي احتمال انك لم تنصب IIS اذهب الى لوحة التحكم ثم اظافة ازالة مكونات ويندوز ثم اختر اظافة IIS انتلانت انفرميشن سيرفس متضمنا WWW وورلد وايد ويب .

بعدها ضع يجب اصلاح مكتبه الدوت نت والتي تنصح مايكروسوفت بتنصيبها بعد اظافة IIS و WWW وذلك من خلال التالى.

ادخل السيدي الخامس من سيديات الفيجوال ستديو دوت نت الذى يحتوى على الكمبوننت ثم تجاهل الرسالة التي تطلب ادخال السيدي الاول .

واذهب الى ابدا ثم تشغيل وانسخ هذا السطر والصقه ثم اكبس على موافق

F:\dotNetFramework\dotnetfx.exe /t:c:\temp /c:"msiexec.exe /fvecms c:\temp\netfx.msi"

وبإذن الله يزبط معك

#5

معذره اخي طبعا مكان F:\ تكتب الحرف المناسب لمشغل الاقراص فى جهازك

هذا الموضوع مغلق.

مواضيع مشابهة