.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Utilizing Entity Framework 4.0 in MOSS 2007 with Visual Studio 2008

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :SharePoint


I am trying to create a webpart using VSeWSS 1.3 in VS 2008 and utilize Entity Framework 4.0 .

I am able to do it in .NET 3.5 but i am unable to create a 4.0 solution in VS 2008 to replicate steps for 4.0 .

Can this be done, if yes then how?

Your help will be really appreciated.


View Complete Post

More Related Resource Links

VS 2010: Entity Framework 4.0 and WCF Data Services 4.0 in Visual Studio 2010


Elisa Flasko takes you through a sample weblog application to demonstrate how new improvements in Entity Framework and WCF Data Services work together to simplify the way data is modeled, consumed and produced in Visual Studio 2010.

Elisa Flasko

MSDN Magazine April 2010

VS Studio WorkFlow Failed on Start in MOSS 2007 ON Windows Server 2008 64 Bit


I have created a sequential sharepoint workflow in WSP Builder in my Sharepoint Server and Deployed it.

But the workflows says Failed on start and retrying ans stops there forever says couldn't start the workflow.

I repaired .NET Framework 3.5sp1 installed

 tried this

 1. I tried again, in C Prompt:  Lodctr "c:\Windows\Microsoft.Net\Framework\v3.0\Windows Workflow Foundation\perfcounters.ini"  it says initiation file cannot be found

2   i again tried this C prompt Lodctr /R "c:\Windows\Microsoft.Net\Framework\v3.0\Windows Workflow Foundation\perfcounters.ini"

it says reloaded  from the system restored

i am still getting the same error.

When i manually go to my  C:\Windows\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation i can see a folder for SQL that's it nothing more than that..

I dont know what is happening i am trying it from 2 days and still no solution.

any ideas would be real great help for me.

My system is 64 bit , Window server 2008, MOSS SP2, Visual Studio 2008 Version 9.0.30729.

.Net Framework 3.5 sp1

and WSP builder the one from Codeplex for 64 bit machines

How to use SharePoint 2007 list data in Reporting Service (Visual Studio) 2008?

Jeez - I have been googling left and right, and tried all the suggestions. No luck in getting it to work. I am using Reporting Service 2008 tools in my VS2008, trying to create a simple report using SharePoint 2007 data (from a simple list). Here is what I've been doing: Created a simple SharePoint list in a test site - only one column (Title) with one record of data. Started Visual Studio 2008 and created a new Report Server Project Wizard project. I named the data source "dsTest". Type: "XML". As connection string I used: http://site/subsite/subsite/_vti_bin/lists.asmx. Credentials: "Use Windows Authentication (Integrated Security)". Clicked Next and arrived at the "Design the Query" form. I entered this in the Query string box: <Query> <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems" /> <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction> </Query> Clicking Next I get this error: An error occurred while the query design method was being saved. Failed to execute web request for the specified URL. Soap Fault: Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. Now if I view the Details when trying it inside the Query Builder I get this: <errorstring xmlns="http://schemas.mi

Visual studio 2010 extensions for MOSS 2007/2010?

I know we need Visual Studio 2005/2008 extensions for WSS 3.0/MOSS 2007.  If we upgrate to Visual Studio 2010, do we still need to install a Visual Stidio 2010 extenstion for MOSS 2007?  For MOSS2010?

Sharepoint Worflow in MOSS 2007 and Visual studio EventHandlingScopeActivity in a while loop

Hi I'm building a sequencial approval Workflow  exactly the same than the one in the Sharepoint SDK collect feed back workflow. But the thing is that I put all the activities in a while activity and nothing is working any more. My EnableWorkflowModification bugs, and event if I remove it the onTaskUpdated event doesn,t fires. My Workflow look like this. WhileActivity   EventHandlingScopeActivity       Replicator                EnableWorkflowModification                       createTask                       whileLoop                             onTaskUpdated                       CompleteTask   If I remove the global while activity everything is fine. When I add it nothing works.   Can someone help. I dont understand why I cannot put a EventHandlingScopeActivity in while. Thabk youIch bin eine Beignet

Visual Studio 2008 Professional v.s. Standard - support SharePoint 2007 sequential workflow?


I would like to ask if VS2008 Standard edition support the project type of SharePoint2007 sequential workflow?

I have a VS2008 Professional edition and it is Ok to create SharePoint2007 sequential workflow project and deply to MOSS2007 successfully.

Is it possible in a VS2008 Standard edition?

Thanks in advance.

Referencing framework 4 assemblies from Visual Studio 2008


Hi all,

I read a lot about Visual Studio 2008 and framework 4, and I have understood that it is not possible compiling framework 4 with Visual Studio 2008. By the way, I cannot find a definitive answer to a sibling question: it is possible, within a Visual Studio 2008 project (say 3.5), to reference a framework 4 assembly?

Trying to do so, I get the following error

[...] This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.




.Net Framework 4 with Visual Studio 2008 and use it in vs 2008


What I am asking is this:

I want to use visual studio 2008 and code against .net framework 4.0 and be able to continue using 3.5 sp1 in other solutions...

Is this possible?

Visual Studio 2010 will not open my MOSS 2007 Site


I am using VS 2010 premium, Win Server 2008 R2, MOSS 2007 and are all installed on the same machine.

