<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Report a Silverlight Bug</title><link>http://forums.silverlight.net/forums/28.aspx</link><description>Found a bug in Silverlight? Use this forum to describe the bug and the code or steps to reproduce it.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: mac with entity framework</title><link>http://forums.silverlight.net/forums/thread/278411.aspx</link><pubDate>Sat, 29 Aug 2009 15:18:09 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:278411</guid><dc:creator>Bill Locke</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/278411.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=278411</wfw:commentRss><description>&lt;p&gt;I posted this message a while back and things have been pretty quiet about this subject. Since we have resolved this problem (in a manner of speaking) and moved on, I thought I would share our experiences.&lt;/p&gt;
&lt;p&gt;We never could get the mac to work with the entity framework at all. It consistantly produced the errors described above. The one thing that we noticed was that the program was able to make it through our security request which was done with a standard WCF service.&amp;nbsp;We have abandoned the Entity Framework in favor of our own custom DAL. Since we are using a WCF service, the mac now seems to be much happier about accessing&amp;nbsp;the web site.&lt;/p&gt;
&lt;p&gt;I must say that this was not the only factor considered&amp;nbsp;in moving away from the Entity Framework, but just one of many factors that influenced our decision. Even though we delivered the site with the EF in the first couple of builds, we redid the backend before going live.&lt;/p&gt;
&lt;p&gt;The Entity Framework seemed to be more&amp;nbsp;of a hindrance than an enabling technology for us. There was thousands of lines of XML definitions for it that we constantly had to tweak. The stored proceduredures had to be&amp;nbsp;wired up to this framework manually. It wouldn&amp;#39;t use select stored procedures in combination with the Insert, Update and Delete stored procedures. It required delete stored procedures that had to pass every parameter used by the insert and update procedures. Since we couldn&amp;#39;t use select stored procedures, we ended up having to use views, so we had to create those.&amp;nbsp;There was thousands (in our case about 30,000) lines of code on the server AND the client side. We had to use T4 templates to massage the code on the client side. All this for about 30 input screens.&lt;/p&gt;
&lt;p&gt;We are now using a custom DAL and dynamically creating the client side classes at run time.&amp;nbsp;The server and the client code is static across all&amp;nbsp;database access. We no longer need the thousands of lines of code, the special delete procedures, the views or the XML that comes along with the EF.&lt;/p&gt;</description></item><item><title>Re: mac with entity framework</title><link>http://forums.silverlight.net/forums/thread/238462.aspx</link><pubDate>Fri, 26 Jun 2009 19:20:29 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:238462</guid><dc:creator>Bill Locke</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/238462.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=238462</wfw:commentRss><description>&lt;p&gt;I finally got back to this(other fires are&amp;nbsp;mostly out).&amp;nbsp;I set up fiddler and it produced no real insight, except for the fact that the request never leaves the building. The security service works OK, this is a hand coded WCF service. The code that I posted prviously never sends the request for the entity framework when on a mac. The basic fiddler information follows, exact same site, only difference is the mac or PC. I&amp;#39;ve confirmed that Safari on a PC works and that the latest mas OS makes no difference. &lt;/p&gt;
&lt;p&gt;This is not a killer for us, but would really be nice if it worked. I would certainly look less like an idiot if it did.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the mac it looks like the following:&lt;/p&gt;
&lt;p&gt;POST &lt;a href="http://---------/CredentSecurity.svc"&gt;http://---------/CredentSecurity.svc&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;(no further activity, dies on the screen&amp;nbsp;list request)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the PC, a more normal access (images removed for brevity)&lt;/p&gt;
&lt;p&gt;POST &lt;a href="http://---------/CredentSecurity.svc"&gt;http://---------/CredentSecurity.svc&lt;/a&gt;&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentScreenDefinitionDataService.svc/view_InternetScreens?$orderby=GroupingName,Caption"&gt;http://---------/CredentScreenDefinitionDataService.svc/view_InternetScreens?$orderby=GroupingName,Caption&lt;/a&gt;&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentScreenDefinitionDataService.svc/tblSLScreenDefinition?$filter=NameSpace%20eq%20&amp;#39;Symed&amp;#39;%20and%20ScreenName%20eq%20&amp;#39;PhysicianDetail&amp;#39;&amp;amp;$orderby=FieldID"&gt;http://---------/CredentScreenDefinitionDataService.svc/tblSLScreenDefinition?$filter=NameSpace%20eq%20&amp;#39;Symed&amp;#39;%20and%20ScreenName%20eq%20&amp;#39;PhysicianDetail&amp;#39;&amp;amp;$orderby=FieldID&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentScreenDefinitionDataService.svc/tblSLPropertyDefinition?$filter=NameSpace%20eq%20&amp;#39;Symed&amp;#39;%20and%20ScreenName%20eq%20&amp;#39;PhysicianDetail&amp;#39;&amp;amp;$orderby=FieldID"&gt;http://---------/CredentScreenDefinitionDataService.svc/tblSLPropertyDefinition?$filter=NameSpace%20eq%20&amp;#39;Symed&amp;#39;%20and%20ScreenName%20eq%20&amp;#39;PhysicianDetail&amp;#39;&amp;amp;$orderby=FieldID&lt;/a&gt;&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentDataService.svc/vwPhysicianDetail()?$filter=PhysicianID%20eq%201889%20&amp;amp;$orderby"&gt;http://---------/CredentDataService.svc/vwPhysicianDetail()?$filter=PhysicianID%20eq%201889%20&amp;amp;$orderby&lt;/a&gt;=&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentDataService.svc/vwDegrees()?$filter=&amp;amp;$orderby=ShortName"&gt;http://---------/CredentDataService.svc/vwDegrees()?$filter=&amp;amp;$orderby=ShortName&lt;/a&gt;&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentDataService.svc/vwMaritalStatus()?$filter=&amp;amp;$orderby"&gt;http://---------/CredentDataService.svc/vwMaritalStatus()?$filter=&amp;amp;$orderby&lt;/a&gt;=&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentDataService.svc/vwStates()?$filter=&amp;amp;$orderby=LongName"&gt;http://---------/CredentDataService.svc/vwStates()?$filter=&amp;amp;$orderby=LongName&lt;/a&gt;&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentDataService.svc/vwtblStates()?$filter=&amp;amp;$orderby=LongName"&gt;http://---------/CredentDataService.svc/vwtblStates()?$filter=&amp;amp;$orderby=LongName&lt;/a&gt;&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentDataService.svc/vwtblStates()?$filter=&amp;amp;$orderby=LongName"&gt;http://---------/CredentDataService.svc/vwtblStates()?$filter=&amp;amp;$orderby=LongName&lt;/a&gt;&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentDataService.svc/vwtblStates()?$filter=&amp;amp;$orderby=LongName"&gt;http://---------/CredentDataService.svc/vwtblStates()?$filter=&amp;amp;$orderby=LongName&lt;/a&gt;&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentDataService.svc/vwGender()?$filter=&amp;amp;$orderby"&gt;http://---------/CredentDataService.svc/vwGender()?$filter=&amp;amp;$orderby&lt;/a&gt;=&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;GET &lt;a href="http://---------/CredentDataService.svc/vwtblContactMethod()?$filter=&amp;amp;$orderby=ContactMethod"&gt;http://---------/CredentDataService.svc/vwtblContactMethod()?$filter=&amp;amp;$orderby=ContactMethod&lt;/a&gt;&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;POST &lt;a href="http://---------/CredentSecurity.svc"&gt;http://---------/CredentSecurity.svc&lt;/a&gt;&lt;br /&gt;200 OK&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: mac with entity framework</title><link>http://forums.silverlight.net/forums/thread/236047.aspx</link><pubDate>Sun, 21 Jun 2009 18:32:24 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:236047</guid><dc:creator>Bill Locke</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/236047.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=236047</wfw:commentRss><description>&lt;p&gt;Thanks for the response&amp;nbsp;Ken, I&amp;#39;ll try getting that set up tomorrow and see what it tells me.&lt;/p&gt;</description></item><item><title>Re: mac with entity framework</title><link>http://forums.silverlight.net/forums/thread/235852.aspx</link><pubDate>Sat, 20 Jun 2009 16:30:17 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:235852</guid><dc:creator>ken tucker</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/235852.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=235852</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I was wondering what fiddler shows is going on during the web service call.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;See &lt;font&gt;&lt;font size="2"&gt;Can I configure Fiddler to debug traffic from another 
machine (even a Mac or 
Unix box)? in this link&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;a href="http://www.fiddler2.com/fiddler/help/hookup.asp#Q-NonWindows"&gt;http://www.fiddler2.com/fiddler/help/hookup.asp#Q-NonWindows&lt;/a&gt;</description></item><item><title>mac with entity framework</title><link>http://forums.silverlight.net/forums/thread/235826.aspx</link><pubDate>Sat, 20 Jun 2009 13:31:19 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:235826</guid><dc:creator>Bill Locke</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/235826.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=235826</wfw:commentRss><description>Not sure this is the place for this, but here goes.&lt;br /&gt;&lt;br /&gt;

