How To Approach A Sharepoint 2010 Development Project Coming From WebForms And MVC

Jan 20, 2011

I have a good amount of knowledge in the ASP.NET Webforms and MVC worlds. Shortly I will be tasked with implementing custom web applications with Sharepoint. I have great flexibility with this project (i.e - I can use custom web apps outside of Sharepoint if that's possible) but like most projects the most limiting factor I have to deal with is time.

Here are some questions that come to mind:

Can I easily integrate a custom MVC project into Sharepoint 2010? What are the pros and cons if I can? Same as #1 only with Webforms. If #1 and #2 are not viable solutions, can I easily create custom web applications within the Sharepoint world? What will the learning curve be with my background? I understand developers can now use Windows 7 to deliver Sharepoint 2010 solutions. It looks like I can use a trial of Microsoft Sharepoint Foundations 2010. If that's correct, are there any development differences or gotchas I need to be aware of before digging into the Foundation version? I don't want to get up to speed on Foundation and then find out that the Server edition (the version that will be deployed) is vastly different.

View 2 Replies


Similar Messages:

Error: "Could Not Load Type 'Microsoft.SharePoint.WebControls.SPGridView" SharePoint 2010

Jun 15, 2010

Following error comes when creating a WebPart In sharePoint 2010 Server.

Web Part Error: Unhandled exception was thrown by the user code wrapper's Execute method in the partial trust app domain: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.TypeLoadException: Could not load type 'Microsoft.SharePoint.WebControls.SPGridView' from assembly 'Microsoft.SharePoint, Version=14.900.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. at ListMenuSample.ListMenuSample.ListMenuSample.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.ExecuteHttpRequest(SPUserCodeWebPartHttpRequestContext webPartExecutionContext, SPUserCodeWebPartHttpResponse httpRequestResponse) at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.Execute(SPUserCodeExecutionContext executionContext) at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)

View 1 Replies

VS 2008 - Sharepoint 2007 Development

May 6, 2010

My customer has a sharepoint 2007 server installation where they show a simple GUI. They want me to develop a webpart for displaying the top 10 most critical service arrends and add this to their "start" sharepoint webpage. The data is available through a stored procedure, and the gui could be as simple as a repeater. BUT, how do I make this as a webpart in sharepoint. This means I want to drag and ppsition it anywhere I want on the sharepoint GUI. I have worked with asp.net for 5 years, but never touched sharepoint.

I did some googling on the topic but what i found was very cumbersome, they said I needed to have sharepoint installed locally. Thats just not possible in the current environment. Surely its not that difficult. Can't I just develop a standard webpart and import it somehow into sharepoint?

View 5 Replies

Visual Studio :: Publish Web Project - Securely - Best Approach?

Feb 14, 2010

I'm migrating from the website model to the web project model. In the past I used ssl/ftp (server is IIS7) to upload a website. The host (DiscountASP.NET) using VS2008 Publish to upload a project. VS2008 displays the alert that the password will pass in the clear. So ... what is the best practices approach to publishing a project?

1. SSL/FTP (not sure of the implications re: site compilation)
2. VS2008 Publish
3. VS2008 Web Deployment Projects

View 2 Replies

Tdd - Test-drive WebForms Development?

Dec 16, 2010

How do you test-drive ASP.NET WebForms development in VS08?

View 2 Replies

VS 2010 N-tier Approach - Saving SQL Connection

Sep 29, 2010

What is the most correct way to save your connection string when using the n-tier approach ? Right now I have two windows app and one web app using my DLL library, what I'm currently doing is to create a static
method inside my dal "GLOBALDAL"
inside I'm making this check:

Code:
if (System.Web.HttpContext.Current != null) ...
if httpContext.Current is null
That's mean that one of my windows applications doing the request, if so I get the CN from a file otherwise it's mean its the website knocking on my door so I get the CN from:
Code: System.Web.HttpContext.Current.Application["ConnectionString"]
I am thinking of changing it all and just set properly in my DA layer that expose the CN as a string. But I fear of security issues. So what is the correct way?

View 21 Replies

Visual Studio 2010 - 2010/Windows 7 -> Can't Connect To Development Server?

May 18, 2010

I have a clean installation of Windows 7 with VS2010 RTM and am trying to get the ASP.NET Development Server to work. When I run the project, the WebDev server starts and shows that it's listening on port x on localhost. I've tried:telnet to the port. The port is not listening. running netstat -o shows that the WebDev server is in fact not listening on any port. manually changing the WebDev port to a different port and restarted VS without effect. I have Windows Firewall turned off entirely and am not running any other firewall software either.

View 1 Replies

How To Get Code Coverage Working On A VS 2010 Project/Cannot Initialize The Project 'Project Name'

May 23, 2010

When I turn on Code Coverage in my test settings, on a project that references the Unity DI container I get the following error:

Cannot initialize the ASP.NET project'{Project Name}'.

The event log specifies the following reason:

Could not load file or assembly 'Microsoft.Practices.Unity, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.

View 2 Replies

VS 2010 How To Integrate Application To Sharepoint 2010

Sep 18, 2011

how to integrate my asp.net application to sharepoint 2010?

