C
Chris Dunaway
I have created an application that is to be run from a network share.
started fine.
I had to make a change and re-compiled the app. Now, it won't start
up. Instead, I get the Windows Error about sending the error to
Microsoft. I thought perhaps that somehow the changes I made were
causing problems so I removed trust for the app and re-added it by
issuing the following commands:
caspol -rg CafeSystem
caspol -m -ag All_Code -url file://server/folder/* FullTrust -n
CafeSystem
It seemed to grant trust successfully and when I execute the following
command:
caspol -rsg "\\Server\folder\Cafe System.exe"
I get this output:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>caspol -rsg
"\\server\folderCafe System.exe"
Microsoft (R) .NET Framework CasPol 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Level = Enterprise
Code Groups:
1. All code: FullTrust
Level = Machine
Code Groups:
1. All code: Nothing
1.2. Zone - Intranet: LocalIntranet
1.2.1. All code: Same site Web
1.2.2. All code: Same directory FileIO - 'Read, PathDiscovery'
1.6. Url - file://lps18202/cafeadm/*: FullTrust
Level = User
Code Groups:
1. All code: FullTrust
Success'
So it seems as if FullTrust has been successfully granted yet the
program crashes. The person on whose machine this will be run has all
the necessary permissions on the server and shared folder. So I don't
think it is a permissions issue. The machine is running W2K SP4. The
app ran successfully on this same machine before but I am at a loss as
to how to proceed.
Anyone care to offer any insight?
Thanks,
grant FullTrust to the application. After doing so, the applicationFrom the machine that we intended to run the app, I used caspol to
started fine.
I had to make a change and re-compiled the app. Now, it won't start
up. Instead, I get the Windows Error about sending the error to
Microsoft. I thought perhaps that somehow the changes I made were
causing problems so I removed trust for the app and re-added it by
issuing the following commands:
caspol -rg CafeSystem
caspol -m -ag All_Code -url file://server/folder/* FullTrust -n
CafeSystem
It seemed to grant trust successfully and when I execute the following
command:
caspol -rsg "\\Server\folder\Cafe System.exe"
I get this output:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>caspol -rsg
"\\server\folderCafe System.exe"
Microsoft (R) .NET Framework CasPol 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Level = Enterprise
Code Groups:
1. All code: FullTrust
Level = Machine
Code Groups:
1. All code: Nothing
1.2. Zone - Intranet: LocalIntranet
1.2.1. All code: Same site Web
1.2.2. All code: Same directory FileIO - 'Read, PathDiscovery'
1.6. Url - file://lps18202/cafeadm/*: FullTrust
Level = User
Code Groups:
1. All code: FullTrust
Success'
So it seems as if FullTrust has been successfully granted yet the
program crashes. The person on whose machine this will be run has all
the necessary permissions on the server and shared folder. So I don't
think it is a permissions issue. The machine is running W2K SP4. The
app ran successfully on this same machine before but I am at a loss as
to how to proceed.
Anyone care to offer any insight?
Thanks,