PDA

View Full Version : سوال: پيام خطا Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies



ali_divsalar
شنبه 23 بهمن 1389, 13:30 عصر
سلام
در سروري كه سيستم رو نصب كردم موقع brows كردن پيام Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. Access is denied صادر ميشه.

در حاليكه فايلهاي dll مورد نياز هم در شاخه bin قرار داره
جالب اينجاست كه اين سيستم در جائي ديگه براحتي بالا مي آد و تا جائيكه من به خاطر دارم فايلهاي dll مربوطه رو هم در اون قرار ندادم

تو اينترنت هم گشتم نتيجه درستي نگرفتم .
كل محتواي صفحه مربوط به پيام خطا رو هم آوردم . اگه دوستان بتونند كمك كنند ممنون مي شم.

Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. Access 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.IO.FileLoadException: Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. Access is denied.

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.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.ReportViewer.Common' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Stack Trace:


[FileLoadException: Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. Access is denied.]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. Access is denied.]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory() +203
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
System.Web.Compilation.ApplicationBuildProvider.Ge tGlobalAsaxBuildResult(Boolean isPrecompiledApp) +227
System.Web.Compilation.BuildManager.CompileGlobalA sax() +52
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +337

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. Access is denied.]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException() +58
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +512
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. Access is denied.]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +8886319
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +85
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +259




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

ali_divsalar
یک شنبه 24 بهمن 1389, 08:15 صبح
كسي از دوستان با اين مشكل برخورد نكرده؟

jugernaut
جمعه 01 اردیبهشت 1391, 14:08 عصر
دوست خوبم کامپوننت Microsoft report viewer رو سرور شما نصب نیست