View 3 Replies

Visual Studio :: Conversion From 2005 Project To 2008/2010 Project Error?

Jul 17, 2010

I have downloaded a project from the internet called the SMS Source example. I wanted to open this project in VS2010, so a conversion wizard has popped up prompting for the conversion. But it has errors in converting.

Error msg:

Conversion Report - SMSSend.csproj:
Error converting project file. MSB0001: Internal MSBuild Error: Missing resource 'MissingAttribute'

View 3 Replies

C# - Migrating From Website Project To Web Application Project In Visual Studio 2010 Causing All Controls To Throw Error?

Mar 29, 2011

I recently updated my VS2010 website project from .NET 3.5 to 4.0. Everything was working fine in the website project. Today I decided to migrate the website to a web application project as I have learned this is the best way to work in .NET. I split out all my class files into a separate class library and copied all my other content into my new project. Then I updated all the references and web.config.

When I build the class library, everything works great. The problem is happening when I try to build/debug the web application project. It is acting like all the controls are missing and it is also throwing a bunch of compile errors about the public properties I have in my master pages.

Control errors: "The name 'INSERT CONTROL NAME HERE' does not exist in the current context"

Master page errors:'System.Web.UI.MasterPage' does not contain a definition....

It is giving these errors for every single control and master page property in my entire solution.I notice when I add a new web.form to this project, it also adds a filename.aspx.designer.cs file in addition to the .aspx and .aspx.cs file. My existing files do not have these extra files since they were created in a different .NET version.

UPDATE: It seems I was missing the step where I need to right click on the new application folder and select "Convert to web application". I just did that and it seems to be a little bit better...

Now it is choking on Literals that are inside single quotes:

<div class='<asp:Literal ID="CssClassLiteral" runat="server"></asp:Literal>'>

It doesn't see this literal when it does the conversion... Is the above valid code or should I implement that functionality another way?

View 1 Replies

.net - Learn MVC In A New Project, Or Stick With WebForms?

Dec 13, 2010

I'm a front-end guy who's picked up ASP.NET WebForms through working on various projects at my agency.I have a project with a developer in mind, and I want to use/learn MVC for it - but he thinks it not worth using MVC at all. His opinion is that the benefits of MVC are perceived, and that performance won't be an issue, and it better to just push forward with WebForms.

The project is a web app that will give people project planning tools, creation of a personal contact database, and their own basic website.My personal feelings are that I hate all the bloat that comes with WebForms sites - the ViewState, the one , the enormous JS files, the lack of control of markup (e.g. validation controls).Obviously, ASP.NET WebForms is linked to resources, but MVC is about URL structures and interpreting them.

After discussion and research I'm thinking now that because of the supposedly large transition/learning curve of MVC, it really is better to just stay with WebForms.I watched Ryan Singer work with RoR MVC in person, and I was stunned at how rapid everything was to develop.Should I just accept that it's more pragmatic and productive to keep with WebForms now, and not use MVC, or should I find a way of convincing my co-worker that MVC is the right thing to do?

View 4 Replies

C# - Modal Dialog - SharePoint 2010?

Jun 22, 2010

I am currently working on creating a ModalPopUp for SharePoint Web Part.I am facing compatibility issues with ModalPopupExtender (with IFrame).

What are the other options available in SharePoint 2010 or ASP.NET for getting a Modal Popup?

Note: I have tried ModalPopupExtender and OpenModalDialog.

View 4 Replies

Web Forms :: Using SqlProfileProvider With Sharepoint 2010?

Mar 21, 2011

using SqlProfileProvider with sharepoint 2010

View 2 Replies

.net - Migrating SharePoint 2007 To 2010?

Jun 29, 2010

Is a sharepoint 2007 webpart likely to work on 2010 without any modification? If not, what are the main areas that would require modification?

View 3 Replies

Development On MVC Storefront Project - Relation?

Jun 24, 2010

I see that there is no Check-Ins on ASP.NET MVC Storefront code since Feb 7th. And on this question, Orchard project link is given with the answer. Is there any relation between these two projects?

View 2 Replies

C# - Create Html Helpers In Webforms Project Like In Mvc?

Jun 27, 2010

Can i create html helpers in Webforms project like in asp.net mvc?

View 2 Replies

Host .NET MVC Controllers+views Within A Webforms Project?

Jan 20, 2010

We have a legacy ASP.NET webforms application that we're engaged in stabilising and removing technical debt from. Is it possible to take a hybrid approach - ie, can ASP.NET MVC coexist with webforms within the same web-project? Are there any gotchas for that? If it is possible, I assume one just has to initialise the routes table, register the ASP.NET MVC handlers,

View 1 Replies

How To Add Most Usefull Web Sites For SharePoint 2010 Developers

Feb 15, 2011

I've searched some FREE Controls, Templates, WebParts, Themes for SharePoint 2010, and its really hard to find good and free examples. Turned back into StackOverFlow and there is no Community Wiki for it. I want to open a Community Wiki about All Free SharePoint 2010 Controls, Templates, Themes, WebParts, etc... to collect them all in one topic.For example, there is a site about MOSS 2010 Free Controls in here. This site containt most MOSS versions controls, web parts. I want SO Users to add most usefull web sites for SharePoint 2010 Developers such as Free controls, themes, tools, etc.

