473,804 Members | 3,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't run 2005 app from network

cj
A year or so ago I had this problem with a vb 2003 app that it gave me
an error

"Applicatio n attempted to perform an operation not allowed by the
security policy......."

I had to go in to "control panel/administrative tools/microsoft .net
framework 1.1 wizards" and adjust the .net security for local intranet
to full trust to fix the problem.

Now I try to run a 2005 app from the network and get the same error. I
repeated the steps but it doesn't work. Well I suspect since 2005 uses
..net 2.0 that I need to adjust it's security setting but how???????
Jan 17 '07 #1
16 2621
"cj" <cj@nospam.nosp amschrieb:
>A year or so ago I had this problem with a vb 2003 app that it gave me
an error

"Applicatio n attempted to perform an operation not allowed by the
security policy......."

I had to go in to "control panel/administrative tools/microsoft .net
framework 1.1 wizards" and adjust the .net security for local intranet
to full trust to fix the problem.

Now I try to run a 2005 app from the network and get the same error. I
repeated the steps but it doesn't work. Well I suspect since 2005 uses
.net 2.0 that I need to adjust it's security setting but how???????
Check out the "caspol" tool.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Jan 17 '07 #2
cj
Where would I find this "caspol" tool on a windows XP pro machine?

Herfried K. Wagner [MVP] wrote:
"cj" <cj@nospam.nosp amschrieb:
>A year or so ago I had this problem with a vb 2003 app that it gave me
an error

"Applicatio n attempted to perform an operation not allowed by the
security policy......."

I had to go in to "control panel/administrative tools/microsoft .net
framework 1.1 wizards" and adjust the .net security for local intranet
to full trust to fix the problem.

Now I try to run a 2005 app from the network and get the same error.
I repeated the steps but it doesn't work. Well I suspect since 2005
uses .net 2.0 that I need to adjust it's security setting but how???????

Check out the "caspol" tool.
Jan 17 '07 #3
"cj" <cj@nospam.nosp amschrieb:
Where would I find this "caspol" tool on a windows XP pro machine?
"%WINDIR%\Micro soft.NET\Framew ork\v<.NET Framework version>".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Jan 17 '07 #4
In addition to using caspol like Herfried suggests, here's a link to
another
thread that will help. It contains a walkthrough on how to use the .Net
2.0
config wizard to set the appropriate permissions.

http://groups.google.com/group/micro...b0707902db8246

Thanks,

Seth Rowe
cj wrote:
A year or so ago I had this problem with a vb 2003 app that it gave me
an error

"Applicatio n attempted to perform an operation not allowed by the
security policy......."

I had to go in to "control panel/administrative tools/microsoft .net
framework 1.1 wizards" and adjust the .net security for local intranet
to full trust to fix the problem.

Now I try to run a 2005 app from the network and get the same error. I
repeated the steps but it doesn't work. Well I suspect since 2005 uses
.net 2.0 that I need to adjust it's security setting but how???????
Jan 18 '07 #5
cj
I browsed to C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 and double
clicked caspol.exe. A DOS window popped up very briefly and
disappeared. What up with that?

I've looked at rowe_newsgroups suggestion seems to be telling me a way
that sounds very similar to the .net framework 1.1 method but when I get
to the end of the long tree where I expect to change a setting they
start taking about adding a strong name and using a wizard and then a
msi installer and a bunch of crap I don't care to know. I use xcopy
deployment because deployment here means the exe is put in a dir on the
network and then one pc in the computer room runs it from there. If
that pc were to fail it would be run from another. It IS the way our
company does things and I am NOT in a position to change that. And
don't want to.

Herfried, Don't take this personally. I just want the steps to make the
damn program run from the network like it should have in the first
place. I don't have time to piss around with all this .net crap. .net
framework 1.1 was bad enough that they made me take those steps to give
full trust to intranet but this is ridiculous. MS can't seem to keep
anything the same. The program will reside on the network and I need a
step by step to make a pc run it. I kinda thought I'd have a response
from MS on this overnight. There has to be a setting to tell a pc that
my network is safe after all it's our company network and this is a
company pc in the same building behind the same firewall and if the
network isn't safe then there is no need for the pc to be safe cause
we're out of business.

Sorry for the rant, could someone tell me the steps to make a XP pc run
a VB 2005 program from the network?

Herfried K. Wagner [MVP] wrote:
"cj" <cj@nospam.nosp amschrieb:
>Where would I find this "caspol" tool on a windows XP pro machine?

