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

learn more… | top users | synonyms (1)

0
votes
2answers
1k views

Getting the value from the dropdownbox Event Reciever sharepoint 2010

I have an event reciever for item adding. I'm using: dropdwnvalue = web.Lists[properties.ListId].Fields["Names"].InternalName; string selectedValue = properties.AfterProperties[dropdwnvalue]....
2
votes
1answer
1k views

How to implement a custom auto-increment id on a yearly basis

I am trying to create a functionality for a list where all entries get a custom ID. The IDs are going to have the following formats List1 Year-1 Year-2 Year-n List2 Year-1.1 Year-1.2 Year-1.n Year-n....
1
vote
1answer
985 views

passing parameter values to the event reciver sharepoint 2010

is there any way we can pass parameter value(selected form field value(drop down box) from newform.aspx)to the event receiver(itemadding) from newform.aspx()in sharepoint 2010, so that they can be ...
8
votes
2answers
2k views

Event Reciever on specific list in sharepoint 2010

I am working on creating event reciever for a custom list in sharepoint 2010 using visual studio..how can this event reciever be targeted to a specific custom list ..in my case its customEmpList?
1
vote
1answer
217 views

Event Reciever on Item created

I am working on creating a event reciever on a custom list .. my senario: I have a customizes newform.aspx and this form has a field called ticketID as hidden ..in the newform..so when a user creates ...
17
votes
3answers
6k views

How to access my “Outgoing E-Mail Settings” from code?

Is it possible for me to pull the values that are in: Central Admin -> System Settings -> Configure outgoing e-mail settings from my code behind using the object model?
1
vote
2answers
971 views

Error while creating event reciever in SharePoint 2010

I am working on creating the event receiver in SharePoint 2010. When I create a new--> project--> event receiver, I choose the sandbox solution and hit ok. I am getting the following error "...
1
vote
1answer
153 views

Workflow deployment in a multiple WFE farm environment

The issue is:, I change the visual studio workflow's initiation form via infopath create the wsp package again Retract and Remove it via the ca. Deploy the new package via powershell When I try to ...
0
votes
2answers
310 views

Email with multiple attachments triggered by a button

I want to create a button that would trigger to send an email with all the documents in a certain document library. I tried creating this on workflows but unfortunately I can't seem to add multiple ...
1
vote
3answers
297 views

VS2010 Workflow Update Deployments Failing to Update System Account Codebase

I've been suffering through an issue I haven't managed to find much documentation on over the past several weeks as I've begun working on my first custom workflow project. I have a workflow solution ...
0
votes
2answers
2k views

How to dynamically add a TaxonomyFieldControl to a page?

I had gone the route of creating a placeholder on the aspx page and then doing: myPlaceHolder.Controls.Add(myTaxonomyControl); but for some reason this doesn't do anything. No error and no control....
1
vote
1answer
3k views

Can I resolve 'Could not find schema information for the …' messages in VS for .template files?

I'm working on modifying a ProductDetails.template file using Visual Studio 2010, which ties into Commerce Server, I believe. When I load this file I get Messages (as opposed to Warnings or Errors) ...
1
vote
2answers
2k views

How to get all possible values of a TaxonomyField?

I found the GetFieldValue(string value) function but this requires that you pass it a value that serves as the identifier for the value to be retrieved (i think). I just want to get all of the ...
2
votes
2answers
7k views

How do I add dropdown list of titles from list in the configuration part of a web part?

I'm programming a Web Part in Visual Studio 2010 with SharePoint 2010. It will post content that users choose from the configurable part when you click on "edit web part". I want add a drop down list ...
2
votes
1answer
660 views

Retrieve only the fields shown in userdisp.aspx from User Information List

I have built a Web Part in Visual Studio 2008 to show the current user's information (this is for WSS 3.0). I have no problem iterating through all the fields in the SPListItem, but I want to filter ...
1
vote
1answer
317 views

disable auto retract option in visual studio 2010 by default

Everytime I create a new sharepoint project, I forget to uncheck the auto retract option on the project properties. I would like to turn the auto retract option off by default, but I can't find a ...
2
votes
2answers
455 views

In a FullTextSqlQuery what does SiteContext refer to?

I thought it would limit where you search, but when I tried to do something like this: fullTextSqlQuery.SiteContext = new Uri("http://test.myUrl.com/nc/mySite"); It returned results from other ...
4
votes
2answers
1k views

Is it possible to attach to a process on a SharePoint server through visual studio?

I had a piece of code that was working perfectly on my dev server, but once I deployed to my test server it stopped. I've dug through the logs and haven't found anything useful. I was wondering if ...
6
votes
2answers
2k views

Do I need to reset SPWeb.AllowUnsafeUpdates after use?

Do I need to reset the SPWeb.AllowUnsafeUpdates property after use? Seems not, but all over the web there is code like: bool allowUnsafeOrig = web.AllowUnsafeUpdates; web.AllowUnsafeUpdates = true; ...
3
votes
1answer
127 views

Move an Application Page from WebApplication to Central Administration

I've made an Application Page (derived from LayoutsPageBase) and it's showing in the WebApplication Settings correctly. Now, I need to move it to the Central Administration level. Must I change my ...
5
votes
1answer
2k views

Programmatically add menus to SPWeb.Navigation.QuickLaunch does not work

I'm trying to add some menus to the "Quick Launch" navigation and it does not work. I'm using the following code: var ql = myWeb.Navigation.QuickLaunch; SPNavigationNode m1 = new SPNavigationNode("...
0
votes
1answer
618 views

The “ValidatePackage” task was not given a value for the required parameter “ProjectService” when deploying in Visual Studio 2010

I have a SharePoint feature built with Visual Stuido 2010. Everything has been working on my project untill I changed the Site URL for the SharePoint project. Now when I goto deploy my solution I get ...
1
vote
0answers
652 views

Creating Custom List Definitions that Use InfoPath Forms - Deploy everything using Visual Studio 2010

I'm trying to create a list instance from a list definition, all from a VS2010 solution and want to have custom InfoPath forms for the list instance. This article keeps popping around in my searches: ...
2
votes
1answer
132 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
637 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 Name='ID'>100</Field>...
1
vote
2answers
146 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 DialogCallback(...
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
478 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
602 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
9k 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
15k 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 tried:...
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
822 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: ...
4
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
146 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
242 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 error:...
2
votes
1answer
201 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
691 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 fine....