<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>SP2007LookupFields Forum Rss Feed</title><link>http://www.codeplex.com/SP2007LookupFields/Thread/List.aspx</link><description>SP2007LookupFields Forum Rss Description</description><item><title>New Post: Improvement: change behavior to allow xml file in wsp </title><link>http://sp2007lookupfields.codeplex.com/Thread/View.aspx?ThreadId=49164</link><description>&lt;div style="line-height: normal;"&gt;for specification of fields.&lt;br&gt;
Turns out by debugging why on earth activating the feature would not work in a farm, that the reason is simply the code getting the string for the file and trying to access it.&lt;br&gt;
&lt;br&gt;
However, by changing the code internal behavior to do this:&lt;br&gt;
if(!sFilePath.Contains(@&amp;quot;\&amp;quot;))&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //simple file name, needs exact location, add feature root &amp;quot;guesswork&amp;quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFilePath = properties.Feature.Definition.RootDirectory + &amp;quot;\\&amp;quot; + sFilePath;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
&amp;nbsp;&amp;nbsp; XmlTextReader xReader = new XmlTextReader(sFilePath);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
allows the code to access an .xml file packaged within the wsp.&lt;br&gt;
Thus discontinuing the need to &amp;quot;control&amp;quot; a file external to the feature.....&lt;br&gt;
Of course one needs to point to the file still, within the feature XML property with fields like &amp;quot;mycolumndefinitionfile.xml&amp;quot; or &amp;quot;fields.xml&amp;quot; to be classical, just without any directory pointing.&lt;br&gt;
&lt;br&gt;
Took me a while to find out that manually mapping \\server\c$\windows\assembly and copying the pdb to that directory mapped (z:) \gac_msil allows me to debug on the server... and found out that the default executing directory when activating a feature on site collection level through the UI, is in the inetsrv directory.&lt;br&gt;
&lt;br&gt;
So, now I can access the feature directories through the code.&lt;br&gt;
I think. I am about to test. &lt;br&gt;
&lt;br&gt;
&lt;/div&gt;</description><author>myyz</author><pubDate>Wed, 04 Mar 2009 13:03:27 GMT</pubDate><guid isPermaLink="false">New Post: Improvement: change behavior to allow xml file in wsp  20090304010327P</guid></item><item><title>NEW POST: root web</title><link>http://www.codeplex.com/SP2007LookupFields/Thread/View.aspx?ThreadId=15304</link><description>&lt;div class="wikidoc"&gt;
i think this only works in the root-web, right?&lt;br /&gt;
&lt;/div&gt;</description><author>stoefln</author><pubDate>Tue, 18 Sep 2007 13:56:42 GMT</pubDate><guid isPermaLink="false">NEW POST: root web 20070918015642P</guid></item></channel></rss>