I am having trouble getting a silverlight application to run on a mac. This application uses SL 2.0 and the entity framework and runs fine on a Windows machine.&lt;br /&gt;&lt;br /&gt;

On the mac, the application starts up fine and even accesses a custom WCF service on the server OK (for security).&lt;br /&gt;&lt;br /&gt;

At the point that I make the first request for data the program fails. If I use a relative Url it fails with an error about HtmlPage. (I didn&amp;#39;t keep that exact error)  This failure occurs in the LoadList function below.&lt;br /&gt;&lt;br /&gt;

With an absolute url it fails with the following error. &amp;quot;Internal error at &amp;#39;ScriptXmlHttpRequest.CreateNativeRequest&amp;#39;, this time on the EndExecute. In searching for this error the only reference I can find about it is calling the entity framework on a non-UI thread (doesn&amp;#39;t work).&lt;br /&gt;&lt;br /&gt;

Does anybody have any information on this? Again, it works either way on Windows. I nailed down the exact spot of the failure by remote debugging the mac (pretty neat), but I&amp;#39;ve hit a brick wall here.&lt;br /&gt;&lt;br /&gt;

Thanks, Bill&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;


        public void LoadList()&lt;br /&gt;
        {&lt;br /&gt;
            string baseURI = Application.Current.Host.Source.AbsoluteUri.Substring(0, Application.Current.Host.Source.AbsoluteUri.LastIndexOf(&amp;quot;ClientBin&amp;quot;));&lt;br /&gt;&lt;br /&gt;
 
            Uri u = new Uri(baseURI + &amp;quot;CredentScreenDefinitionDataService.svc&amp;quot;, UriKind.Absolute);&lt;br /&gt;
            svcScreenContext = new CredentScreenDefinitionEntities(u);&lt;br /&gt;
            svcScreenContext.BeginExecute(&lt;br /&gt;
                new Uri(u.AbsoluteUri + &amp;quot;/view_InternetScreens?$orderby=GroupingName,Caption&amp;quot;, UriKind.Absolute),&lt;br /&gt;
                new AsyncCallback(OnScreenListLoadComplete),&lt;br /&gt;
                svcScreenContext);&lt;br /&gt;
        }&lt;br /&gt;&lt;br /&gt;
 
        void OnScreenListLoadComplete(IAsyncResult result)&lt;br /&gt;
        {&lt;br /&gt;
            DataServiceContext dsListScreen = (DataServiceContext)result.AsyncState;&lt;br /&gt;
            try&lt;br /&gt;
            {&lt;br /&gt;
                IEnumerable r = dsListScreen.EndExecute(result);&lt;br /&gt;
                List screenListDefinition = r.ToList();&lt;br /&gt;
                OnScreenListLoadComplete(new ScreenListLoadCompleteEventParms(screenListDefinition));&lt;br /&gt;
            }&lt;br /&gt;
            catch (Exception e)&lt;br /&gt;
            {&lt;br /&gt;
                MessageBox.Show(e.Message);&lt;br /&gt;
                if (e.InnerException != null)&lt;br /&gt;
                {&lt;br /&gt;
                    MessageBox.Show(e.InnerException.Message);&lt;br /&gt;
                    if (e.InnerException.InnerException != null)&lt;br /&gt;
                        MessageBox.Show(e.InnerException.InnerException.Message);&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
 
    }&lt;br /&gt;</description></item></channel></rss>