We help IT Professionals succeed at work.

ASP.NET 2.0 and COM

davev asked
Last Modified: 2008-04-24
I have an application deployed to a corporate test web server where ASP.NET runs under a domain account. This ASP.NET 2.0 applications make calls to COM components, but when the actual call is made, I get the following permissions error. What must be done in terms of setting permission levels to allow ASP.NET to run COM components on a web serve? The COM call from the error below is eWSessionUtil.eWSessionClass.Login which the .NET code ConnectionManager.Login simply calls. TIA

System.Security.SecurityException: Permission denied at eWSessionUtil.eWSessionClass.Login(String UserName, String Password, String Project, String Server, String ServerLocation, String ClassLibrary, Boolean AutoLogout, Object PropertyNames, Object PropertyValues) at ConnectionManager.Login(String username, String password, String project, String server, String serverLocation) in \\webstore1\tier1_web3_dev$\pimfe\App_Code\ConnectionManager.cs:line 50 at Login.btnLogin_Click(Object sender, EventArgs e) in \\webstore1\tier1_web3_dev$\pimfe\Login.aspx.cs:line 82 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.login_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\pimfe\f58a5b2d\11019154\App_Web_3bcptxpc.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) The Zone of the assembly that failed was: MyComputer
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.