ASP.NET 3.5 Extensions Preview (RETIRED)http://forums.asp.net/1147.aspx/1?ASP+NET+3+5+Extensions+Preview+RETIRED+Setup issues and general questions regarding this release. This forum is now retired. For specific topics use ASP.NET MVC , ASP.NET Controls for Silverlight , ASP.NET Dynamic Data , ADO.NET Entity Framework , ADO.NET Data Services or the ASP.NET AJAX UI forum.Thu, 23 Aug 2012 04:52:22 -0400urn:uuid:00000000-0000-0000-0000-000000001147urn:uuid:00000000-0000-0000-0000-000002939851http://forums.asp.net/p/1384617/2939851.aspx/1?Access+to+the+path+c+msc_cntr_0+txt+is+denied+Access to the path c:\...\msc_cntr_0.txt is denied. Hello Guys,<br> I deployed my web app to test environment and I keep getting this error at random:<br> <font size="2"></font><font size="2"> <p>Access </font><font color="#0000ff" size="2">to</font><font size="2"> the </font> <font color="#0000ff" size="2">path</font><font size="1"> </font><font color="#ff0000" size="2">'C:\Inetpub\mywebApp\msc_cntr_0.txt'</font><font size="1"> </font><font color="#808080" size="2">is</font><font size="2"> denied</font><font color="#808080" size="2">.<br> <br> <font color="#000000" style="font-size:12px">The state of the application when this error is generated:<br> the chart data source has only 1 record to draw with and its the first time it's being drawn (rendered).<br> If I go back to home page and then come to this, no errors. (read: no data changes...all i need to do is refresh the page).<br> <br> Any ideas what might be wrong?</font></font></p> 2009-02-13T14:06:21-05:002009-02-13T14:06:21.02-05:00urn:uuid:00000000-0000-0000-0000-000002164846http://forums.asp.net/p/1217965/2164846.aspx/1?ContextType+Domain+gets+PrincipalServerDownException+unless+specify+domain+controller+by+nameContextType.Domain gets PrincipalServerDownException unless specify domain controller by name <p>Hi There</p> <p>Just trying out the new System.DirectoryServices.AccountManagement with Visual Studio 2008 Express Edition.</p> <p>&nbsp;My scenario:</p> <p>&nbsp;-Client Windows XP joined to domain</p> <p>-One Windows Server 2003 domain controller / IIS </p> <p>&nbsp;I want to get the full name of the logged in user. This works if I specify the domain controller name. Specifying the domain name (either fully qualified or NETBIOS) does not work. Any suggestions ? Am I doing something wrong here.</p> <p>&nbsp;</p> <p>My working code is like this:</p> <p>&nbsp;</p> <p>Dim domainContext As New System.DirectoryServices.AccountManagement.PrincipalContect(DirectoryServices.AccountManagement.ContextType.Domain,&quot;testiisdc01&quot;)</p> <p>&nbsp;Response.Write (&quot;Welcome &quot; &amp;&nbsp; System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(domainContext, User.Identity.Name).DisplayName)</p> <p>&nbsp;</p> <p>The output is something like:</p> <p>&nbsp;Welcome Bob Smith.</p> <p>&nbsp;</p> <p>However if I replace the DC server name&nbsp;testiisdc01 with domain name i.e. testdomain.priv or testdomain, or &quot;testdomain&quot;,&quot;DC=testdomain,DC=priv&quot;</p> <p>I get the PrincipalServerDownException error .</p> <p><br> I want this code to just use the domain that the current user is logged in under. Any idea how to get this to work?</p> <p>&nbsp;</p> 2008-02-11T04:43:35-05:002008-02-11T04:43:35.913-05:00urn:uuid:00000000-0000-0000-0000-000003382318http://forums.asp.net/p/1466006/3382318.aspx/1?Extension+methods+in+net+2+0Extension methods in .net 2.0 <p>hi, </p> <p>m trying to create an extension method in .net 2.0. Extension methods are supported in 3.5 but when i searched in google i got the below code.</p> <pre><span></span><span>namespace</span> System.Runtime.CompilerServices</pre> <pre><span> </span>{</pre> <pre><span> </span> [AttributeUsage(AttributeTargets.Method)]</pre> <pre><span> </span> <span>public</span> <span>sealed</span> <span>class</span> ExtensionAttribute : Attribute</pre> <pre><span> </span> {</pre> <pre><span> </span> <span>public</span> ExtensionAttribute() { }</pre> <pre><span> </span> }</pre> <pre><span> </span>}</pre> <p>In many sites its given that if we add the below code to 2.0 also the extension method will work. but still m getting error some thing like this</p> <p><font size="2" face="Courier New">Cannot define a new extension method because the compiler required type 'System.Runtime.CompilerServices.ExtensionAttribute' cannot be found. Are you missing a reference to System.Core.dll?</font></p> <p><font size="2" face="Courier New">please any one help me.</font></p> <p><font size="2" face="Courier New">thanx<br> </font></p> 2009-09-02T06:50:54-04:002009-09-02T06:50:54.81-04:00urn:uuid:00000000-0000-0000-0000-000002712547http://forums.asp.net/p/1340663/2712547.aspx/1?Add+view+to+EDMX+produces+no+resultsAdd view to EDMX produces no results <p>I've got a small database with a single table and with a view. The view is coming from a different database (i.e, it does select * from db.dbo.someTable). I can select from the view fine using a query. When I try to add the view using &quot;Update Model from Database&quot;, the wizard opens, I check my view under the views branch of the tree and click finish. The wizard goes away but the view is never added.</p> <p>&nbsp;If I update again, I can still see the view under the &quot;Add&quot; portion of the wizard (not under refresh). No matter how many times I add it, it never actually adds and no errors pop up.</p> <p>&nbsp;Also, as an interesting side note... if I close my EDMX window I cannot open it back up from the solution explorer. Double clicking on it simply expands the node. I have to restart studio to get it to work again.</p> <p>Anyone seen this? The user who is adding the view is pretty restricted - the only thing it can do is select * from the view. Are there special permissions the user needs to use the model designer?</p> 2008-10-29T15:04:29-04:002008-10-29T15:04:29.977-04:00urn:uuid:00000000-0000-0000-0000-000002825808http://forums.asp.net/p/1363948/2825808.aspx/1?Metadata+Path+issue+for+Entity+Connection+Unable+to+load+the+specified+metadata+resource+Metadata Path issue for Entity Connection "Unable to load the specified metadata resource." I have two folders in a project Connections &amp; Entities, I wan't to build an EntityConnection object in a class in the Connections folder that sets up connections for Entity Models in the Entities folder but I am having a problem with the MetaData property: When I run the code with the above setup and entityBuilder.Metadata = @&quot;res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl&quot;; I get an &quot;Unable to load the specified metadata resource.&quot;, If I move the Entity Models out of the Entities folder into the root of the project it works correctly. If I move the Entity Models back to the Entities folder and change the MetaData string to @&quot;res://*/Entities/Model1.csdl|res://*/Entities/Model1.ssdl|res://*/Entities/Model1.msl&quot;; I get the following error : &quot;The specified metadata path is not valid. A valid path must be either an existing directory, an existing file with extension '.csdl', '.ssdl', or '.msl', or a URI that identifies an embedded resource.&quot; Any ideas on how I can set this up correctly? Thanks in advance Rob 2008-12-23T01:31:08-05:002008-12-23T01:31:08.773-05:00urn:uuid:00000000-0000-0000-0000-000003332989http://forums.asp.net/p/1455866/3332989.aspx/1?error+while+compling+Entity+Framework+Sampleerror while compling Entity Framework Sample <p>im trying to complie a sample application that i got from codeplex. Im getting following errors. Anyone please help me</p> <p>thanks,</p> <p><br> </p> <p>Error&nbsp;&nbsp; &nbsp;3&nbsp;&nbsp; &nbsp;Error 5: The required attribute 'Provider' is missing.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.edmx&nbsp;&nbsp; &nbsp;109&nbsp;&nbsp; &nbsp;7&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Error&nbsp;&nbsp; &nbsp;4&nbsp;&nbsp; &nbsp;The type arguments for method 'System.Data.Objects.DataClasses.StructuralObject.SetValidValue&lt;T&gt;(T, T, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.Designer.cs&nbsp;&nbsp; &nbsp;208&nbsp;&nbsp; &nbsp;35&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Error&nbsp;&nbsp; &nbsp;5&nbsp;&nbsp; &nbsp;The type arguments for method 'System.Data.Objects.DataClasses.StructuralObject.SetValidValue&lt;T&gt;(T, T, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.Designer.cs&nbsp;&nbsp; &nbsp;231&nbsp;&nbsp; &nbsp;34&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Error&nbsp;&nbsp; &nbsp;6&nbsp;&nbsp; &nbsp;The type arguments for method 'System.Data.Objects.DataClasses.StructuralObject.SetValidValue&lt;T&gt;(T, T, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.Designer.cs&nbsp;&nbsp; &nbsp;254&nbsp;&nbsp; &nbsp;35&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Error&nbsp;&nbsp; &nbsp;7&nbsp;&nbsp; &nbsp;The type arguments for method 'System.Data.Objects.DataClasses.StructuralObject.SetValidValue&lt;T&gt;(T, T, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.Designer.cs&nbsp;&nbsp; &nbsp;300&nbsp;&nbsp; &nbsp;37&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Error&nbsp;&nbsp; &nbsp;8&nbsp;&nbsp; &nbsp;The type arguments for method 'System.Data.Objects.DataClasses.StructuralObject.SetValidValue&lt;T&gt;(T, T, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.Designer.cs&nbsp;&nbsp; &nbsp;323&nbsp;&nbsp; &nbsp;40&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Error&nbsp;&nbsp; &nbsp;9&nbsp;&nbsp; &nbsp;The type arguments for method 'System.Data.Objects.DataClasses.StructuralObject.SetValidValue&lt;T&gt;(T, T, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.Designer.cs&nbsp;&nbsp; &nbsp;346&nbsp;&nbsp; &nbsp;37&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Error&nbsp;&nbsp; &nbsp;10&nbsp;&nbsp; &nbsp;The type arguments for method 'System.Data.Objects.DataClasses.StructuralObject.SetValidValue&lt;T&gt;(T, T, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.Designer.cs&nbsp;&nbsp; &nbsp;469&nbsp;&nbsp; &nbsp;37&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Error&nbsp;&nbsp; &nbsp;11&nbsp;&nbsp; &nbsp;The type arguments for method 'System.Data.Objects.DataClasses.StructuralObject.SetValidValue&lt;T&gt;(T, T, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.Designer.cs&nbsp;&nbsp; &nbsp;636&nbsp;&nbsp; &nbsp;37&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Error&nbsp;&nbsp; &nbsp;12&nbsp;&nbsp; &nbsp;The type arguments for method 'System.Data.Objects.DataClasses.StructuralObject.SetValidValue&lt;T&gt;(T, T, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.Designer.cs&nbsp;&nbsp; &nbsp;803&nbsp;&nbsp; &nbsp;30&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Error&nbsp;&nbsp; &nbsp;13&nbsp;&nbsp; &nbsp;The type arguments for method 'System.Data.Objects.DataClasses.StructuralObject.SetValidValue&lt;T&gt;(T, T, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;&nbsp; &nbsp;D:\data\RnD\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.Designer.cs&nbsp;&nbsp; &nbsp;826&nbsp;&nbsp; &nbsp;32&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Warning&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;The element 'Designer' in namespace 'http://schemas.microsoft.com/ado/2007/06/edmx' has invalid child element 'ReverseEngineer' in namespace 'http://schemas.microsoft.com/ado/2007/06/edmx'. List of possible elements expected: 'Diagrams' in namespace 'http://schemas.microsoft.com/ado/2007/06/edmx'.&nbsp;&nbsp; &nbsp;D:\data\RnD\ERP Architecture\EntityFramework\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.edmx&nbsp;&nbsp; &nbsp;14&nbsp;&nbsp; &nbsp;6&nbsp;&nbsp; &nbsp;GettingStarted_CS<br> Warning&nbsp;&nbsp; &nbsp;2&nbsp;&nbsp; &nbsp;The required attribute 'Provider' is missing.&nbsp;&nbsp; &nbsp;D:\data\RnD\EFSamples\GettingStarted\GettingStarted_CS\MyTravelModel.edmx&nbsp;&nbsp; &nbsp;109&nbsp;&nbsp; &nbsp;8&nbsp;&nbsp; &nbsp;GettingStarted_CS</p> 2009-08-06T09:44:31-04:002009-08-06T09:44:31.707-04:00urn:uuid:00000000-0000-0000-0000-000002248479http://forums.asp.net/p/1237037/2248479.aspx/1?Advantages+of+LINQ+Advantages of LINQ? May i know what are the main advantages using LINQ over SQL management studio?<br> 2008-03-22T12:55:02-04:002008-03-22T12:55:02.763-04:00urn:uuid:00000000-0000-0000-0000-000003317207http://forums.asp.net/p/1452406/3317207.aspx/1?Download+ASP+NET+3+5+Extensions+PreviewDownload ASP.NET 3.5 Extensions Preview <p>Where can I download the ASP.NET 3.5 Extensions Preview.</p> <p>My controls in VS 2008 don't show me the Add Extensions tab, when I click them.</p> <p>Can someone help me?</p> 2009-07-28T18:03:03-04:002009-07-28T18:03:03.733-04:00urn:uuid:00000000-0000-0000-0000-000002522950http://forums.asp.net/p/1297516/2522950.aspx/1?invalid+association+mapping+invalid association mapping <span id="_ctl0_MainContent_PostFlatView"><span><font size="2"><span style="font-family:Arial">Hi , wondering if anyone has any ideas to this within my class mapping. I think the answer maybe in my db structure. <br> Anyway, all thoughts very much appreciated. <br> </span></font><span></span> <h2><i><i>Invalid association mapping for member 'Asset.DesignImages'. &nbsp;'DesignImage' is not an entity</i></i></h2> I've notice VS studio is giving me warnings:<br> <br> <span style="color:rgb(255,0,0)">Warning&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; Value for property &quot;Discriminator Property&quot; cannot be empty.&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; </span><br style="color:rgb(255,0,0)"> <span style="color:rgb(255,0,0)">Warning&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp; Value for property &quot;Inheritance Default&quot; cannot be empty.&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0&nbsp;</span>&nbsp;&nbsp; <br> <br> My DataBase<br> Asset<br> DesignText (foreignkey to asset.id )<br> DesignImage (foreignkey to asset.id )<br> <br> Maybe i'm gettng nulls???<br> <br> &nbsp;var query =<br> <br> &nbsp; from d in db.Designs<br> <br> &nbsp; from a in db.Assets<br> <br> &nbsp; select new ProductViewHelper()<br> <br> &nbsp; {<br> <br> &nbsp;&nbsp;&nbsp; theDesign = new Design(){DesignId = d.Id, Title = d.Title, DateField = DateTime.Now, PreviewImage = d.PreviewImage},<br> <br> &nbsp;&nbsp;&nbsp; theAsset = new Asset(){AssetId = a.Id, DesignId = a.DesignId, Date = a.Date},<br> <br> &nbsp;&nbsp;&nbsp; DesignTexts = (from x in a.DesignTexts select new DesignText()<br> <br> &nbsp;&nbsp;&nbsp; { DesignTextId = x.Id, Text = x.Text}).ToList(),<br> <br> &nbsp;&nbsp;&nbsp; DesignImages = (from y in a.DesignImages select new DesignImage()<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; {Id = y.Id}).ToList()<br> <br> &nbsp; };<br> <br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (var p in query)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(p.theAsset.id);<br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></span> 2008-07-29T18:58:38-04:002008-07-29T18:58:38.37-04:00urn:uuid:00000000-0000-0000-0000-000003114425http://forums.asp.net/p/1414799/3114425.aspx/1?Changing+the+Order+of+Fields+in+Entity+Model+for+given+Entity+TableChanging the Order of Fields in Entity Model for given Entity/Table <p>When the Entity Model is created from the SQL Server&nbsp;database, sometimes the order of the fields for&nbsp;a given&nbsp;table is listed differently than in the database.&nbsp; For example, in the database EmployeeID, EmployeeFirst, and EmployeeLast is the order for Employee table.&nbsp; In the EDM, it may list EmployeeFirst, EmployeeID, and EmployeeLast.&nbsp; Can this be changed in the EDM entity list&nbsp;to match the order of the database?</p> 2009-04-23T21:30:01-04:002009-04-23T21:30:01.347-04:00urn:uuid:00000000-0000-0000-0000-000003260792http://forums.asp.net/p/1440492/3260792.aspx/1?how+to+save+data+to+relationship+table+with+LINQ+to+SQL+how to save data to relationship table with LINQ to SQL? <p>Suppose I have three tables: Tab1(Cola, ,,,,) Tab2(Colb,....), tab3(cola, colb,...)</p> <p>Cola is primiary key for tab1, colb is primary key for tab2.&nbsp; Tab3 is a relationship of tab1 and tab2, so cola, colb is foreign keys for tab3.</p> <p>For tab1 and tabl2, becuase thery are entity, so I can use datacontext db to add a new instance like:</p> <p>db.Tab1s.InsertOnSubmit( tab1 obj);</p> <p>db.Save();</p> <p><br> </p> <p>db.Tab2s.InsertOnSubmit(tab2 obj);</p> <p>db.Save();</p> <p>&nbsp;But When I try to insert data to tab3 in simiar way:</p> <p>db.Tab3s.InsertOnSubmit(tab3 obj);</p> <p>I got exception eroro said that tabl3 has no primiary key.&nbsp; tab3 only have a index on cola, colb:</p> <p>-&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ex&nbsp;&nbsp; &nbsp;{&quot;Can't perform Create, Update or Delete operations on 'Table(Tab3)' because it has no primary key.&quot;}&nbsp;&nbsp; &nbsp;System.Exception {System.InvalidOperationException}</p> <p>How to resolve this issue?<br> </p> <p><br> </p> <p><br> </p> 2009-06-26T17:54:15-04:002009-06-26T17:54:15.513-04:00urn:uuid:00000000-0000-0000-0000-000003242265http://forums.asp.net/p/1437054/3242265.aspx/1?Asp+net+extensons+website+template+Asp.net extensons website template <p>Someone can help me how to see in visual studio&nbsp;web templates &quot;Asp.net extensons website template &quot;&nbsp; ?</p> <p>Thanks</p> <p>Yoel&nbsp;</p> <p>&nbsp;</p> 2009-06-18T11:11:39-04:002009-06-18T11:11:39.42-04:00urn:uuid:00000000-0000-0000-0000-000003176215http://forums.asp.net/p/1425499/3176215.aspx/1?Entity+Framework+add+FunctionEntity Framework add Function <p>Is it possible to add funtion to the entityframwork. Cause I drag an drop inside my Enities and nothing happens. </p> <p>In Linq it does work.</p> 2009-05-20T17:08:21-04:002009-05-20T17:08:21.573-04:00urn:uuid:00000000-0000-0000-0000-000002299018http://forums.asp.net/p/1247952/2299018.aspx/1?Entity+Framework+VS+Linq+To+SQLEntity Framework VS Linq To SQL <p>Hello,</p> <p>I have been using LINQ to SQL with VS 2008 and SQL 2005.</p> <p>I downloaded the movie about Entity Framework in ASP.NET web site but it seems Entity Framework is also a SQL database mapping tool. <br> </p> <p>1. What are the differences between Entity Framework and Linq To SQL?</p> <p>2. When should I use one or the other?</p> <p>3. When will Entity Framework be released?<br> <br> Thanks,</p> <p>Miguel&nbsp;</p> 2008-04-15T13:52:25-04:002008-04-15T13:52:25.187-04:00urn:uuid:00000000-0000-0000-0000-000003230776http://forums.asp.net/p/1435087/3230776.aspx/1?what+s+the+difference+between+Entity+framework+and+LINQ+to+SQL+in+VS+2008+what's the difference between Entity framework and LINQ to SQL in VS 2008? In Visual studio 2008, both Entity framework and LINQ to SQL can create object based on ORM. What's the difference between Entity framework and LINQ to SQL?<br> 2009-06-13T17:10:15-04:002009-06-13T17:10:15.04-04:00urn:uuid:00000000-0000-0000-0000-000003223855http://forums.asp.net/p/1433885/3223855.aspx/1?EDM+in+Web+Site+project+vs+Console+AppEDM in Web Site project vs. Console App <p>Hi,</p> <p>I'm on my first day with Entity Framework. I managed to get some sample code working in a console app as follows:</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (var ctx = new ProgrammingEFDB1Entities())<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (Address addr in ctx.Addresses)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine(&quot;{0} {1}&quot;, addr.Street1, addr.PostalCode);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p> <p><br> I did this by making a model from a database and hitting Next-Next-Finish. It was very easy but worked much like Linq to Sql. I then tried to do this in a Web Site project and had no luck. The DataContext ProgrammingEFDB1Entities wasn't recognized in the Web Site project.</p> <p>&nbsp;I don't know if this has something to do with a namespace issue. I have done pretty much the same steps in the Web Site that I did in the Console Application and replaced &quot;Console.WriteLine()&quot; with &quot;Response.Write()&quot;. I suspect it might be some wierd namespace issue, but I don't know where to go next.</p> <p>Thanks,<br> John</p> 2009-06-10T19:52:13-04:002009-06-10T19:52:13.44-04:00urn:uuid:00000000-0000-0000-0000-000003218997http://forums.asp.net/p/1432941/3218997.aspx/1?EntityState+not+getting+updated+when+I+update+an+EntityReferenceEntityState not getting updated when I update an EntityReference <p>I have an object Person with an EntityReference.<br> I expected that when I modified the value of the entityReference that the EntityState of the Person EntityObject would be updated to Modified.<br> However, this isn't happening.<br> The EntityState is staying Unchanged.</p> <p>Does anyone know what the deal is?</p> <p>&nbsp;</p> <p>Thanks <br> </p> 2009-06-09T02:52:37-04:002009-06-09T02:52:37.98-04:00urn:uuid:00000000-0000-0000-0000-000002931179http://forums.asp.net/p/1383006/2931179.aspx/1?Question+About+WCF+InteroperabilityQuestion About WCF Interoperability <p>&nbsp;Hello,</p> <p>&nbsp;I recently started learning WCF. I developed a small WCF service and hosted it using Host Program. I also tested it using WcfTestClient.exe.</p> <p>The service is working fine. But, </p> <p><b>1) if I want to use that WCF service using some other technology like JAVA from another PC, how can we do that&nbsp; ?</b></p> <p><b>2) We know that UDDI is a universal registry for web services. Does that also show the WCF services ? </b></p> <p><b>&nbsp;&nbsp;&nbsp; If no, is there any repository for WCF services ?</b></p> <p>Thanks in advance. <br> </p> <p>&nbsp;</p> <p>&nbsp;<br> </p> 2009-02-10T16:09:57-05:002009-02-10T16:09:57.05-05:00urn:uuid:00000000-0000-0000-0000-000002066218http://forums.asp.net/p/1195753/2066218.aspx/1?Cannot+find+assembly+System+Data+Entity+Cannot find assembly 'System.Data.Entity'. <p>I get the following message when I try to add an ADO.net Data Service to my web project:</p> <p>&quot;Cannot find assembly 'System.Data.Entity'.&quot;</p> <p>I installed:</p> <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;Visual Studio Team System 2008 (Development Edition)&lt;/div&gt; </li><li>&lt;div mce_keep=&quot;true&quot;&gt;ASP.net 3.5 Extensions CTP&lt;/div&gt; </li><li>&lt;div mce_keep=&quot;true&quot;&gt;ADO.net Entity Framework 1.0 (Pre-Release Version)&lt;/div&gt; </li><li>&lt;div mce_keep=&quot;true&quot;&gt;ADO.net Entity Framework Tools Preview&lt;/div&gt;</li></ul> <p>Another interesting detail is that I have the following xml files in my &quot;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5&quot; but no corresponding DLLs:</p> <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;System.Data.Entity.xml&lt;/div&gt; </li><li>&lt;div mce_keep=&quot;true&quot;&gt;System.Data.Entity.Design.xml&lt;/div&gt;</li></ul> <p>Any help would be very much appreciated.</p> <p>&nbsp;Pyt</p> 2007-12-18T14:55:08-05:002007-12-18T14:55:08.613-05:00urn:uuid:00000000-0000-0000-0000-000003192039http://forums.asp.net/p/1428352/3192039.aspx/1?Create+data+entity+model+from+xml+file+Create data entity model from xml file? <p>Hello,</p> <p>Is it possible to create a data entity model from an existing xml file automatically? Are there any tools to do this?</p> <p>Thanks,</p> <p>&nbsp;-renasis</p> 2009-05-28T02:04:02-04:002009-05-28T02:04:02.693-04:00