473,387 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error accessing mscorlib.dll (2)

Hi all,

I've created a Library class and inside the class (Class1) that inherits
from System.EnterpriseServices.ServicedComponent. In this class I wrote a
function with type: System.Guid and in the return sentence of this function I
wrote: return ContextUtil.ContexId.

In the same Solution I created a new project (Windows Application) and in
the event Load (Form1_Load) the code is:
Try
Dim obj As New Class1
Me.Label1.Text = obj.GetContextID.ToString
Catch ex As System.UnauthorizedAccessException
Me.Label1.Text = "El mensaje de error es: " & ex.Message
End Try

When line: Dim obj As New Class1 is executed I received an error:

Deny access. (The access refers to mscorlib.dll).

Any idea how to solve this error?

Thanks a lot.

Alonso.

Nov 21 '05 #1
0 855

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Chucker | last post by:
Hi Folks, I got an error that drives me crazy because it only occurs sometimes and I can`t even reproduce it. I got a __gc class here is it`s header: #pragma once #include...
5
by: Boris Kuznetsov | last post by:
This occurs in an empty project when I add the following string: #using <mscorlib.dll> Can anyone tell me why would #using ... not be working???? MSDN says nothing about this error. Please...
0
by: Paul van Brenk | last post by:
Hi, after installing sp1 on windows 2003 I get the following error when accessing an aspx page in an otherwise asp application: error: Unable to generate a temporary class (result=1). error...
4
by: Alonso | last post by:
Hola amigos, Me he creado una biblioteca de clases y dentro una clase (Class1) que hereda de System.EnterpriseServices.ServicedComponent. En la clase he creado una funciĆ³n de tipo System.Guid y...
2
by: Ilkka | last post by:
I have created an C++ application with Windows Forms, ADO and SQL server 2005. Now I need to change something and started debugging the code. Then suddenly I receive an error. "An unhandled...
0
by: amitda | last post by:
I am getting following error while trying to access sql server report manager: I saw an msdn article about similar issue, made sure c:\temp exists and pointed TMP and TEMP sys env var to that....
21
by: Mark Rae | last post by:
Hi, I have an ASP.NET 2 web application (not web site) project and am using a web deployment project to deploy to the testing, then the production server. All has been working well for months...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
by: sunoj | last post by:
Hello friends.....! I developed a windows application using VB.Net. and Installed it on D Drive of my server Machine. The D Drive is mapped as G on all other machines. When I am...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.