Created a web service and published to server and it worked fine. Added some dll to access a conversion program and everything works fine on my local server which which is iis6 and it works fine. After I published the update application, I get the above
error message just trying to start app even before it needs the ddl. I have tried removing the ddl to see if that was the problem and it did not help. I have enable directory browsing on both the server and application and also added the asmx page to the
default application.
Source that url can not find is an .asmx file.
Also triple check my spelling. And also added to the web.config file:
After further attempts I am getting a little more understandable error. I have changed .NET Trust Levels to FULL and loaded the dll into System32 folder.
Server Error in '/ExamTranscriptWebService' Application.
Required permissions cannot be acquired.
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.
godistop1
9 Posts
The resource you are looking for might have been removed, had its name changed, or is temporarily...
Sep 28, 2011 06:08 PM|LINK
Created a web service and published to server and it worked fine. Added some dll to access a conversion program and everything works fine on my local server which which is iis6 and it works fine. After I published the update application, I get the above error message just trying to start app even before it needs the ddl. I have tried removing the ddl to see if that was the problem and it did not help. I have enable directory browsing on both the server and application and also added the asmx page to the default application.
Source that url can not find is an .asmx file.
Also triple check my spelling. And also added to the web.config file:
<
system.webServer><directoryBrowse enabled="true"></directoryBrowse></system.webServer>Sure could use some help here.
=========================================================================================================
After further attempts I am getting a little more understandable error. I have changed .NET Trust Levels to FULL and loaded the dll into System32 folder.
Server Error in '/ExamTranscriptWebService' Application.
Required permissions cannot be acquired.
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:
Stack Trace:
404 custom error the specified file path is invalid
qbernard
5016 Posts
MVP
Moderator
Re: The resource you are looking for might have been removed, had its name changed, or is tempora...
Sep 29, 2011 05:38 AM|LINK
This is asp.net related, try forums.asp.net
or google - http://www.google.com.my/search?sclient=psy-ab&hl=en&site=&source=hp&q=System.Security.Policy.PolicyException%3A+Required+permissions+cannot+be+acquired.&btnK=Google+Search
Bernard Cheah