.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

SP 2010 Unable to write to ULS Logs

Posted By:      Posted Date: October 02, 2010    Points: 0   Category :SharePoint
 
I just started trying to implement ULS logging since it looks like there are some great APIs on 2010.. but for some reason when I execute this code below on the web app it does not write anything - I'm a little confused as to why nothing's getting logged! anyone else have this issue?

SPDiagnosticsService diagSvc = SPDiagnosticsService.Local; // so far so good...

diagSvc.WriteTrace( 0, new SPDiagnosticsCategory("Hello ULS",  TraceSeverity.Monitorable, EventSeverity.Error), TraceSeverity.Monitorable, "Writing to the ULS logs ain't happening.", null );

// the line above does not throw any error - it just just executes without ever writing anything!! same line is placed in a console app, and it works like a charm.

Note that I am writing this inside say a web part or other typical code areas where you'd want to log activity in a custom SP solution... the same exact code works like a charm on a console app, which makes me wonder why not on the solution code?.. any thoughts? 

Alex Talarico


View Complete Post


More Related Resource Links

Unable to search Custom User Property Created in User Profiles in SharePoint 2010

  

Hi ,

I have created a custom user property,and created metadata property and added mapping to it, still i m not able to Search in People,Please advise


Creating a SharePoint 2010 Web Part That Can Read and Write Data to an External Data Source

  
Learn to use Visual Studio 2010 to create a Visual Web Part that uses a BCS external content type in SharePoint Server 2010 to read and write data to the AdventureWorks sample database.

Sample: Creating a SharePoint 2010 Web Part That Can Read and Write Data to an External Data Source

  
Explore the code in this visual how-to article as you learn to use Visual Studio 2010 to create a Visual Web Part that uses a BCS external content type in SharePoint Server 2010.

Unable to Use ToolkitScriptManager in Sharepoint 2010 webparts

  
I am trying to use ajax in my sharepoint 2010 webparts. Tried to add a calenderextender to textbox. But  the ajax funcationality is coming in to picture if i use only ToolkitScriptManager , but not for ScriptManager.(as i tested in visual studio 2010) The v4.master has got <asp:scriptmanager ... /> already.  So i can'nt add another scriptmanager(ToolkitScriptManager). Any help please?  

