sharepoint

How do I find the IP address of a user on SharePoint

I've got a webpart that presents a user on SharePoint with a simple button. On clicking the button I log the user that clicked it, the time and their IP address. The bit I can't figure out is how to find their IP address? Can I get to it through the SharePoint object model or do I have to do something more complicated? private bool Sign...

SharePoint custom logon form doesn't do anything on submit

I feel sure I'm missing something simple.. I had this working on a different server but now that I've migrated to a different server it doesn't seem to work. I have a WSS 3.0 site with forms-based authentication enabled and a custom logon form. When you go to the logon form and enter your username and password and click submit, it just s...

Open a web folder (Sharepoint 2007)through openFileDialog

I have the following snippet of code written in C#: openFileDialog1.InitialDirectory = "\\\\fwm-storage\\users\\" + curUser + "\\My Documents\\My Pictures"; openFileDialog1.Filter = "All Files (*.*)|*.*|Images (*.jpg)|*.jpg"; openFileDialog1.FilterIndex = 2; // blah, blah, blah Which works great and all, but, I want to be able to add...

Adding User to Active Directory

To get a new user in SharePoint with Windows Authentication, do you log on to the server and add the user manually / you develop some web part in SharePoint to Administer the AD? ...

Changing the default page based on security group in SharePoint

We have a SharePoint site collection. In this site collection we have a home site and 6 other sites. Each of these sites belongs to a department in our company. Right now if you are a member of department A security group you would see homepage and your department site/tab when you navigate to the site. What they want me to do is to redi...

C# Could not load file or assembly 'Microsoft.SharePoint.Library'

I am developing on a 64bit version of Windows 7, running MOSS (SharePoint), this is my dev machine. Now when I deploy my web service app to a test server Windows 2003 32bit (no Sharepoint installed) I get this error. Could not load file or assembly 'Microsoft.SharePoint.Library, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9b...

Are there 32- and 64-bit versions of Microsoft.Sharepoint.dll?

Does Microsoft.Sharepoint.dll come in both 32bit and 64bit flavors? So if I develop on a 64bit machine. Do you think if I install MOSS 32bit, I will be able to deploy successfully to a 32bit server. Or can I just copy the 32bit DLL's inplace of my 64bit DLLs? ...

User controls, web parts and WSPBuilder

Can anyone point me to tutorials on how to use WSPBuilder to host a user control in a MOSS webpart? ...

Infopath web form - Submit and switch view

I have an infopath form that I use as part of a MOSS workflow. The form has multiple views, and a Save button on each one. What I want to do as part of the Save button's rules, is submit the information and switch to the next view. I added two rules to the button, one to submit data and another to switch view, but when I re-enter the f...

How do you get SharePoint "My Links" back after a profile has been deleted and restored?

We're running SharePoint 2007 SP1 and profiles are imported from Active Directory (a full import runs daily). We had a problem where many of the users were disabled unintentionally in Active Directory and this caused their profiles to be removed from SharePoint. We re-enabled their Active Directory accounts and ran a full import which ...

SSIS- Sharepoint list data transfer issue

Hi , We are trying to transfer data from oracle database (about 60,0000) records only to a sharepoint list using SSIS. But we are getting following error when records reaches around 19000 . The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020 and System.ServiceModel.ProtocolException: The remote server...

SharePoint via web services: how to pass a date?

Trying to pass a date to an add item with the Lists web service using: string item = "<Method ID=\"1\" Cmd=\"New\">" + @"<Field Name=""AcceptanceTime"">" + DateTime.Now + "</Field>" But it's generating an exception: 0x8102001c Invalid date/time value A date/time field contains invalid data. Please check the value ...

SharePoint via web services: how to add attachments?

Adding a list item via the SharePoint web service model, any idea how to add an attachment to the list item? ...

Integration between Project Web Access and SharePoint (Gantt Charts)

I'm a newbie to using Project Web Access and I wondered if someone can guide me by giving links that help in integration of SharePoint site with Project Web Access. What I want to do is to generate Gantt charts inside a regular SharePoint site. I know that there is a standard view to generate charts in SharePoint but I need the more cus...

Does PowerShell STA mode eliminate SharePoint memory leak issue?

Some background: SharePoint+PowerShell is (Usually) a Perfect Match by Zach Rosenfield [MSFT] SharePoint+PowerShell Leak Workarounds by me SO: Could you explain STA and MTA? In short, standard SharePoint guidance is that COM-backed objects like SPSite and SPWeb should not be used by different threads. This stands in conflict with Pow...

Sharepoint via web service : checking if item exists in list

Because Microsoft did not include a way to have unique constraints in sharepoint, this has to be done manually. I am inserting items into a sharepoint list via a web service method. How can I check if an existing list item already exists with the same field ID value? I've learnt I should be using wsLists.getListitems web service met...

Calculated Column formula

Hello All, I have this question regarding creating a calculated column in SharePoint. My problem is that I need a column that will display text values in a dropdown list and once the user selects one of the text values, a number value will be assigned to each text value and will be stored in the field to be referenced by another calcula...

InfoPath forms viewer web part

Hi. I'd like to write a SharePoint web part that would display InfoPath forms and have some additional functionallity. Does anyone know how to implement the "forms display" part of the web part??? Thanks. ...

Improved document upload experience in SharePoint

The default WSS 3.0/SharePoint 2007 SharePoint upload user experience is like this: Click link for document library. **PostBack** Click Upload. **PostBack** Click Browse. **Dialog** Click on document and click OK. **Dialog disappears** Click OK. **PostBack** Fill in document properties and click OK. **PostBack** Best case, this is a ...

Event Handler Management / View list?

Hi, I've made an event handler on a list (with the ID of the custom list) with a feature. I activated the feature, but my Event Handler Code is never called (the ItemAdding method). My question is if there is something that can tell me if the list I created is really tied up with my Event Handler? I've seen something on CodePlex but it ...