The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Failure accessing config section

Last post 06-27-2007, 2:14 PM by strattonn. 2 replies.
Sort Posts: Previous Next
  •  06-27-2007, 6:38 AM 3395

    Failure accessing config section

    I am doing VS/Office development and so had to create a virtual machine for development with the 2003 version of Office. When I take the project that works on my main machine and try to run it on my virtual box I get this error.

    Request for ConfigurationPermission failed while attempting to access configuration section 'EntitySpaces/connectionInfo'.
    To allow all callers to access the data for this section, set section attribute 'requirePermission' equal 'false' in the configuration file where this section is declared.

    I added a RequirePermission="false" but got a  

    Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Any ideas? I pasted the config as code but it looks messed up, none of the tags came through.

     

    Code:
    "1.0" encoding="utf-8" ?>
    
        
          "EntitySpaces" type="EntitySpaces.Interfaces.esConfigSettings, EntitySpaces.Core">
            "connectionInfo" type="EntitySpaces.Interfaces.esConfigSettings, EntitySpaces.Interfaces" allowLocation="true" allowDefinition="Everywhere" restartOnExternalChanges="true" requirePermission="false"/>
          
        
    
        
          default="SQLDynamic">
            
    
              "SQLDynamic" providerMetadataKey="esDefault" sqlAccessType="DynamicSQL" provider="EntitySpaces.SqlClientProvider" providerClass="DataProvider" connectionString="Data Source=192.168.1.26;Initial Catalog=TRN;uid=sa;pwd=xxxx" databaseVersion="2005"/>
              "Data Source=(Local);Initial Catalog=TRNJLogistics;uid=Logistics;pwd=XXX"-->
            
          
        
    
  •  06-27-2007, 12:38 PM 3412 in reply to 3395

    Re: Failure accessing config section

    This might provide some insight, I'm not trying to a comedian, I just don't know what it might be, see THIS.
    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  06-27-2007, 2:14 PM 3413 in reply to 3412

    Re: Failure accessing config section

    Wow, that was easy. I copied the project to a public directory on my main machine and accessed the project from there. Trust problems. Had to copy the project entirely to my virtual machine. I think I can get that directory to be trusted but it is easier just to copy.

View as RSS news feed in XML