Project Delpoyment - Machine Config filehttp://forums.asp.net/t/302436.aspx/1?Project+Delpoyment+Machine+Config+fileMon, 11 Aug 2003 20:35:07 -0400302436302436http://forums.asp.net/p/302436/302436.aspx/1?Project+Delpoyment+Machine+Config+fileProject Delpoyment - Machine Config file Hi, I'm trying to work out a neat way of creating a deployment package for my mobile siite That will install it and make modifications to the machine config file. I've used a vs.net setup and deployment project which creates the basic package but I was wondering if there is any user friendly way to add filters into machine.cofig as the people who will be installing my site are not developers. Why are the device filters in the machine.config file anyway? Surely they should be in their own file that can be distributed with an application? thanks Iain 2003-08-07T10:44:40-04:00303416http://forums.asp.net/p/302436/303416.aspx/1?Re+Project+Delpoyment+Machine+Config+fileRe: Project Delpoyment - Machine Config file You can add device filters in the web.config - they need not be in machine.config, also you can even declare filters on the page. Let me know if you need a sample for that. Hope that helps Kashif 2003-08-08T02:10:08-04:00303841http://forums.asp.net/p/302436/303841.aspx/1?Re+Project+Delpoyment+Machine+Config+fileRe: Project Delpoyment - Machine Config file An example would be good thanks Iain 2003-08-08T13:49:09-04:00304175http://forums.asp.net/p/302436/304175.aspx/1?Re+Project+Delpoyment+Machine+Config+fileRe: Project Delpoyment - Machine Config file something as follows <pre class="prettyprint">&lt;script runat=server&gt; public bool SupportsTable(System.Web.Mobile.MobileCapabilities mc, String str) { if ((mc.Tables) &amp;&amp; (mc.PreferredRenderingType == &quot;html32&quot;)) { return true; } else return false; } &lt;/script&gt; ... &lt;Mobile:List id=&quot;list1&quot; runat=server DataTextField = &quot;foo&quot; DataValueField = &quot;bar&quot; &gt; //some table tags and temlates in here... //some templates in here...</pre> Hope that helps Kashif 2003-08-08T18:25:15-04:00305544http://forums.asp.net/p/302436/305544.aspx/1?Re+Project+Delpoyment+Machine+Config+fileRe: Project Delpoyment - Machine Config file Hi, I probably didn't explain myself properly, I mean the user agent filters for device capabilites in the machine config file e.g. ... We've had to modify several of these for our application, mainly to add colour blackberry support and it means we have to modify the machine.config file on the target deployment machine. This makes deployment a bit more awkward. thanks Iain 2003-08-11T07:44:47-04:00306200http://forums.asp.net/p/302436/306200.aspx/1?Re+Project+Delpoyment+Machine+Config+fileRe: Project Delpoyment - Machine Config file You can add the to the web.config and it should work - are you having any problems in this? Hope that helps Kashif 2003-08-11T20:35:07-04:00