Unable to write anything when Update Progress Close

  
Hi,Acctually I have done lots of coding on Page_Load of a page which comming from other page. So for that i tried to use ModalPopupExtender. but problem is that its working fine for button but how can i use it for Page_Load.My scenario is:protected void Page_Load(object sender, EventArgs e)    {        PleaseWaitPopup.Show();        //Lots of code and queries;       PleaseWaitPopup.Close();          }  After too much googling i found one solution. which works but still problem is after closing ModalPopupExtender I am unable to write anything on page even i have removed StyleSheet:Current Code is as Follow:<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title> <link href="StyleSheet.css" rel="styles

Unable to connect a web service from SharePoint 2010

  
Hi, I have a requirement to connect to a webservice from SharePoint 2010 without passing Network credentials explicitly. If i am already logged into the SharePoint 2010 portal , I should be able to click on Search (which is a web service which retrieves search results from Oracle UCM) and retrieve the result. I tried localhost.ServiceX myProxy = new localhost.ServiceX(); myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; also myProxy.UseDefaultCredentials = True Still i am unable to authenticate. Default credentials returns null value.   Kindly help.

Unable to authenticate to web services for a SharePoint 2010 logged in user

  
Hi, I have a requirement to connect to a webservice from SharePoint 2010 without passing Network credentials explicitly. If i am already logged into the SharePoint 2010 portal , I should be able to click on Search (which is a web service(wsdl file) which retrieves search results from Oracle UCM) and retrieve the result. I tried localhost.ServiceX myProxy = new localhost.ServiceX(); myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; also myProxy.UseDefaultCredentials = True Still i am unable to authenticate. Default credentials returns null value.   Kindly help.

Unable to authenticate to web services for a SharePoint 2010 logged in user

  
Hi, I have a requirement to connect to a webservice from SharePoint 2010 without passing Network credentials explicitly. If i am already logged into the SharePoint 2010 portal , I should be able to click on Search (which is a web service(wsdl file) which retrieves search results from Oracle UCM) and retrieve the result. I tried localhost.ServiceX myProxy = new localhost.ServiceX(); myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; also myProxy.UseDefaultCredentials = True Still i am unable to authenticate. Default credentials returns null value.   Kindly help.

unable to open office files on WSS 2.0 after install office 2010

  
Hi expert ^^ I have a question as below. Our company have a Windows Sharepoint Services 2.0 edition that working correctly. But recently we have a problem that our clients are unable to open office filles on WSS 2.0 after office upgraded from office 2007 to 2010. As far as I know some office files are able to open (ie: docx, pptx) but others(doc, xls, xlsx) do not. Does anyone know about above issue? Please let me know your advice!! Thanks.

VWD 2010 Express (and all VS 2010 Express) "Unable to attach debugger."

  
I have a problem similar to the one described here: http://forums.asp.net/p/1200680/2103206.aspx - but that was about VS 2008 RTM, and also a different error message.When I go to debug anything using any of the VS 2010 Express apps (under WinXP SP3 x86 with .NET 2 SP1, 3.0 SP1, 3.5 SP1, and 4.0 installed), I get an error alert box showing:"Unable to attach. The debugger is not properly installed. Cannot debug the requested type of code. Run setup to install or repair the debugger."I did a Repair on VWD 2010 Express, then another on .NET 3.5 (which includes .NET 2.0 SP1 and .NET 3.0 SP1), to no avail.From reading in other forums, I read advice on running the Debugger Diagnostics, which I did. It seemed to show no errors (all Return Codes were eight zeroes each).I also saw advice on running "regsvr32.exe" on the "mscordbi.dll" file found in my .NET 2 Framework folder (%windir%\Microsoft.NET\Framework\v.2.0.50727), and on a file in the V7DEBUG folder, which I did. The latter worked fine, but the former gives this alert:"mscordbi.dll was loaded, but the DllRegisterServer entry point was not found. | This file cannot be registered."In the thread I linked to, greggm suggested using FileVer (found on Windows 2000 and up CD-ROMs by installing the Support Tools) on the contents of the V7DEBUG folder. I did it to both that and the .NET Framework 2 folder as well, and re-directe

Unable to monitor SharePoint 2010 using SharePoint 2010 Management Pack for SCOM 2007 R2

  
I am using Microsoft SharePoint 2010 Products Management Pack for System Center Operations Manager 2007 to monitor my SharePoint 2010. After installation the version of SharePoint management pack displays as 14.0.4744.1000 where as the one I have installed was of version 14.0.4745.1000. It does not show if anything is managed or not. Kindly help if someone has used SharePoint management pack for managing SharePoint server 2010. Thanks, Rucha

Unable to update Work E-Mail in My Setting of Sharepoint 2010

  
Hey,   i am trying to update Work E-mail in My settings but it will not allow me to edit.   when i click on Edit Items then Attach file comes as user personal information   Please suggest me solution.   Regards, Sachin Phapale  

VS 2010 unable to edit or display xaml files.

  
Hi,

I am having a problem using the editor for xaml files in Visual Studio 2010.

I have used Visual Studio 2005 and 2008 for many years.  Over the last year or more I have been constructing and maintaining a Silverlight application, editing both the xaml code and using the design mode.  I am quite familiar with it and it worked fine.

However we recently installed several copies of Visual Studio 2010 as trial versions and since it seemed OK we converted to the full version.  However now I am having trouble viewing xaml files in the editor, in either the design mode or as text. 

Double clicking on a xaml file in the Solution Explorer, which should start the xaml editor, now does very little, leaving the main screen blank. The file seems to be open since it is listed in the list of open files in the 'Windows' drop down menu.  If I ask it to reload the file it says it is already open and do I want to close it before continuing.  But it is not accessible or visible.

Right clicking on a xaml file and selecting 'Open with..' shows the 'Automatic Editor Selector' is selected as default.  If I select 'Text Editor' I can at least see and edit the xaml code.  But I can not see the design mode.  If I select 'Windows Presentation Foundation Designer with encoding' from the 'Op

Share Point Server 2010 beta ...unable to install

  

Downloaded Share Point Server 2010 beta ... when trying to install  Under option

Prepare 

1)Review hardware and software requirements is active

2)Read the installation guide is active

3)Read the upgrade guide is active

Install

1)Install software prerequisites is not responding

2)Install SharePoint Server is not responding

Other Information

1)

Unable to Trust Active Directory So that can Be included In sharePoint 2010

  

Hi ,

I wanna add another Active Directory to User Profiles in SharePoint 2010,Please guide me in Step by Step.

Thanks in advance


Unable to start/stop SharePoint 2010 service

  

Hi.

I've developed customs SharePoint 2010 Service based on this tutorial: http://blogs.msdn.com/b/dtaylor/archive/tags/calculator+service+example/

My first version inherits from SPIisWebService (and SPIisWebServiceInstance, SPIisWebServiceApplication etc..) - everything worked fine.

Then I redesigned my service to inherits from SPWindowsService (and SPWindowsServiceInstance, SPWindowsServiceApplication etc...). Everything works fine without one thing:) - I'm not able to start or stop Service (neither from PowerShell nor SP Central Admin page). After installed my service, it is started. When I uninstall it and install once again - it's still started.

When I try to stop it (or start on clear SharePoint environment), I've got the following exception (where IntegrationService is the name of my service)

System.ComponentModel.Win32Exception: IntegrationService
at Microsoft.SharePoint.Win32.SPAdvApi32.SetServiceStartupType(String serviceName, Int32 startupType)
at Microsoft.SharePoint.Administration.SPWindowsServiceInstance.Provision(Boolean start)
at Microsoft.SharePoint.ApplicationPages.ServerPage.OnObjectModelAction(Object sender, ObjectModelActionEventArgs e)
at Microsoft.SharePoint.WebControls.ActionLinkDataSourceControl.OnObjectModelAction(ObjectModelActionEventArgs e)
at Microsoft.SharePoint.WebControl

Unable to delete groups in SharePoint Foundation 2010

  
I have a test group I created in SharePoint that I want to delete (I'm the only user in the group). In the "People and Groups: All Groups" screen I click the edit icon next to the group and then click on the "Delete" button and ok the following warning dialog. However, the group doesn't get deleted. Any idea why this is happening and how to finally delete this group? Thanks.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend