Link to home
Start Free TrialLog in
Avatar of Nathan Riley
Nathan RileyFlag for United States of America

asked on

Trust Level Issues

I had other permission errors before so I added to my web.config and now getting this error any help?


Parser Error Message: This configuration section cannot be used at this path.  This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

Source Error:


Line 19: <location allowOverride="false">
Line 20:   <system.web>
Line 21:     <trust level="Full" originUrl="" />
Line 22:   </system.web>
Line 23: </location>
Avatar of Jens Fiederer
Jens Fiederer
Flag of United States of America image

web.config inherits from machine.config (for all projects).

Does machine.config lock you out?
From MSDN:

All .NET Framework applications inherit basic configuration settings and defaults from a file named systemroot\Microsoft .NET\Framework\versionNumber\CONFIG\Machine.config. The Machine.config file is used for server-wide configuration settings. Some of these settings cannot be overridden in configuration files that are lower down in the hierarchy.

Avatar of Nathan Riley

ASKER

Yeah problem is that it is hosted thru godaddy and I have heard they won't change the settings I need.  Does that mean something in my code can be changed or do I need a different host?  I cannot see a the machine.config file.
If you want full trust on a host, you are probably going to have to host your own, or get a host who is willing to dedicate a complete machine to you.

 
Or change my code?   All I'm doing is inserting into a stored procedure or a table in sql server.
Yes, you should not need full trust for that!
Mind taking a look at my code?  Any help appreciated thanks.
<%@ Page Language="VB" ContentType="text/html" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:DataSet
runat="Server"
id="Procedure1"
IsStoredProcedure="true"
CreateDataSet="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_nathan") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_nathan") %>'
CommandText="dbo.p_INS_SplashPage"
Debug="true"
>
  <Parameters>
    <Parameter  Name="@RETURN_VALUE"   Type="Int"   Direction="ReturnValue" />
    <Parameter  Name="@Name"  Value='<%# IIf((Request.QueryString("Name") <> Nothing), Request.QueryString("Name"), "") %>'  Type="VarChar"   Direction="Input" />
    <Parameter  Name="@Zip"  Value='<%# IIf((Request.QueryString("Postal Code") <> Nothing), Request.QueryString("Postal Code"), "") %>'  Type="VarChar"   Direction="Input" />
    <Parameter  Name="@Interest"  Value='<%# IIf((Request.QueryString("favmag1") <> Nothing), Request.QueryString("favmag1"), "") %>'  Type="VarChar"   Direction="Input" />
    <Parameter  Name="@ft"  Value='<%# IIf((Request.QueryString("radioformat") <> Nothing), Request.QueryString("radioformat"), "") %>'  Type="VarChar"   Direction="Input" />
    <Parameter  Name="@pt"  Value='<%# IIf((Request.QueryString("radioformat") <> Nothing), Request.QueryString("radioformat"), "") %>'  Type="VarChar"   Direction="Input" />
    <Parameter  Name="@InterestLvl1"  Value='<%# IIf((Request.QueryString("radiosite") <> Nothing), Request.QueryString("radiosite"), "") %>'  Type="VarChar"   Direction="Input" />
    <Parameter  Name="@InterestLvl2"  Value='<%# IIf((Request.QueryString("Radiosite") <> Nothing), Request.QueryString("Radiosite"), "") %>'  Type="VarChar"   Direction="Input" />
    <Parameter  Name="@InterestLvl3"  Value='<%# IIf((Request.QueryString("Radiosite") <> Nothing), Request.QueryString("Radiosite"), "") %>'  Type="VarChar"   Direction="Input" />
    <Parameter  Name="@Check"  Value='<%# IIf((Request.QueryString("Check1") <> Nothing), Request.QueryString("Check1"), "") %>'  Type="VarChar"   Direction="Input" />
    <Parameter  Name="@Phone"  Value='<%# IIf((Request.QueryString("Phone") <> Nothing), Request.QueryString("Phone"), "") %>'  Type="VarChar"   Direction="Input" />
    <Parameter  Name="@Email"  Value='<%# IIf((Request.QueryString("email") <> Nothing), Request.QueryString("email"), "") %>'  Type="VarChar"   Direction="Input" />
  </Parameters>
</MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="Description of your web page goes here." />
<meta name="keywords" content="Keywords for you web page go here. Each keyword or group of keyword phrases are separated by a comma. Keep this keyword list short and relevant to the content of this specific page and also relevant to the tile of the specific page." />
<title>DIV - rounded</title>
<link rel="shortcut icon" href="themes/default/images/favicon.ico" />
<link href="themes/default/msvs_template_rounded_divs.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {font-size: .8}
-->
</style>
</head>
<body>
<!-- 
  
  SITE NAME & SLOGAN
  
  -->
<div id="header-container">
  <div id="header-left">
    <a href="#" title="Site name home page">new mindset now </a>
  </div>
  <div id="header-right">
    ready for plan b?
  </div>
</div>
<div id="posterphoto"><img src="themes/default/poster-photo-man-on-bridge.jpg" width="758" height="188" alt="Write a short description of the image here. It will show if the image is not loaded. Non visual browsers and search engines will also read this text." title="Users will see this text when they roll over this image. Non-visual browsers will read this text to blind users." /></div>
<!-- 
  
  TOP NAV 
  
  -->
<div class="mainnav-container">
  <div class="mainnav-left"><div class="none"><a href="#maincontent">skip to the main content area of this page</a></div>
    <ul>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Home</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">News</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Products</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">About</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Contact</a></li>
      <li></li><li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link."></a></li>
    </ul>
  </div>
  <div class="mainnav-right">
    <form action="#" method="get" title="Sign up to our mailing list" dir="ltr" xml:lang="en">
      <fieldset>
      <legend>Search our site</legend>
      <label for="search">search our site</label>
      <input onfocus="this.select()" onblur="if (this.value==''){this.value='enter search phrase'}" id="search" name="search" type="text" class="searchbox" accesskey="4" value="enter search phrase" size="20" />
      <label>search</label>
      <input class="button-search" name="Search" type="button" value="Search" />
      </fieldset>
    </form>
  </div>
  <div class="clear"></div>
</div>
<!-- 
 
  CONTENT
 
  -->
<div id="content-container">
  <!-- 
 
    SIDE COLUMN
 
    -->
  <div id="content-side">
    <div class="section-title-not-heading">toolbar section </div>
    <p>What text would you like here mike? </p>
    <div class="separator-side-column"></div>
    <ul class="link-list-vertical">
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Sub nav link one</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Sub nav link two</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Sub nav link three</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Sub nav link four</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Sub nav link five</a></li>
    </ul>
    <div class="separator-side-column"></div>
    <ul class="list">
      <li>Sub nav link one</li>
      <li>Sub nav link two</li>
      <li>Sub nav link three</li>
      <li>Sub nav link four</li>
      <li>Sub nav link five</li>
    </ul>
    <div class="separator-side-column"></div>
  </div>
  <div align="center">
    <!-- 
	
	MAIN CONTENT AREA
	
	-->
  </div>
  <div id="content">
    <div id="breadcrumbs"> <a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Home</a> / <a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Breadcrumb link</a> / Page Title</div>
    <a name="maincontent" id="maincontent"></a>
	<h1>Technology:</h1>
	<p><a href="www.noobing.com?side=172">Noobing</a></p>
	<p><a href="www.noobing.com?side=172"><img src="themes/default/noobing.png" width="400" height="254" alt="" /></a></p>
	<p><a href="www.5linx.net/newmindsetnow" class="style1">5Linx</a></p>
	<p>&nbsp;</p>
  </div>
</div>
<!-- 
  
  END CONTENT CONTAINER 
  
  -->
<!-- 
  
  BOTTOM NAV 
  
  -->
<div class="mainnav-container">
  <div class="mainnav-left">
    <ul>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Home</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">News</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Products</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">About</a></li>
      <li><a href="#" title="Users will see this text when they roll over this link. Keep it short and consise. Use this text to clarify the purpose of the link.">Contact</a></li>
    </ul>
  </div>
  <div class="mainnav-right"></div>
  <div class="clear"></div>
</div>
<!-- 
  
  FOOTER
  
   -->
<div id="footer-container">
  <div id="footer-right"></div>
  <div id="footer-left">
    <p>One Your Street Name, City State Zip Code | 555-555-1212 | 555-555-1212 fax<br />
      <span class="small-text">Copyright &copy; 2008 New Mind Set Now </span></p>
  </div>
</div>
</body>
</html>

Open in new window

I don't mind, although I've never used the DreamWeaver controls (I got this through the .NET and ASP.NET groups).  If you get an error, what is it and where?
Oh, I thought it was an issue with asp.net, maybe not.  Here is the error I get:

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

Source Error:

Line 1:  <%@ Page Language="VB" ContentType="text/html" %>
Line 2:  <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
Line 3:  <MM:DataSet
Line 4:  runat="Server"
Line 5:  id="Procedure1"
Are you willing to do without the DreamWeaver controls?

You are definitely not the only one having this problem:
http://www.dmxzone.com/forum/topic.asp?topic_id=36215

this one seems to have an approach:
https://www.experts-exchange.com/questions/22819174/Trouble-deploy-ASP-NET-2-0-with-MySql-5-0-db.html
No I have no problem doing it without dreamweaver, but didn't know how I used the pre-made server behaviors to even accomplish this much.
ASKER CERTIFIED SOLUTION
Avatar of Jens Fiederer
Jens Fiederer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
either inserting into a table in sql or calling a stored procedure that will insert into a table.