{"id":9659,"date":"2015-02-05T09:44:11","date_gmt":"2015-02-05T09:44:11","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=9659"},"modified":"2015-02-05T09:44:11","modified_gmt":"2015-02-05T09:44:11","slug":"dot-net-admin-and-dll-security-levels","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/","title":{"rendered":"Dot Net Admin and DLL Security Levels"},"content":{"rendered":"<p style=\"text-align: justify;\">Today I will discuss one of the least discussed topic on Sage CRM communities. It has been a long time we are developing our customizations in .NET API. This API methodology is well into our blood now and over the time we have learned all Pro\u2019s and Con\u2019s of using it.<\/p>\n<p><span style=\"color: #993300;\"><strong><em>New Stuff :<\/em> <\/strong><\/span><a title=\"GUMU Sage ERP X3 integration with the new Sage CRM v 7.3\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/01\/24\/gumu-sage-erp-x3-integration-with-the-new-sage-crm-v-7-3\/\" target=\"_blank\">Download GUMU Sage ERP X3 integration compatible with the new Sage CRM v7.3<\/a><\/p>\n<p style=\"text-align: justify;\">All the time we just create our API DLL\u2019s and dump them in the CustomDotNet folder. It does start working. However did you ever wonder what does Security Level mean when we look at these DLL\u2019s under .Net Admin? See below screen where the Security Level has been set to \u201c<strong>Run in Sandbox<\/strong>\u201d.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/02\/1.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-large wp-image-9660\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/02\/1-1024x182.png\" alt=\"1\" width=\"595\" height=\"105\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Now first of all let us understand what exactly this Security level is. This is nothing but the .Net trust level that has been assigned to your API DLL.<\/p>\n<p style=\"text-align: justify;\">The level of trust that you assign to any assembly determines what system resources the assembly has access to. By default, trust is assigned to Managed assemblies based on the zone where the assembly is located. You can also assign trust to assemblies based on the URL, the publisher, the strong name, and many other factors. By using the Trust An Assembly wizard, you can change the trust level of an individual assembly.<\/p>\n<p>The Trust levels that can be defined for your Dot net assembly are as follows.<br \/>\n1. Full<br \/>\n2. High<br \/>\n3. Low<br \/>\n4. None<\/p>\n<p style=\"text-align: justify;\">\u00a0.Net Assembly trust levels can be changed using \u201c.Net framework Configuration\u201d or \u201ccaspol.exe\u201d tool. \u00a0Follow below video to understand how you can change the trust level for your dot net assemblies.<\/p>\n<p style=\"text-align: justify;\"><a title=\"Click Here to watch Video\" href=\"http:\/\/www.screencast.com\/users\/Questpond\/folders\/Default\/media\/779aa1a1-872b-4807-ba73-763f181480cb\" target=\"_blank\" rel=\"noopener\">Click Here to watch Video<\/a><\/p>\n<p>The values that you will see in CRM are.<br \/>\n1. <strong>Run In Sandbox:<\/strong><\/p>\n<p style=\"text-align: justify;\">Using Sandbox running programs can be separated as Testing, Production versions. Sandbox is often used to execute untested code, or untrusted programs from unverified third-parties, suppliers and untrusted users. The sandbox typically provides a tightly-controlled set of resources for guest programs to run in, such as scratch space on disk and memory. Network access, the ability to inspect the host system or read from input devices are usually disallowed or heavily restricted. In this sense, sandboxes are a specific example of virtualization.<\/p>\n<p>2. <strong>Fully trusted:<\/strong><\/p>\n<p style=\"text-align: justify;\">\u00a0If this trust level is assigned, your code is allowed to do anything in the framework, meaning that all (.Net) permissions are granted. &#8220;Full-trust&#8221; is a .NET term used to indicate that it&#8217;s not running in a reduced-privilege .NET sandbox. In .NET prior to 3.5 SP1, this included running from a network share (in the default configuration). It also includes running as a <strong>ClickOnce<\/strong> application that has not requested additional permissions, or in some other browser-based sandbox. Full-trust means it can do anything the user it is running as can do, not that is running as an administrator.<\/p>\n<p style=\"text-align: justify;\">\u00a0So if you are very much sure that the code you are writing will not have any security impact, go ahead and add it to Full Trust level. This will save you from the permission errors on dot net assemblies.<\/p>\n<p><span style=\"color: #993300;\"><em><strong>Also Read<\/strong>:<\/em><\/span><br \/>\n1. <a title=\"Restrict access to Sage ERP X3 Integrated data using Security Matrix feature\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/08\/30\/restrict-access-to-sage-erp-x3-integrated-data-using-security-matrix-feature\/\" target=\"_blank\">Restrict access to Sage ERP X3 Integrated data using Security Matrix feature<\/a><br \/>\n2. <a title=\"Restrict Sage CRM user access to your Sage 100 ERP data with GUMU Security Matrix\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/01\/29\/restrict-sage-crm-users-access-to-your-sage-100-erp-data-with-gumu-security-matrix\/\" target=\"_blank\">Restrict Sage CRM user access to your Sage 100 ERP data with GUMU Security Matrix<\/a><br \/>\n3. <a title=\"IIS Security in Sage CRM v7.2\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/01\/06\/iis-security-in-sage-crm-v7-2\/\" target=\"_blank\">IIS Security in Sage CRM v7.2<\/a><br \/>\n4. <a title=\"Inherit parent entity security settings on child\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2012\/08\/09\/inherit-parent-entity-security-settings-on-child\/\" target=\"_blank\">Inherit parent entity security settings on child<\/a><br \/>\n5. <a title=\"Enhanced Data Security \u2013 Restriction on Custom entity screen buttons\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2010\/06\/06\/enhanced-data-security-restriction-on-custom-entity-screen-buttons\/\" target=\"_blank\">Enhanced Data Security \u2013 Restriction on Custom entity screen buttons<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I will discuss one of the least discussed topic on Sage CRM communities. It has been a long time we are developing our customizations in .NET API. This API methodology is well into our blood now and over the time we have learned all Pro\u2019s and Con\u2019s of using it. New Stuff : Download\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[125,332,356,1],"tags":[445,989,992,2253],"class_list":["post-9659","post","type-post","status-publish","format-standard","hentry","category-dot-net","category-sage-crm","category-security","category-uncategorized","tag-net-admin","tag-dll","tag-dll-security","tag-security-level"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Dot Net Admin and DLL Security Levels - Sage CRM \u2013 Tips, Tricks and Components<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dot Net Admin and DLL Security Levels - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Today I will discuss one of the least discussed topic on Sage CRM communities. It has been a long time we are developing our customizations in .NET API. This API methodology is well into our blood now and over the time we have learned all Pro\u2019s and Con\u2019s of using it. New Stuff : Download\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2015-02-05T09:44:11+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/02\/1-1024x182.png\" \/>\n<meta name=\"author\" content=\"greysagecrm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"greysagecrm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/\",\"name\":\"Dot Net Admin and DLL Security Levels - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/02\/1-1024x182.png\",\"datePublished\":\"2015-02-05T09:44:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/02\/1-1024x182.png\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/02\/1-1024x182.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dot Net Admin and DLL Security Levels\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\",\"name\":\"Sage CRM \u2013 Tips, Tricks and Components\",\"description\":\"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\",\"name\":\"greysagecrm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"caption\":\"greysagecrm\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dot Net Admin and DLL Security Levels - Sage CRM \u2013 Tips, Tricks and Components","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/","og_locale":"en_US","og_type":"article","og_title":"Dot Net Admin and DLL Security Levels - Sage CRM \u2013 Tips, Tricks and Components","og_description":"Today I will discuss one of the least discussed topic on Sage CRM communities. It has been a long time we are developing our customizations in .NET API. This API methodology is well into our blood now and over the time we have learned all Pro\u2019s and Con\u2019s of using it. New Stuff : Download\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2015-02-05T09:44:11+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/02\/1-1024x182.png","type":"","width":"","height":""}],"author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/","name":"Dot Net Admin and DLL Security Levels - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/02\/1-1024x182.png","datePublished":"2015-02-05T09:44:11+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/02\/1-1024x182.png","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/02\/1-1024x182.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/02\/05\/dot-net-admin-and-dll-security-levels\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Dot Net Admin and DLL Security Levels"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/","name":"Sage CRM \u2013 Tips, Tricks and Components","description":"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f","name":"greysagecrm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","caption":"greysagecrm"},"url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/9659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/comments?post=9659"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/9659\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=9659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=9659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=9659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}