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"-->