Visual Studio is an integrated development environment (IDE) from Microsoft.

learn more… | top users | synonyms (1)

2
votes
2answers
1k views

“Error HRESULT E_FAIL has been returned from a call to a COM component” when executing FullTextSqlQuery?

I am using a FullTextSqlQuery to grab some data from a SharePoint instance. Initially I had a fairly simple where clause in which I filtered the results by the content type and everything worked ...
4
votes
1answer
2k views

Why won't my site column deploy from an elements file?

See Can site columns be deployed in sandboxed solutions? for background on this. I've tried to reproduce the sandboxed feature with a site column as built by Hilton Giesenow shown on How Do I: Create ...
1
vote
3answers
7k views

Getting error “Attempted to use an object that has ceased to exist.” when adding web part

I have created a web part in visual studio, it deploys fine, but when I try to add it to a page I get the following error: Attempted to use an object that has ceased to exist. (Exception from ...
5
votes
5answers
3k views

How to create a deployment package for a Sharepoint 2010 webpart in Visual Studio 2010

This might be a dumb question, but i really tried to google and didnt find any good answer. I was developing some webparts for SharePoint 2007 in Visual Studio 2008, and when i would build my ...
3
votes
1answer
1k views

Can site columns be deployed in sandboxed solutions?

I have created a package in Visual Studio 2010 for SharePoint 2010 which contains a single feature, called "SiteColumns", which link to a single elements file defining a single site column. I have ...
0
votes
2answers
948 views

Visual studio 2010 email activity for workflow

I am using visual studio 2010(sequential sharepoint work flow) and trying to send an email activity automatically when the approval is rejected. I have added the "send email" activity in the workflow ...
1
vote
1answer
1k views

Why do I need to register System.Web.Extensions in my ascx page when I add a Visual Web Part?

If I don't add this at the top of my ascx: <%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.WebControls" ...
1
vote
1answer
1k views

Custom web part throws error when I try to add it to page

I am working on a custom web part, that keeps error out with: A web part or web form control on this page cannot be displayed or imported. the type is not registered as safe any time I ...
17
votes
2answers
2k views

Can't start debugging after install VS11

After I installed VS11 Dev Preview, VS2010 cannot start debugging the Sharepoint 2010 server (developer install on Windows 7). I get a nice error dialog stating: Unable to start debugging on the ...
1
vote
1answer
1k views

Deploying an Application Page with code behind to a document library using Visual Studio 2010

I'm developing a new Application Page using Visual Studio 2010 with code behind it. When I deploy the solution, the page gets deployed to the _layouts folder but I would like to have the page for ...
6
votes
4answers
2k views

Force a value into NewForm.aspx

I have a specific case where I want to hook up on the NewForm.aspx, hide a MultipleLookupField and set the value by myself. I'm opening the NewForm.aspx with Javascript and using some query strings ...
1
vote
2answers
370 views

How to develop for Sharepoint 2010 in VisualStudio when your sharepoint server isn't on your local machine

I am trying to program a timer job for sharepoint 2010. It's for my job at school and the sharepoint servers are located somewhere on campus where I don't have access to them. I am new to visual ...
3
votes
2answers
13k views

ListData.svc returns Error 400: Bad Request in Visual Studio

I wanted to use the REST Service in an application. So when I add the service reference in Visual Studio I get this error There was an error downloading ...
1
vote
1answer
882 views

Building a custom web part for SharePoint 2010

I'm interested in building a custom web part for SP2010 that's editable by the page editor via the web part menu's "Edit Web Part" option; specifically, I'd like to start with this: ...
2
votes
1answer
3k views

Error occurred in deployment step 'Add Solution': Sandboxed code execution request failed (but no implementation at all)

I realize of course that there is another question with the same title, and mine is a very similar question, but with a slightly different issue, I think: I have created an empty feature with an ...
5
votes
2answers
6k views

How do I create a new document in a document library according to a template in a workflow ?

I have a document library with a DOCX template file. I want to create DOCX file in this library in a workflow but I did not succeed. Before, I created a workflow in Sharepoint Designer to create a ...
1
vote
0answers
105 views

Create workflow that contains the state machine action

I'm using SharePoint designer 2010 in order to use the SharePoint workflow. I need to implement a "State Machine" action. so I assisted with: the Visual Studio program (I Create a project that use ...
1
vote
1answer
212 views

Sharepoint Workflows in VS 2010

Currently, we have a business process management tool and we are looking to replace it with SharePoint. The good thing with our current tool is that you define a rigorous workflows and force users to ...
1
vote
1answer
704 views

BDC hide identifier in new item form

I'm working on a simple bdc model in visual studio. i use the entity framework to access the data on the database. Everything works fine (all CRUD operations) but in the "New item" form i have to ...
1
vote
1answer
390 views

VIsual Studio editing feature.xml

I am trying to create a a feature staple. To do this I need to create a feature and then edit the feature.xml to be like: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> ...
3
votes
1answer
404 views

Intellisense for Visual WebParts (ASCX) and Custom Application Pages (ASPX) in VS 2010

How can I enable intellisense for visual webparts (.ascx) & custom application (aspx) pages in VS 2010? It would save me a lot of time! Thanks in advance.
0
votes
2answers
564 views

Auto Format Masterpage in Visual Studio

I am creating a custom master page in visual studio. I inherited this from another developer who has not learnt how to indent code properly. One thing that I have noticed that seems it is not possible ...
3
votes
1answer
298 views

Structure of a WSP file

After you save a site as template you get a WSP file that you can then import in VS and tweak it as you want. I did this for a site today and had a lot of things in the WSP after I decompressed it, ...
0
votes
1answer
1k views

Override a SiteMapProvider / Deploy this with VS2010

I am tryin to override the SiteMapProvider "CurrentNavigation" in nightandday.master. I got the code to override the class, but i am not sure how i handle the deploy process. A colleague told me that ...
1
vote
2answers
2k views

How to Bind Data to Traditional ASP.NET Controls in SharePoint Foundation 2010?

First off, my background is ASP.NET Web Forms. I'm sure this is very simple but I'm quite new to SharePoint. We're running SP Foundation 2010. I'm going to build a WebPart in VS.NET 2010 and deploy ...
2
votes
2answers
860 views

How do I debug a code-behind page in the Central Administration site

I built a custom timer job and created a configuration page (.aspx) for it. Going through the Central Administration site, I can get the to configuration page. When I enter values and click "OK" to ...
4
votes
1answer
600 views

Use Visual Studio 2010 To Create SandBoxed Site with Content

I have a site that was built with the UI: It has a lot of custom .aspx pages with webparts and there are custom site columns, content types, and even a document library with several support files. My ...
5
votes
2answers
468 views

Intellisense in SharePoint User Controls

I have the following (simplified slightly) at the top of my application page in SharePoint: <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" ...
0
votes
1answer
45 views

Visual Studio 2008 + MOSS 2007 Unknown Error

Anyone can give me any insight on the following error: By default, it should display the following: because I was following the instruction in here: ...
1
vote
2answers
3k views

Can't change title field display name

I'm using visual studio to develop custom content type, which uses Element as base content type. I'd like to change title field's display name, by doing so: <FieldRef ...
0
votes
3answers
289 views

Content type creation in visual studio - title field

I want to create content type based on Element content type, which has only one field - Title. I'd like to modify this field's display name. How can I find the GUID of title field from base content ...
1
vote
1answer
232 views

Visual Studio 2008 + MOSS 2007 - An unexpected error has occurred

I followed the instructions given in the http://msdn.microsoft.com/en-us/library/cc297200%28d=printer,v=office.12%29.aspx I copy the web application project from my Visual Studio 2008 to the MOSS ...
1
vote
2answers
209 views

Visual Studio 2008 + MOSS 2007 : Updating ASP.NET 3.5 Web Application to SharePoint

What are the steps to updating ASP.NET 3.5 Web application (compiled using Visual Studio 2008) to SharePoint Server 2007?
1
vote
2answers
1k views

MOSS 2007 + Visual Studio 2008 : How to I deploy a Visual Studio 2008 Web Application to SharePoint Server 2007

Q1. How to I deploy a Visual Studio 2008 Web Application to SharePoint Server 2007? I notice that there is not much materials on such deployment except for one which mention Visual Studio 2005 (not ...
1
vote
0answers
608 views

How should I go about modifying the Discussion Board?

So our client wants a Discussion Board, but wants to change the functionality and look 'n' feel significantly. We want to be able to deploy changes via a VS 2010 solution (farm) and a deployable wsp. ...
2
votes
4answers
1k views

Using VS 2010 to develop for SharePoint 2007

I would like to know how I can use VS 2010 to write custom WebParts for SharePoint 2007? VS 2010 does not give you any project templates for SharePoint 2007. Has anyone used VS 2010 for SharePoint ...
1
vote
2answers
5k views

Change XSLT for Discussion Board, deploy via VS2010

So we are creating a branded web site for a client to deploy internally (kind of an intranet), but 99% of users won't see the ribbon, just a branded information site. They want to use the Discussion ...
8
votes
1answer
2k views

Best practices for creating a shared code library for SharePoint projects

I have several projects for SharePoint 2010 (mostly they are separate solutions built each to separate wsp's) in active development. And I have a similar tasks in these projects (logging, ...
2
votes
1answer
945 views

Including a class library with a WSPBuilder deployment in WSS

I am working with WSS 3.0, Visual Studio 2008, and WSPBuilder 0.9.9. I have a custom class library (WebParts.dll) of base classes that I use with several SharePoint solutions. I currently deploy ...
4
votes
1answer
1k views

Custom timer job - trying to access a custom User Profile - failing with “Could not load file or assembly” (of UserProfile)

I'd be grateful if anyone could point me towards the right direction for the following problem. Given: Sharepoint 2010 project. FBA Authentication with custom user profile (class called UserProfile, ...
2
votes
2answers
2k views

How to make SharePoint fields mandatory conditioned on other fields?

For example, in a workflow task, I might have a master field called "Approve" which, if set to "No", makes it unnecessary to complete the rest of the form (and thus makes them non-mandatory). Is there ...
3
votes
1answer
188 views

Removing page from content database via feature deactivation

I deployed page via module. Module is deployed via feature (method FeatureActivated). After that process page is deployed in content database. What I need is to be able to delete (remove) page from ...
-2
votes
3answers
699 views

How can I update a list without having my code run on the SharePoint server?

I can reference Microsoft.SharePoint.dll in Visual Studio in order to compile my C# or VB.NET code. I've found that I will still need to copy the compiled code to the server and deploy it there. From ...
1
vote
1answer
166 views

Books on Sequential Workflow & State Workflow for Visual Studio 2008

Are there any good books that fulfill the below requirements: [1] Provide at least 1 simple and 1 advance step-by-step on how to create a sequential workflow using Visual Studio 2008 (and also using ...
2
votes
1answer
1k views

VS Power Tools for SharePoint - InitializeControl does not exist in the current context

I don't think this qualifies as a 3rd party product, so I'm posting here. I have a clean VM with VS2010 SP1 installed. I then installed the VS Power Tools for SharePoint. I'm attempting to create a ...
1
vote
1answer
3k views

Trouble with custom Sharepoint List views created in Visual Studio 2010

Probably something simple but i'm not sure what the problem is here. I create several custom list views in my schema.xml for my list. I deploy and go in sharepoint designer to make sure everything ...
9
votes
4answers
3k views

What do the terms Farm, Site, Web, WebApplication refer to in the SharePoint API?

I'm sorry for dumb question but I am very new to Sharepoint 2010 and something is not clear to me. What do the terms Farm, Site, Web, and WebApplication mean? I pretty much understand Farm and Site, ...
1
vote
0answers
432 views

Why is this Visual Studio workflow sending blank task notifications?

We have developed a custom workflow using Visual Studio 2010 in which we are using the CreateTask Activity. For some reason, the first time a task is assigned to a user, the user will receive a ...
4
votes
6answers
8k views

Can't connect to the SharePoint site:

I started VS with admin rights, I'm currently in trouble setting up a SharePoint 2010 project. Today, I installed VS2010 on our new SP 2010 server. But now I'm failing to create a SharePoint project ...
3
votes
1answer
3k views

ListView Web part - customization

I created and deployed link list (default template (103)) from code and after that I added ListViewWebPart also from code which looks on default view of my link list. And that works. Problem: How can ...