View 1 Replies

C# - Sending Email With Attachments In Sharepoint 2010?

Mar 8, 2011

I am working on SharePoint 2010. I need to send email with attachments using aspx and c# code.

how to do this?

View 2 Replies

Deploy Web Application To A Sharepoint 2010 Site Using WSP

Aug 2, 2010

Suppose I created a custom web application that consists of: several assembly DLLs: web app, business logic, data services multiple aspx pages and ascx custom controls that use them custom configuration section custom HTTP module. More or less the usual stuff. I would like to deploy it to a particular sharepoint site under a certain subfolder. So if I access my sharepoint site via [URL] (because I'm not using sites/some_site) I'd like my application to be available under [URL]

I could manually add a virtual folder (not application because I would need to access some Sharepoint site's data) to my sharepoint site in IIS and manually edit site's web.config file to register my HTTP module and add my custom configuration section as well either putting my DLLs into GAC or put them in the _app_bin (so I don't have problems with CAS), but I don't think that's a good thing to do, because this web application may get deployed in an environment where this shouldn't/couldn't be possible. So I figured I could build a WSP using Visual Studio 2010 and deploy it that way. But I don't have enough experience doing that.

I created a new sharepoint 2010 project. Is there a way I could add all non-executable application files (aspx, ascx) at once? I've seen the advanced tab of the WSP package where I can add my DLLs either to bin folder or GAC. I don't know whether I would also have to add any safe control and register certain classes?So I suppose I need some pretty detailed and explanatory guidance here.

View 1 Replies

Visual Studio 2010 - .NET Web Form On SharePoint

Oct 13, 2010

I would like to create and deploy an ASP.NET web form on SharePoint server which can create document in SharePoint list (or library). Since I'm not experienced in both these technologies so would appreciate if someone guides me to the right tool. Should I use Visual Studio or SharePoint designer ? Also, I was reading an article on MSDN about "Deploying ASP.NET Web Applications in the Windows SharePoint Services 3.0 _layouts Folder". Is it the best practise or should I go with webpart/solution based deployment?

View 1 Replies

C# - Register Ajax Tool Kit To SharePoint 2010?

Mar 2, 2011

I've tried to use Ajax Control Tool Kits on SharePoint 2010 Web Site, but Im having some trouble with registration. I've searched a lot on google for a solution. I've found some ways, but my problem is not solved. When I open my web site, still getting registration error.The problem is registration of Ajax Tool Kit. Here is my steps.1 - Downloaded Ajax Control Tool Kit latest version.2 - Added following line to my page

<%@ Register Assembly="AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

3 - Added following line to my master page (v4.master)

<%@ Register Assembly="AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

4 - Replaced this tag

<asp:ScriptManager>

with

<ajaxToolkit:ToolkitScriptManager>

but problem not solved.. Still getting same registration error. I need your suggestions about implementing Ajax Control Tool Kits on Share Point 2010.

View 1 Replies

AJAX :: Bad ControlToolkit Setup In SharePoint 2010?

Jul 16, 2010

I am having issues with the AjaxControlToolkit.I started with the 3.5 version and backed up hoping for some love but I am still stuck in quiet desperation trying to meet my impossible deadline.I have changed my masterpage to use the ControlToolkitScriptmanager.System.Web.Extensions references v3.5.0.0 throughout the config.Version of the toolkit referenced in the VS2010 webpart project verified as 3.0.30930.28736

The issue is that no matter what control or extender I try to use I receive the following error:

The base class includes the field '(control/extender name)', but its type (AjaxControlToolkit.(control/extender)) is not compatible with the type of control (AjaxControlToolkit.(control/extender)).

If it would help I would post the entire web.config.If anyone has a working setup with a version of the toolkit I would love to get a copy!I will have to get Silverlight going next.

GAC:Microsoft (R) .NET Global Assembly Cache Utility.Version 4.0.30319.1
Copyright (c) Microsoft Corporation.All rights reserved.
The Global Assembly Cache contains the following assemblies:
ajaxcontroltoolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL

Number of items = 1
--
MasterPage (excerpt):
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>

[code]...

Environment:Visual Studio 2010 SharePoint 2010 (clean install) Windows Server 2008R2

View 8 Replies

Add A Code-behind To A Sharepoint 2010 Master Page?

Aug 1, 2010

As part of our branding of Sharepoint 2010, we'll be modifying some custom HTML menu's based on database and user permissions.

To do this, we are looking at the use of code-behind in a custom Sharepoint 2010 master page.

The only reference I can find to creating a code-behind file for sharepoint 2010 is this blog post series. The issue I have with this is that it's using the Visual Studio 2010 Sharepoint integration, which has the genius feature of requiring a local instance of an entire Sharepoint site. This isn't something that I can do/get.

This is the MSDN for code-behind master pages in Sharepoint 2007. I'm assuming it's similar but I can't find anywhere that describes it as such.

Is deploying a code-behind for a custom master page the same as in Sharepoint 2007 or does anyone have any experience doing this?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved