Solved

Teething problems with .NET - Part 1 - Permissions

Posted on 2004-05-01
7
284 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
  • 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 97
word0 challenge 3 91
Counting documents in a Domino View 3 83
Regular Expression Calculator Tester 2 74
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This is about my first experience with programming Arduino.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

810 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