Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Teething problems with .NET - Part 1 - Permissions

Posted on 2004-05-01
7
Medium Priority
?
291 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 2000 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

Independent Software Vendors: 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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn different types of Android Layout and some basics of an Android App.
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 …
Starting up a Project

927 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