473,799 Members | 2,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual C# FileIO and Environment Permission

I am writing a ActiveX dll using Visual C#

However , i am facing fileio and environment permission problem.

Is there any way to solve this problem? just as signing the dll or
other method to grant the permission?
Thanks,
Marquis

Mar 10 '06 #1
3 2243

"Marquis" <ma*****@gmail. com> wrote in message
news:11******** **************@ v46g2000cwv.goo glegroups.com.. .
|I am writing a ActiveX dll using Visual C#
|
| However , i am facing fileio and environment permission problem.
|
| Is there any way to solve this problem? just as signing the dll or
| other method to grant the permission?
|

Please be more specific, what problems are you having? More context and some
error messages or stack traces could be helpful.
I'm also not clear on what you mean with ActiveX controls, you can't use C#
(or any other managed language) to author real AX controls.

Willy.
Mar 10 '06 #2
I want to do Environment.Get LogicalDrives()

but i get the Security Permission problem !!!

Mar 11 '06 #3

"Marquis" <ma*****@gmail. com> wrote in message
news:11******** **************@ j33g2000cwa.goo glegroups.com.. .
|I want to do Environment.Get LogicalDrives()
|
| but i get the Security Permission problem !!!
|

And how does this relate to ActiveX?
Please post a sample that illustrates the problem or at least the exception
message.

Willy.
Mar 11 '06 #4

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

Similar topics

2
1522
by: Patrick Reany | last post by:
I wrote a C++ progam nine years ago and I haven't been in C++ since then. I re-installed Visual C++ 4.0 on a Win98 machine and tried to compile the program value.cpp but I get the error message Cannot open file : 'stream.h': Permission denied. I am really out of practice with C++ and I want to get back into it now. The program 'value.cpp' and its header file 'header.h' can be found at:
13
2206
by: John Bowman | last post by:
Hi All, I've got a simple wrapper static test method on a class to expand the environment variables on a specified string: public static string ExpandEnvironmentStr(string Str) { return Environment.ExpandEnvironmentVariables(Str); }
1
2105
by: Moe | last post by:
I have a winForm control that contains an openFileDialog. I am using this control in a webForm by enbedding it using an <object> tag. I need to access some information about the file on the client. I strongly named my control assembly . I created a machine level permission set, and assigned FileDialog, FileIO and User interface permission. I created a code group under all_Code, associated my assembly's strong name to that group and...
0
951
by: Steven Smith | last post by:
Hi guy's I've hit a bit of a sticking point, I'm sure this is simple enough but I just can't get my head around it and I'm looking for a bit of direction. When dealing with FileIO up until now I would have created a user- defined data structure to store my data from which I could load / save to a Random Access Text File via textboxes etc on the form. However the problem I'm now facing is twofold. firstly:
2
4937
by: tmoffett | last post by:
I am very new to the language so please pardon my ignorance. I am writing a small console application to gather hardware inventory information. When I run the application locally all works well. It gathers the needed information and writes that info to a remote SQL server. If I put the file in the scripts folder on our AD domain controller (so that I can use it with login scripts) it fails to run. It also fails when I run it from...
2
922
by: KenEisman | last post by:
I'm trying to read in a text file using code that I copied and pasted from the MS help file. Using Reader As New _ Microsoft.VisualBasic.FileIO.TextFieldParser("c:\bankcheck") At this line I get "Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
8
7707
by: jporter188 | last post by:
Hello, I am working on a project to manipulate XML files. All of the files, the code, and the output are on network drives. When I run my program I get an exception (see below). I tried giving the LocalIntranet_Zone full permissions in the .NET Framework 2.0 Configuration msc. This had no effect whatsoever. What do I need to do to fix this? Thanks,
0
2035
by: =?Utf-8?B?bWFnZWxsYW4=?= | last post by:
Hi All, I have the following: FileIO.FileSystem.CopyDirectory(strFromString, strLocString, FileIO.UIOption.AllDialogs) Q: How do I access the UI that is presented and re-positon the x,y location..?
1
2594
by: =?Utf-8?B?bWFnZWxsYW4=?= | last post by:
hi all, I have a button (stopcopy) that I want the user to cancel out of a long file copying operation. I'm not clear what I should "adding" in the sub to make this happen besides & return. I want to stop/cancel the file io operation and return back to the calling form.
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10249
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10219
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10025
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7563
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6804
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.