Good call.

Almost all of my tweaks were done in the Security tab under project
properties.

- Under the "Zone your application will be installed from:" label I
selected "(Custom)"
- As for the permissions required by the application, I had to include
SqlClientPermission as well as UIPermission. In order to negate
problems for future development I selected "Grant assemblies
unrestricted access to x" where is the selected permission. That was
done for both permissions shown above. Note that the permissions you
select to include will be on a per application basis and no two cases
will be the same.
- Under the "Advanced..." button I unselected both options ("Debug
this application with the selected permission set" and "Grant the
application access to its site of origin").

Also, since the application and SQL Server are residing under
different domains I had to set my connection string to include the
database server domain. So my original connection string data source
had to go from "Data Source=DB_SERVER" to "Data
Source=DB_SERVER.DOMAIN".

Lastly, I had to set `requirePermission="false"` on all of my
configuration sections. My `configSections` ended up like this:

  <configSections>
    <section name="activerecord"
type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler,
Castle.ActiveRecord" requirePermission="false"/>
    <section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"
requirePermission="false"/>
    <section name="nhibernate"
type="System.Configuration.NameValueSectionHandler, System,
Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false"/>
    <section name="hibernate-configuration" requirePermission="false"
type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
  </configSections>

After everything was said and done I was successfully able to publish
this application on a file share from a different domain and have the
users install the application with no issues. Applying these steps to
our other applications and using our newly compiled assemblies also
worked like a charm.

Again, thanks for the help. :)

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to