"%WINDIR%\Micro soft.NET\Framew ork\v<.NET Framework version>".
Jan 18 '07 #6
cj wrote:
I browsed to C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 and double
clicked caspol.exe. A DOS window popped up very briefly and
disappeared. What up with that?
CASPOL needs [lots of] command line arguments to do anything useful.
Open a command prompt in that directory and run "caspol" (or, better
still, "caspol /?") from there.

The 1.1 CASPOL command looks like this - it can't have changed /that/
much in the new version (can it?)
(should be all one line, of course; breaks for clarity only)

%WinDir%\Micros oft.NET\Framewo rk\[VERSION]\caspol.exe
-q
-ag 1.2
-url file://[SERVER]/[SHARED]/*
FullTrust
-name "[DESCRIPTION]"

where you have to fill in VERSION, SERVER, SHARE and DESCRIPTION.
The FullTrust may be a bit overkill, but I haven't played with the
Security stuff in '2005 yet.

HTH,
Phill W.
Jan 18 '07 #7
cj
how do I get "Control Panel->Administrati ve Tools->.NET Framework
Configuration 2.0 Configuration" to show up on the pc. It has the .net
framework installed but this option is not on the pc like it is on mine.
This is a new pc with a new installation of Windows XP pro on it--it
does not have VS on it. Mine has been around a couple of years is also
Windows XP pro and has VS2005 on it.

rowe_newsgroups wrote:
In addition to using caspol like Herfried suggests, here's a link to
another
thread that will help. It contains a walkthrough on how to use the .Net
2.0
config wizard to set the appropriate permissions.

http://groups.google.com/group/micro...b0707902db8246

Thanks,

Seth Rowe
cj wrote:
>A year or so ago I had this problem with a vb 2003 app that it gave me
an error

"Applicatio n attempted to perform an operation not allowed by the
security policy......."

I had to go in to "control panel/administrative tools/microsoft .net
framework 1.1 wizards" and adjust the .net security for local intranet
to full trust to fix the problem.

Now I try to run a 2005 app from the network and get the same error. I
repeated the steps but it doesn't work. Well I suspect since 2005 uses
.net 2.0 that I need to adjust it's security setting but how???????
Jan 18 '07 #8
TP
Here is a sample that grants full trust to an application that runs
in the Local Intranet zone, from any path under m:\:

c:\windows\micr osoft.net\frame work\v2.0.50727 \CasPol.exe -m -ag 1.2 -url file://m:\* FullTrust

-m = Machine level policy
-ag = Add code group
1.2 = LocalIntranet zone (this is where the code group will be added under)
-url = path that code originates from
FullTrust = Grant full trust to the code group

-TP

cj wrote:
I browsed to C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 and double
clicked caspol.exe. A DOS window popped up very briefly and
disappeared. What up with that?

I've looked at rowe_newsgroups suggestion seems to be telling me a way
that sounds very similar to the .net framework 1.1 method but when I
get to the end of the long tree where I expect to change a setting
they start taking about adding a strong name and using a wizard and
then a msi installer and a bunch of crap I don't care to know. I use
xcopy deployment because deployment here means the exe is put in a
dir on the network and then one pc in the computer room runs it from
there. If that pc were to fail it would be run from another. It IS
the way our company does things and I am NOT in a position to change
that. And don't want to.

Herfried, Don't take this personally. I just want the steps to make
the damn program run from the network like it should have in the first
place. I don't have time to piss around with all this .net crap.
.net framework 1.1 was bad enough that they made me take those steps
to give full trust to intranet but this is ridiculous. MS can't seem
to keep anything the same. The program will reside on the network and
I need a step by step to make a pc run it. I kinda thought I'd have
a response from MS on this overnight. There has to be a setting to
tell a pc that my network is safe after all it's our company network
and this is a company pc in the same building behind the same
firewall and if the network isn't safe then there is no need for the
pc to be safe cause we're out of business.

Sorry for the rant, could someone tell me the steps to make a XP pc
run a VB 2005 program from the network?
Jan 18 '07 #9
cj
I'd like to grant fulltrust to all the local intranet zone.
How about:
CasPol.exe -m -ag LocalIntranet_Z one FullTrust
Will that work?

TP wrote:
Here is a sample that grants full trust to an application that runs in
the Local Intranet zone, from any path under m:\:

c:\windows\micr osoft.net\frame work\v2.0.50727 \CasPol.exe -m -ag 1.2 -url
file://m:\* FullTrust

-m = Machine level policy
-ag = Add code group
1.2 = LocalIntranet zone (this is where the code group will be added under)
-url = path that code originates from
FullTrust = Grant full trust to the code group

-TP

