Browse by Tags

All Tags » error (RSS)

Help! My SearchBox Web Part won't Submit

I have caused this to happen a number of times and the answer isn't obvious at first, so I thought I would post on it and explain what causes it and how to fix it. The behavior usually occurs for me when I am deploying a SearchBoxEx web part via a Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

BDC: Could not create profile page for Entity

I have seen quite a few searches for this warning in our stats, so I thought I would address the following message received when importing an application definition into the Business Data Catalog. Could not create profile page for Entity MyEntity. The Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

COMException (0x81020037): The file blah.docx has been modified by domain\user.

I was working on an ItemEventReceiver the other day and ran into this lovely unmanaged exception. Luckily, the fix is easy, because I knew exactly what I had done wrong. I noticed there wasnt a ton out there on Google about it, so I figured I would post Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs
Filed under: ,

Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor

This error has been pissing me off for a long time. I have an environment that works great for remote debugging most of the time. However, every couple of days when I show up for work, I encounter the following error. Unable to connect to the Microsoft Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Unable to connect to database.

The description for Event ID ( 27745 ) in Source ( Windows SharePoint Services 3 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: #50071: Unable to connect to the database SharePoint_Config on pfc-penndb-tst. Check the database connection information and make sure that the database server is running.. I keep getting this error in my error logs for our Test/Staging Portal. I'm unsure where its coming from. Any ideas? Posted on SharePoint Blogs Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Using Business Data Catalog Definition Editor

Using Business Data Catalog Definition Editor Category: SharePoint Level: Beginner Business Data Catalog is a Microsoft Office SharePoint Server feature that allows users to access external data from within SharePoint. SharePoint, as we know, is an excellent collaboration portal that can be used to create robust collaboration applications using Office products. Good thing about the new SharePoint portal is that it also allows you to create applications that involve non-MS products and allows you...( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Microsoft's SharePoint VPC: Successes and Failures

I thought I would get a dialogue going about Microsoft Trial SharePoint VPC. My new consulting company has me looking into it as a viable tools for proof of concepts and demoing purposes. Well, I have a few concerns. One, the VPC has a trial version of Visual Studio 2005, which the trial version does not install the templates for VS 2005 and does not have a command prompt for your use. Therefore, I try to install the templates for wss 3.0 but no templates are installed into VS 2005. So I can't build a web part(save for from scratch). I can't build a site definition or any of the like. I'm very discouraged by this discovery. I am currently attempting to get VSTA on the trial version to program with InfoPath 2007, but I am doubtful it will work... Please if anyone has attempted to use the trial vpc for such tasks and been successful or had the same luck as I have. Please post your comments here! Posted on SharePoint Blogs Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Edit Sharepoint security in C# -- "The security validation for this page is invalid"

I recently had my fair share of trouble when trying to edit the security of a web site through code. Every time I executed the code, some error came up. Most of the time, it was either "Access Denied" or "The security validation for this page is invalid". Pretty annoying stuff I thought, and searching the web didn't really help all that much ... I ran the code using RunWithElevatedPrivileges, but that didn't help much. Neither did the SPWeb.AllowUnsafeUpdates property. After searching for a REALLY long time, I found the answer in a blog's comment: ( http://spiderwool.blogspot.com/2006/07/security-validation-for-this-page-is.html ) SPSite.WebApplication.FormDigestSettings.Enabled = false Finally I had found the solution. However, after redeploying the code on a new web application, I suddenly got an Access Denied error when trying to set this property. After some searching I found out this was due to the fact I set the application pool to run as Network Service in stead of an administrative account. This did fix my problem, however I did not really found out the actual source of the issue ... So, taking all this into account, here is an example of how to set a web's security through code: public void EditSecurity() { SPSecurity .RunWithElevatedPrivileges( delegate () { using ( SPSite site = new SPSite (url)) { using ( SPWeb web = site.OpenWeb()) { SPWebApplication webApp = web.Site.WebApplication; webApp.FormDigestSettings.Enabled = false ; web...
Posted by SharePoint Blogs
Filed under: , , ,

Error When Publishing InfoPath 2007 form

Was at a client site last week, the InfoPath 2007 forms needed to be browser enabled, so I performed the following steps: Clicked on the Tools menu Selected Form Options menu item Selected the Compatability category Checked Design a form template that Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

SPWeb fails to return the list

When working on large applications, we usually make mistakes and then spend time debugging the errors that occur because of the mistakes that we make during programming but there are some errors that occur even if you don't make any mistake. Have a look at the following code: SPWeb web = Site.OpenWeb(SPContext.Current.Web.ID); string strList = SPContext.Current.Web.Url.Substring( .... substring processing ....); SPList list = web.Lists[strList]; //This line gives error! Do you see any problem...( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Invalid column name c2

SharePoint gives you this error when you try to search documents using the SPQuery object and you search by passing the document's Name. SPQuery object uses the internal field names so it's important to pass correct internal name for the correct field to be searched. By default, the "Name" field that is visible in the library has the internal name "LinkFilename" so when someone wants to search a document in the library using the "Name" field, obviously he uses...( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks