webpart is working on local server but not working on production server when "SPSite" class is uesd in the web part. On the production server it throws error. If I do not use that class in the webpart the web part also works on live machine.
Any idea what might be causing the error?
the code in the webpart is this:
namespace CompanyNe...
We have the following code in a webpart:
using (SPSite site = new SPSite("http://localhost/"))
{
using (SPWeb web = site.OpenWeb())
{
SPList list = web.SiteUserInfoList;
if (!list.Fields.ContainsField("Office"))
{
list.Fields.Add("Office", SPFieldType.Text, false);
list.Update();
}
}
}
in the 4th ...
I basically have quite a large site collection with various site and sub sites that all contain their own document libraries. I need to change the default view of each document library to include the following fields:
Checked out to.
Check in comments.
This is ok as I have written an app that will loop through all existing lists and ...
Hi guys, we use MS Search Server Express to search for files stored in traditional directories on our network but would like to also be able to return files that have been stored directly in SQL Server as either SQLFileStream datatype, or stored in-row as varbinary(max). How can add a SQL Server database/table/field as a content location...
Is there any way I can add a custom function to WSS 3.0 that can be used in calculated fields?
For example, I want to add a function that URL Encodes strings, so that the users can create columns with the URLs based on the other fields something like this:
"http://www.test.com?fname="&URLENCODE([FirstName])&"&lname="&U...
This is an architectural question.
We are in the process of building a document management site with basic workflow which needs to be external facing.The external facing application needs to be branded and should have the capability to upload and download documents and also support versioning.We have decided to use WSS 3.0 as the collab...
I need to migrate a WIKI site from one site collection in Server A to another site collection in Server B. Both are running WSS 3.0
How would I do it if I'd like to migrate the pages, links, documents in libraries and the history?
...
I have a solution that copies all the content of SharePoint lists to a file, and then copies the content of the file back onto SharePoint (used for backups and stage / live environment switches).
Now I can copy all the fields I need except for one : ID
I understand that it is a read only field, but some other read only fields can be up...
We have to do some Sharepoint development on a 64-bit machine using Visual Studio 2005. However from initial searches, it looks like 64-bit support was added in a version (1.3 that only supports Visual Studio 2008.
When trying to install the 32-bit 1.1 version (the one that works with Visual Studio 2005), it gives an error saying the pa...
Hi there,
i entered a company who runs an intranet page using wss 3.0.
The guy who set it up isnt around anymore and there is no one else with any knowledge about wss so i was asked to get a feel for it. Working on Sites is pretty easy but i dont know anything about settings etc.
I noticed that they never did any backups and looked in...
I have a custom content type with two extra columns defined in WSS 3.0. I have a document list with word documents of that content type.
When I open a document on my XP client with MS Office 2003 and IE6 (company regulations :-( ) this works fine. When I make changes however and I try to save the document, I get following error:
I do...
I have the Sharepoint Intranet server on the same nework as the Internet PHP Web server. I would like to know if via PHP SQL code I can access a collection list of PDF files from the intranet so it can be viewed on the Internet site.
...
We are using WSS 3 SP2. I'd like to preface this by saying that while I have been programming for some time, I have not done any Sharepoint development before now, so I am very much a newbie in that respect.
Basically what we have is a Sharepoint wiki that contains support documentation about each of the various applications throughout ...
I am trying to activate a SharePoint feature through code.
SPWeb.Features.Add(new GUID("XXXXXX")
This above line is written in featureinstalled event handler where I am reading all the sites on the farm and activating the feature on each site.
But upon activation it is not calling / trigger the featureactivated event handler where I ha...
I have a webpart deployed as a feature. Upon activation reads a value from feature.xml property bag. Lets say in future I want to change the value in the feature propery bag and update the web part. Is it possible to do it without undeploy the whole package update the feature.xml and re deploy the wsp.
All I want to do is update the feat...
We are using Search Server 2008 Express and WSS 3.0. Can we upgrade to Search Server 2010 and still keep WSS? We can NOT upgrade to Sharepoint 2010.
Anything I should watch out for if we try to upgrade? Is it even worth doing?
Search Server 2010 Express
http://technet.microsoft.com/en-us/enterprisesearch/ee263912.aspx#tab=1
...
Hello,
I have two sharepoint sites in different countries how can I make the data in the two sharepoint sites to be identical. I mean when an item added to first site i want it to appear in the second site. is that possible?
...
Hello
I've created a simple asp.net application to open a site and display the title of the corresponding web. But i'm getting FileNotFoundException while trying to open the site. The same code works perfectly when i run it in a console app.
My spec
Windows Server 2008 R2 x64,
SharePoint 2007 x64,
Visual Studio 2005
My target for t...
Hello,
I have sharepoint 2007 site and i export this site and i want to import it to another site can i import it to existing site not create new one?
...