Solved

Teething problems with .NET - Part 1 - Permissions

Posted on 2004-05-01
7
286 Views
Last Modified: 2010-04-17
I've just converted the VB business class layer of an ASP/VB6/Sql application to .NET. The ASP pages are staying in ASP format, I am NOT moving to asp.net

Its set up to register the business class DLL as a com components and its able to create objects and retrieve data from objects back to the asp page

Permissions. First thing the VB.NET class does is open a reg key using system functions. That returns error code 1314 which means insufficient permissions
  1. I am a local and domain admin and a member of the Debugger Users group
  2. Application protection is set to high isolated
  3. Anonymous authentication is turned off, only Integrated Windows Security is turned on
  4. I made all users administrators including IWAM and IUSR - no effect

What can I do to give the debugging process the correct permissions so the app can run as usual
0
Comment
Question by:plq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 27

Expert Comment

by:Dabas
ID: 10969802
Hi plq:
NOt sure if this helps, but you might use the "Microsoft .NET Framework 1.1 Wizards" which can be found under your Administrative Tools menu.
It includes certain .NET related security settings.
 
Dabas
0
 
LVL 8

Author Comment

by:plq
ID: 10971630
I put in a call to GetUserName() and the value returned is my user name, which is an administrator on this box, and a member of domain admins

So why would a running administrator process not have permissions to the registry ? The process was created by IIS.

Its as if IIS limits what its own processes can do for security reasons. I never had this problem when the code was in VB6

I went through the .NET security wizard and trusted the assembly, but its still not working.



0
 
LVL 8

Author Comment

by:plq
ID: 10972803
OK I'm hoping some experts with experience of running ASP 3 (old ASP pages) against a .net backend can help me out here.

The scenario is:

- ASP pages -> COM -> VB.NET com enabled business class
- Need to sort out the permissions problem described above
- Would like a general guide to permissions
     (a) when debugging this scenario and
     (b) how to cater for COM enabled .NET classes in Component Services (for live running)
     (c) can you debug a DLL which is sitting in Component Services (should I be looking at component services at all ?)

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Author Comment

by:plq
ID: 10973043
The registry problem is now fixed. I didn't realise the upgrade wizard would trash your code so much. It defined all my API constants as booleans and shorts, instead of integers. Thanks Mr Gates

I would still appreciate some expert input on using component services with .net com wrapped software though. ....
0
 
LVL 27

Expert Comment

by:Dabas
ID: 10973337
plq:
> upgrade wizard
UGH!
That is a definite no-no.
The conventional wisdom is:
Keep old code in VB6.
Write new code in VB.NET
I assume something similar goes for ASP and ASP.NET

As suggested in your other question, I would suggest you place your questions in the .NET or ASP.NET areas.
I would suggest that you ask a moderator that you move this question there, but it will be aged and go unnoticed, hence a new question will be better

Dabas
0
 
LVL 8

Author Comment

by:plq
ID: 10973357
yes but this is 100K lines of code. If I was going to rewrite it, I would do it in C++ and make it platform independant. ANyway, lets not go off topic

If anyone does find this Question...

I would appreciate some expert input on using component services with .net com wrapped software ...
0
 
LVL 2

Accepted Solution

by:
MarkSmithson earned 500 total points
ID: 10981132
The way to host a dotNET component in Component Services or COM+ in Windows XP/ .NET Server 2003 is to inherit from the System.EnterpriseServices.ServicedComponent class.

Have a look at MSDN for an introduction and overiew:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconservicedcomponentoverview.asp 

Mark
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 114
C# Error - Add Failed 12 99
Change the background and font colors in Notepad++ 5 155
MySQL programmer starter 25 23
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question