Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3337716
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:17:09+00:00 2026-05-18T00:17:09+00:00

Scenario: I have a C# application that uses Click-Once to install(puts an icon on

  • 0

Scenario: I have a C# application that uses Click-Once to install(puts an icon on the desktop that points to the application) itself on computers on the network. I have recently been integrating NHibernate into the program and everything runs smooth on my box. Its ready for internal testing and I need to put it on our network share (Same share as production, different folder).

Problem: When I place it on the network share and run it I recieve an error saying the application cannot run in partial trust.

Question: I have googled this to no end and every solution seems to talk about a Web Application experiencing this. Is there anyway I can set the application to run in full trust mode on a network share. Setting the folder/exe to full trust? Is this simply allowing “Full Control” in the security tab of my applications properties?

Here is the error I recieve when running the application
alt text

Thanks for any input

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:17:10+00:00Added an answer on May 18, 2026 at 12:17 am

    You need to set the security policy on the client machine using CasPol.exe or the configuration tool in Administrative Tools.

    • Code Access Security Policy Tool
    • Using CasPol to Fully Trust a Share
    • .NET Framework Configuration Tool (Mscorcfg.msc)
    • Code Access Security Policy (CASPOL.exe) GUI Utility

    Alternatively, you can upgrade to .net 4.0, which gets rid of all this.

    EDIT: You can also try adding [assembly: AllowPartiallyTrustedCallers]to the referenced assembly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: I have a console application that needs to access a network share with
The Scenario I have written a Silverlight 3 Application that uses an SQL Server
The Scenario Currently I have a C# Silverlight Application That uses the domainservice class
Scenario I have a background worker in my application that runs off and does
Scenario I have a C# windows forms application that has a number of processes.
Let me share the following scenario: I have a ASP.NET intranet Web-based application that
We have an application that uses various system tray icons to communicate with users.
I have a simple C# application that uses UDP multicast in a single-receiver, single-sender
Scenario: I have an application that has a config table which stores the config
I have a straightforward question. I am doing a web application that uses MySQL,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.