473,405 Members | 2,160 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,405 software developers and data experts.

Deployment Permissions

RSH
I have built a VB application for distribution and I used the Setup builder
in Visual Studio. I had no problems compiling and installing the
application on two different machines. However on one machine (as luck
would have it...my bosses!) I am getting a .Net security warning that wont
allow a few important features to work.

Basically I am attempting to check for Commandline parameters...it doesn't
like that at all and after displaying the error message it shuts down my
app. If I comment out the check for Commandline parameters, the application
loads and runs until they use the open a directory function which displays
the same error.

I also get the error when attempting to open a connection to SQL Server.

Here is the error text:
"The application attempted to perform an operation not allowed by the
security policy. The operation required the SecurityException. To grant
this application the required permission please contact your system
administrator, or use the Microsoft .Net security policy administrator tool.

Request for the permission of type
System.Security.Permissions.FileIOPermission, mscorlib, version1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5561934e089 failed."

Thanks for any insight you might be able to offer.
RSH


Nov 21 '05 #1
1 946
Hi,

Try requesting the permission in your code.
http://msdn.microsoft.com/library/de...sctorTopic.asp

Ken
-----------------
"RSH" <wa*************@yahoo.com> wrote in message
news:uM**************@TK2MSFTNGP15.phx.gbl...
I have built a VB application for distribution and I used the Setup builder
in Visual Studio. I had no problems compiling and installing the
application on two different machines. However on one machine (as luck
would have it...my bosses!) I am getting a .Net security warning that wont
allow a few important features to work.

Basically I am attempting to check for Commandline parameters...it doesn't
like that at all and after displaying the error message it shuts down my
app. If I comment out the check for Commandline parameters, the application
loads and runs until they use the open a directory function which displays
the same error.

I also get the error when attempting to open a connection to SQL Server.

Here is the error text:
"The application attempted to perform an operation not allowed by the
security policy. The operation required the SecurityException. To grant
this application the required permission please contact your system
administrator, or use the Microsoft .Net security policy administrator tool.

Request for the permission of type
System.Security.Permissions.FileIOPermission, mscorlib, version1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5561934e089 failed."

Thanks for any insight you might be able to offer.
RSH

Nov 21 '05 #2

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

Similar topics

2
by: Steven M. Lewis | last post by:
What are the restrications on unsafe blocks using the object tag or Assembly.LoadFrom - it does not seem to work for me even with full trust of the site
2
by: Jim Hubbard | last post by:
By one-click deployment I mean the ability to click on an EXE located on a server (internet or intranet) and run it locally. Due to the default restrictions placed on such code (no file...
3
by: Dmitry Karneyev | last post by:
Hi! I need to deploy .NET application (ADO.NET + Crystal Reports) in local intranet. All assemblies of application will be shared in the folder on the server so all users can execute this...
3
by: Boxman | last post by:
Hi I have been asked to migrate a long-standing and stable asp.net application from a W2k server on one NT domain on our intranet to another W2k server on another NT domain also on our intranet....
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: Scanner2001 | last post by:
I have a web service and a deployment project. Inside the deployment project, is a custom action to create some database related items such as stored procedures. I have this packaged as an msi, and...
3
by: Chuck P | last post by:
I need to deploy and asp.net 2.0 application that has dpapi/machine encrypted connection strings. I tried using the VS Build Publish menu selection and then putting the encryption in the...
3
by: DGleeson3 | last post by:
Hello All Hope Im posting in the right place. If not please point me elsewhere. We are developing a reasonably standard Web application. VS2005 ASP.NET SQL server 2005. The unusual...
0
by: Sid Price | last post by:
HI, I am not sure this is the correct place to raise this question, please redirect me if not. I have a VB.NET application with a deployment project. I need to create a folder on the target...
5
by: Cirene | last post by:
When would I use "Copy Web site" over "Publish Website" or visa versa? Why would I use the Web Deployment Project vs these options? I want to make sure no one can pull up/read/download my vb...
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: 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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.