Click here to Skip to main content
15,889,216 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: open new window [modified] Pin
Blue_Boy27-Jul-09 0:43
Blue_Boy27-Jul-09 0:43 
GeneralRe: open new window Pin
ptvce27-Jul-09 1:00
ptvce27-Jul-09 1:00 
GeneralRe: open new window Pin
Blue_Boy27-Jul-09 1:02
Blue_Boy27-Jul-09 1:02 
Questionrequired field validator issue Pin
ademsandeepreddy26-Jul-09 23:42
ademsandeepreddy26-Jul-09 23:42 
AnswerRe: required field validator issue Pin
Christian Graus26-Jul-09 23:44
protectorChristian Graus26-Jul-09 23:44 
AnswerRe: required field validator issue Pin
Abhishek Sur26-Jul-09 23:51
professionalAbhishek Sur26-Jul-09 23:51 
AnswerRe: required field validator issue Pin
Abhijit Jana26-Jul-09 23:54
professionalAbhijit Jana26-Jul-09 23:54 
QuestionServer Error in '/' Application: Required permissions cannot be acquired Pin
Chesnokov Yuriy26-Jul-09 23:13
professionalChesnokov Yuriy26-Jul-09 23:13 
I've got web project that includes native win32 DLL resided in bin folder and unsafe web page that accesses functions from that DLL. In web.config /unsafe compilation is also enabled. On my PC it runs normally but when I put it to http on 3rd party web hosting it returns that error:

What is the reason and solution?



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.Security.Policy.PolicyException: Required permissions cannot be acquired.

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:


[PolicyException: Required permissions cannot be acquired.]
   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +7604211
   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly 'Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   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(AssemblyName 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.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
   System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +227
   System.Web.Compilation.BuildManager.CompileGlobalAsax() +52
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +337

[HttpException (0x80004005): Could not load file or assembly 'Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): Could not load file or assembly 'Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259

Чесноков

AnswerRe: Server Error in '/' Application: Required permissions cannot be acquired Pin
Christian Graus26-Jul-09 23:24
protectorChristian Graus26-Jul-09 23:24 
QuestionRe: Server Error in '/' Application: Required permissions cannot be acquired Pin
Chesnokov Yuriy27-Jul-09 1:02
professionalChesnokov Yuriy27-Jul-09 1:02 
QuestionHow to Retrieve TCP/UDP Statistics using System.Net.NetworkInformation Pin
that_dude_tj26-Jul-09 23:07
that_dude_tj26-Jul-09 23:07 
QuestionMathematical Pin
geeeeeeeetha26-Jul-09 22:59
geeeeeeeetha26-Jul-09 22:59 
AnswerRe: Mathematical Pin
Christian Graus26-Jul-09 23:02
protectorChristian Graus26-Jul-09 23:02 
General[Message Deleted] Pin
geeeeeeeetha26-Jul-09 23:07
geeeeeeeetha26-Jul-09 23:07 
GeneralRe: Mathematical Pin
Christian Graus26-Jul-09 23:24
protectorChristian Graus26-Jul-09 23:24 
General[Message Deleted] Pin
geeeeeeeetha26-Jul-09 23:27
geeeeeeeetha26-Jul-09 23:27 
GeneralRe: Mathematical Pin
Christian Graus26-Jul-09 23:38
protectorChristian Graus26-Jul-09 23:38 
AnswerRe: Mathematical Pin
Blue_Boy26-Jul-09 23:03
Blue_Boy26-Jul-09 23:03 
GeneralRe: Mathematical Pin
Christian Graus26-Jul-09 23:55
protectorChristian Graus26-Jul-09 23:55 
GeneralRe: Mathematical Pin
Blue_Boy27-Jul-09 0:10
Blue_Boy27-Jul-09 0:10 
AnswerRe: Mathematical Pin
Christian Graus26-Jul-09 23:51
protectorChristian Graus26-Jul-09 23:51 
Questionhow to update a gridview using a query from two tables Pin
haleemasher26-Jul-09 22:50
haleemasher26-Jul-09 22:50 
AnswerRe: how to update a gridview using a query from two tables Pin
Christian Graus26-Jul-09 23:03
protectorChristian Graus26-Jul-09 23:03 
GeneralRe: how to update a gridview using a query from two tables Pin
haleemasher26-Jul-09 23:08
haleemasher26-Jul-09 23:08 
GeneralRe: how to update a gridview using a query from two tables Pin
Christian Graus26-Jul-09 23:25
protectorChristian Graus26-Jul-09 23:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.