cj wrote:
>I browsed to C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 and double
clicked caspol.exe. A DOS window popped up very briefly and
disappeared. What up with that?

I've looked at rowe_newsgroups suggestion seems to be telling me a way
that sounds very similar to the .net framework 1.1 method but when I
get to the end of the long tree where I expect to change a setting
they start taking about adding a strong name and using a wizard and
then a msi installer and a bunch of crap I don't care to know. I use
xcopy deployment because deployment here means the exe is put in a
dir on the network and then one pc in the computer room runs it from
there. If that pc were to fail it would be run from another. It IS
the way our company does things and I am NOT in a position to change
that. And don't want to.

Herfried, Don't take this personally. I just want the steps to make
the damn program run from the network like it should have in the first
place. I don't have time to piss around with all this .net crap. .net
framework 1.1 was bad enough that they made me take those steps
to give full trust to intranet but this is ridiculous. MS can't seem
to keep anything the same. The program will reside on the network and
I need a step by step to make a pc run it. I kinda thought I'd have
a response from MS on this overnight. There has to be a setting to
tell a pc that my network is safe after all it's our company network
and this is a company pc in the same building behind the same
firewall and if the network isn't safe then there is no need for the
pc to be safe cause we're out of business.

Sorry for the rant, could someone tell me the steps to make a XP pc
run a VB 2005 program from the network?
Jan 18 '07 #10

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

Similar topics

0
1108
by: melledge | last post by:
Amazon and Yahoo join illustrious line-up at XML 2005; Over 30 new sessions added XML 2005 http://2005.xmlconference.org/ The Reliable Source for Everything XML Atlanta Hilton Hotel, Atlanta, GA - Reservation Deadline October 21
0
839
by: Jeff Gaines | last post by:
I have just installed VS 2005 (MSDN version) and it's brought my network to its knees. All my data is on a server with a 100 Mbps connection. I was getting messages that the share couldn't be trusted so I used mscorcfg.msc (?sp) to update the trusts and I don't get that message any more. Copying files to the Visual Studio 2005 project folder in Explorer is taking forever, to the stage where Explorer is shown in Task Manager as 'Not...
1
4729
by: John Shadel | last post by:
I have the following setup: 1. ASP.NET 2.0 web app hosted on a web server (inetpub directory hosting physical files of the web site on a different drive name, E: than the SQL Server Instance, which is on C:) 2. SQL Server on the same server, with security settings enabling ASPNET group and groups containing users allowed to interact with the website added to SQL Server Instance security settings. 3. Impersonation = true, i.e. ASPNET...
6
5740
by: Thanks | last post by:
Two Windows 2003 server, one with SQL 2005 server, another with SQL Express. Is it possible to copy databases from SQL 2005 to SQL Express? Thanks.
7
2072
by: clintonG | last post by:
To all Microsoft partners and customers who have been unable to download recently or access ASP.NET documentation from the msdn2 website and for all of those customers who have been lied to and misled by some of the sleazy MVPs and the lying cockroaches that Microsoft has working for the company... Microsoft has serious problems with their servers and websites. The entire MSDN server farm and all download resources MSDN manages has been...
0
5387
by: TechWitch | last post by:
I've seen a number of posts from frustrated folks about this topic, with not much offered as a solution. I actually managed to get this to work today, so I thought I'd post for the benefit of the community. My team went through a number of puzzling errors in getting this work, like the CLI0150E (Driver not capable) error, and a variety of DB2OLEDB errors. None which were really indicative of the problem. Here's how I got a read/write...
0
4067
by: TechWitch | last post by:
I've seen a number of posts from frustrated folks about this topic, with not much offered as a solution. I actually managed to get this to work today, so I thought I'd post for the benefit of the community. My team went through a number of puzzling errors in getting this work, like the CLI0150E (Driver not capable) error, and a variety of DB2OLEDB errors. None which were really indicative of the problem. Here's how I got a...
0
2011
by: aboutjav.com | last post by:
Hi, I need some help. I am getting this error after I complete the asp.net register control and click on the continue button. It crashed when it tries to get it calls this Profile property ((string)(this.GetPropertyValue("Address1")));
1
1392
by: cj | last post by:
I have several 2003 apps and several more 2005 apps that folks run from a network drive. To get these to run back when I put these out there over a year ago I had to: For 2003 apps: go into Start/Control Panel/Administrative Tools/Microsoft .NET Framework 1.1 Wizards, then Adjust .NET Security, then Make changes to this computer, then set Local Intranet to Full Trust
0
9708
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
9588
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10589
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
10340
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...
0
10085
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...
0
9161
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.