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

learn more… | top users | synonyms (1)

2
votes
1answer
131 views

Custom Interface vs SharePoint Interface

I am not a SharePoint Developer, but I have been assigned some tasks. Therefore, I have had to put my hands on it unfortunately(?). :) We are currently evaluating SharePoint to retire 5-6 tools which ...
0
votes
1answer
2k views

How to add an instance of a custom webpart to a web page using PowerShell?

I found this article which does a very good job explaining how to add built in web parts (like the content editor webpart). Unfortunately when I tried to add my own I couldn't get it to work. I have ...
0
votes
3answers
611 views

Sharepoint contenttype columns -> types

Does anybody have a list of all internal "type" names of contenttype - columns in SP2010? I am creating a custom contenttype in VS and really don't have an idea where to get them from. I already ...
3
votes
1answer
106 views

SharePoint workflows and [OptionalField]

Our business processes changed, and now we want to add some pretty important functionality to a series of long-running workflows written using Visual Studio. This involves adding several fields to the ...
0
votes
1answer
2k views

Create list instance with Visual Studio 2010 and specify Group or Person for field value

I'm creating a list instance in an XML file and I have some fields which are of type "Person or group". In the XML I can specify it like this: <Row> <Field ...
1
vote
2answers
145 views

Execute code on site creation in SharePoint 2010

We're trying to create a SharePoint 2010 feature on a site collection that when active would execute code each time a web site is created. We're using Visual Studio 2010. The code will set properties ...
1
vote
3answers
274 views

Is this the best way to open a dialog for a custom page?

I did some looking around and I was planning on creating the following js function to open a custom page in a dialog: //Handle the DialogCallback callback function ...
5
votes
3answers
2k views

SharePoint Web Serivces Access Denied; Only From VS 2010

After not getting much help on the last question, I decided to blow away the VM and re-create it as I already lost a week on this issue. And of course still issues, btu a little different. I am ...
6
votes
3answers
1k views

SharePoint Web service requests take 30-60 secs initially

When trying to access SharePoint WSS 3.0 server using the web services API, the software service we are developing will hang anywhere between 30-60 seconds when making any call (pick anyone of them, ...
3
votes
1answer
120 views

Has Microsoft discussed whether future versions of SharePoint will support MVC?

I haven't heard anything about whether they will be including this in the future or not. I did some Googling and found an interesting project on CodePlex but did not find anything official from ...
1
vote
2answers
1k views

error while signing sharepoint assembly with certificate

Our company purchased a certificate to sign our assemblies. But if I go the signing tab in project properties and select the certificate there, I'll get the following error: "an attempt was made to ...
1
vote
2answers
2k views

Can I install Visual Studio 2010 on non Sharepoint server to develop webparts?

Can I install VS 2010 on a separate development server or does it have to be installed on a sharepoint server to develop webparts?
5
votes
1answer
477 views

Building VS 2010 projects for SharePoint 2010 & 2007

I am curious if anybody else out there is trying to development a single SharePoint product that works with both SP2007 and SP2010, and what approach you have taken to structure your Visual Studio ...
3
votes
4answers
598 views

Possible to modify the contents of a WSP through code?

I have a base WSP and I would like to create an automated process to update one of the files that it contains (an XML file). Is there anything in the Object Model that would allow me to do this? ...
10
votes
3answers
8k views

Deploying EventReceiver project with target of WebApplication from VS fails when activating features

I am trying to deploy an event receivers project with a deployment target of WebApplication as part of my web parts package (also has a target of WebApplication) through Visual Studio and encountering ...
3
votes
5answers
14k views

How to read a file from a folder in _Layouts?

I have a file that is in a the mapped folder "Layouts" in my Visual Studio project. I would like to read the contents of this file but I have been having some trouble accessing it. What I have ...
0
votes
2answers
4k views

Error: “Object reference not set to an instance of an object.” in VS2010 for MOSS 2007

I have been using VS2010 for developing web parts and deploying them to MOSS 2007 for quite some time. Unfortunately, I had to work on a fresh copy of WINDOWS with all software including MOSS 2007 ...
6
votes
3answers
802 views

Use a supplemental .config file just for a web application

I'm trying to add a section into the web.config of a SharePoint 2010 application and I created a webconfig.myname.xml in the \14\CONFIG folder. I then ran the following command to apply the changes: ...
3
votes
1answer
1k views

Why would “Assembly Deployment Target” be disabled, in a non-sandboxed solution?

I have a visual studio project where I am trying to GAC the dll that is created. My problem is that when I click on the project and look at the "Assembly Deployment Target" property it is disabled ...
2
votes
2answers
3k views

Adding code behind functionality to a page layout?

I have a page layout that I would like to include a listview that is populated from the code behind. I tried right clicking on my aspx file and choosing "View Code" like I typically would but it does ...
1
vote
2answers
145 views

What does Microsoft mean when they say “built-in type”?

I am working on a custom content type and I have a little bit of confusion over how the Inherits attribute of the ContentType element works. I had read in their documentation that: If Inherits is ...
3
votes
3answers
241 views

Possible to have an administration page for a custom type?

I've created a custom type and I would like to have a custom administration sight where a few global settings can be defined. I've done a bit of looking around but haven't found anything that shows ...
0
votes
1answer
229 views

Changed the “Site URL” associated with my Visual Studio project and can no longer deploy?

I had been working with a custom content type in one of my development site collections and everything was working fine. I then tried setting the "Site URL" in my project I started getting this ...
2
votes
1answer
200 views

SharePoint Workflow Development in Visual Studio 2008

For the development in SharePoint 2008, I been installed Visual Studio 2008 extensions for Windows SharePoint Services 3.0 v1.3. It is successfully installed, but when I create a new project in ...
1
vote
1answer
1k views

System.ServiceModel.Channels.ServiceChannel in faulted state

When I try to deploy my SharePoint masterpage using Visual Studio I get the following error: “The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for ...
1
vote
1answer
681 views

Error in deployment from VS2010 - The type initializer for 'MyClass' threw an exception

When trying to deploy a SharePoint 2010 solution from Visual Studio 2010, I'm getting the following error: Error occurred in deployment step 'Add Solution': The type initializer for 'Singleton' threw ...
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
8k 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
953 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
374 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
14k 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
891 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
107 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
213 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
720 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
393 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
413 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
571 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
303 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 ...