<esri:ArcGISDynamicMapServiceLayer url="http://149.157.138.198/ArcGIS_Server/rest/services/davesite/MapServer"/>
Nadeem,
You can nor mix localhost (the url of your ArcGISDynamicMapService) and then use the IP address to access the application with out using a crossdomain.xml. The easy fix in your case is to quit using different urls. If you are going to use the IP address then use it every where.<esri:ArcGISDynamicMapServiceLayer url="http://149.157.138.198/ArcGIS_Server/rest/services/davesite/MapServer"/>
thanx robert, in case i wish to use to use the crossdomain.xml to solve this problem than what should be the entry in the crossdomain.xml and where will should i placed that file.
regards
nadeem