First, I when I try to connect with the server explorer...I get A SharePoint server is not installed on this computer which is not true.

Second, When I try to open a website through > open website > local IIS and click on my sharepoint portal site I get.....Unable to open website, Visual Web Dveloper does not support opening sharepoint sites. Why am I getting this? I am not using Visual web Devloper. I am using VS 2010 premium.

Why is it so hard to open adn/or connect to our sharepoint sites with VS 2010? I have no problem at all using Sharepoint designer to connect but I want to use visual stuidio.  I hate the designer. I think microsoft dropped the ball on this one.    Anybody know of a good article/tutorial on this?

Can not establish a connection to SQL Server 2008 R2 via Visual Studio 2010 Framework 4.0


Hello All, I would appreciate any help with this.

I believe my problem exists within the web.config which already had code in it to connect to SQL Server Express 2008.

I uninstalled the SQL Server Express that came with Visual Studio 2010.

I installed SQL Server 2010 R2 Developer, and I'm able to connect via Management Studio and through Visual Studio's Server Explorer's Data Connections I am connected.

I did run aspnet_regsql.exe within the 4.0 folder in order to create the database with Microsoft Service Providers.

Here is the ServerName: USER-5529234649 

Here is the name of the DataBase:  StepByStepChapter9

Here is the name of the Connection within Visual Studio's Server Explorer's Data Connections:  user-5529234649.StepByStepChapter9.dbo

Here is the code I changed in the web.config:

      <!--<add name="ApplicationServices"
            connectionString="data source=.\SQLEXPRESS;Integrated   Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
            providerName="System.Data.SqlClient" />-->
      <add name="ApplicationServices" connectionString="data source=user-5529234649\Step

moving from Visual Studio 2005 to visual studio 2010. Will be on MOSS 2007 for next year at least.


Most of my web servers are 64 bit.

At this new shop I don't have any custom visual Studio 2005 compiled workflows or sharePoint solutions.  What I do have is a few DLLs we've deployed manually to the Web front ends in the 12 hive,  And a few low volume non-sharepoint websites I've deployed with the source - because I knew I'd be moving to 2010 very soon.

What's the risk of moving my development client to 2010? Can I have 2005 and 2010 on the same client? Does 2010 have an option for compiling to 2005 compatibility?

What happens if I compile those solutions (as is) in vs 2010 and deploy?  Does something special need to be installed in SharePoint or my web servers to support VS2010 compiled solutions?

BTW, how smooth is the 2005 to 2005 code coversion (if any) process. Can I open 2005 projects/solutions in 2010?




sharepoint 2007 and visual studio 2008


Hello everybody,

I am kind of starting with sharepoint 2007 application development. I've windows 2008 server with share point 2007 server. The machine i will be developing the app is windows xp with VS2008.

1 -  How can I open/connect to a website in sharepoint from vs2008
2- Once connected, how can i debug my app it under vs2008
3- How can I upload my app to sharepoint site.

All I am trying to do is, write own custom web app for share point 
Thank for taking time to answer this questions.  

How to: include more project in a SharePoint 2007 Workflow solution in Visual Studio 2008

I just develop  a little bit complex workflow and I want some objects put into an library (simple c# class project) project  in the solution. It is signed, referenced, but when I debug  it send a "System.IO.FileNotFoundException: Could not load file or assembly ..." How to resolve?
Thanks in advance, bts

Missing Entity Framework Template in Visual Studio ASP.NET 4.0


I just installed Visual Studio 2010 on my Windows 7 laptop in order to start learning the Entity Framework.  For some reason that I haven't been able to figure out, when I try to add a new item, there is no template for the ADO.NET Entity Framework.   Can anyone offer me any help as to why the template doesn't exist and what I need to do in order to get the template?


ps. I came across a post that stated that in order restore the template that I needed to do the following:

 devenv /installvstemplates

This didn't help.

I cannot get visual studio 2010, SQL Server 2008, and .NET Framework 3.5 or 4.0 to deploy a very sim


Creating [SqlClassLibrary]...

C:\Projects\SqlClassLibrary\bin\Debug\SqlClassLibrary.sql(39-39): Deploy error SQL01268: .Net SqlClient Data Provider: Msg 6218, Level 16, State 3, Line 1 CREATE ASSEMBLY for assembly 'SqlClassLibrary' failed because assembly 'SqlClassLibrary' failed verification. Check if the referenced assemblies are up-to-date and trusted (for external_access or unsafe) to execute in the database. CLR Verifier error messages if any will follow this message

An error occurred while the batch was being executed.


Time Elapsed 00:00:06.23

========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

Visual Studio 2008 Framework 3.5 Project Referencing DLL built in Visual Studio 2010 Framwork 4


I am trying to add a DLL file that was compiled in Visual Studio 2010 with Framework 4 to my project that is in Visual Studio 2008(Framework 3.5), but I am getting a warning after I have added the reference that says "The referenced component 'dll name' could not be found." What is causing VS2008 give this warning? I can not compile the code as this DLL is a required component. Thank you.



Visual Studio 2008 Memory problems


My memory in task manager reaches about 900,000K  and I don't know why it does this. Definately slows everything down, especially when I rebuild my tableAdapters, takes about 30 seconds sometimes to rebuild the project.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend