Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
| Search | Today's Posts | Mark Forums Read
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 6th, 2003, 12:11 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem reusing the Existing VB 6 DLL in ASP.NET

I am getting a Problem with the Access of my Exisiting DLL like

Exception Details: System.UnauthorizedAccessException: Access 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.


I tried all the Possible things Like Giving Access to the ASPNET user and Placing it in the other folder and Giving Access but nothing is working out can you please tell me what going Wrong.But then I copied the project along with the DLL to my Colegues m/c and it works fine I compared the Config files and it all the same.I dont know what Wrong I am going crazy please help me !!!



Rgds

Francis Vaz
  #2 (permalink)  
Old June 6th, 2003, 05:25 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Couple of suggestions you have probably already checked:

There is an attribute of the Page directive, I think its called aspcompat, that needs setting to True to allow you to use VB6 dlls from the aspx page. (if it works on another machine then it wont be this)

Another thing to check could be that the relevant folders have execute permissions (not just for scripts but for dlls as well).

Quote:
quote:Originally posted by francis
 I am getting a Problem with the Access of my Exisiting DLL like

Exception Details: System.UnauthorizedAccessException: Access 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.


I tried all the Possible things Like Giving Access to the ASPNET user and Placing it in the other folder and Giving Access but nothing is working out can you please tell me what going Wrong.But then I copied the project along with the DLL to my Colegues m/c and it works fine I compared the Config files and it all the same.I dont know what Wrong I am going crazy please help me !!!



Rgds

Francis Vaz
  #3 (permalink)  
Old June 26th, 2003, 09:47 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I have had a similar situation using the IEWebControls. When you import the namespace there should be somplace for you to set if the dll is included locally with the project or machine wide (At least i think that's what it means).

Hope it helps,
Jay
  #4 (permalink)  
Old July 11th, 2003, 03:21 PM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use this in web.config file between <system.web> tags

  <identity impersonate="true" />




~~~~Pankaj~~~~

Follow your goals, Means will follow you ---Gandhi---


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert .NET dll to COM dll used by VB 6.0 gvprashanth .NET Framework 1.x 0 December 4th, 2006 05:05 AM
Problem accessing a .dll component in asp.net page ng4123 ASP.NET 1.0 and 1.1 Basics 5 May 10th, 2006 07:31 AM
Problem while calling a VB COM DLL in ASP ranee Classic ASP Components 0 December 1st, 2005 09:44 AM
Problem with Exercise in Beg. asp.net for VB.net! mrfella71 BOOK: Beginning ASP.NET 1.0 1 October 23rd, 2005 12:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.