About Me

I am a Software Engineer presently working in Microsoft as vendor.The main aim of this blog is to Share my knowledge in Sharepoint,AZURE and Silverlight.

Wednesday, 9 September 2009

Silverlight 3.0

Hi its a bit late for my post as I am currently busy in working with Silverlight3.0 new controls and new features. Silverlight 3.0 is very cool giving more controls for a developer to make his work easy when I am using silverlight 1.0 I implemented different techniques to get the theme effect but now in silverlight is giving themes effect defaultly the same with tree controls and button controls.and it is also enhanced in media effects too.
Any way soon Ill make a post on silverlight cool stuff with my handsonexperience.:)

Tuesday, 23 June 2009

Tools for Sharepoint

Hi I am bit busy these days so didn't got a chance for new post soon ill keep some good stuff. I found a good blog for Tools in sharepoint when ever you get some time look in to this tools it will help a lot.

http://jopx.blogspot.com/2007/05/sharepoint-2007-tools-collection-v1.html

Thursday, 19 March 2009

MOSS-InfoPath-Error on 64bit MOSS when accessing SPSite through OM in InfoPath

I had an issue with infopath2007 and sharepoint2007 when i m trying to use object model from infopath in 64 bit machine where sharepoint is installed it gave me the below error. The same code is working fine with console.



The web application at "" could not be found.verify that you have typed the URL correctly.If the URL should be serving existing content,the system administrator may beed to add a new request.


The solution to this problem is :
InfoPath is a 32 bit app and is loading a 64 bit binary (Microsoft.sharepoint.dll)
so what we have is a 32 bit process (InfoPath) running on a 64 bit OS, wow64 will
translate registry calls to the wow64 registry note, and
"HKLM\\wow6432node\SOFTWARE\\Microsoft\\Shared Tools\\Web Server
Extensions\\12.0\\Secure\\ConfigDB" does not exist. Since the 64 bit version of
SharePoint is installed, wow64 does not get involved and the registry key
"HKLM\\SOFTWARE\\Microsoft\\Shared Tools\\Web Server
Extensions\\12.0\\Secure\\ConfigDB" is used to store the farm’s connection string
info.

There is no 64 bit version of InfoPath. For Office2007, we support mixing 32-bit
and 64-bit front end servers in the same farm, with the caveat being that customer
must install 32-bit WSS on a 32-bit OS and 64-bit WSS on a 64-bit OS. We do not
support 32-bit WSS v3 on a 64-bit OS via WOW64. If InfoPath 2007 is calling our OM
and installed on a SharePoint box, then they’ll have to install it on an front end
server where 32-bit WSS is running on a 32-bit OS.
The solution would be to add a 32 bit server with 32 bit MOSS and
InfoPath installed to the farm.

And my sincere thanks to Travis Mathison,Sailaja kalidindi on helping this issue. :)

Friday, 6 March 2009

getting current node value in a dynamic section of infopath.

Hi ,

came back to blog some thing.
using this technique we can copy the current values and paste to the new section in a check box event.such as copy the same as above.

last week I had an issue how to get the current node value in a repeating section on firing a dropdown event.

for example if we have a text box value and a drop downs in a repeating section. as in below image.


In this example ResourceName is the dropdown and groupname is the textbox and in the change event of the dropdown we have to get groupname value.if we are doing with only one section then no need of doing all the below explaination we can use direct xpath.

But if we have same Resource names in different groups then we have to get the group name and use that group to locate the resource and fill the dependencies.

so here is the line i used to get the groupName Value

e.Site.SelectSingleNode("../../../@my:DisplayName", this.NamespaceManager).Value

here "e" is the event passed by dropdown and give the xpath value as shown above this gives the country value and we can get easily state value by using e.NewValue

Monday, 8 December 2008

Moved To Redmond Microsoft

Sorry for the delay as i did postings months back as I m busy with my schedule in release of the project.
later with my sister marriage and next moving to Redmond.

Here are my pics in Redmond. :)


Soon Ill post some cool stuff in sharepoint.

Thursday, 28 August 2008

Getting new Tab instead of Development for our Custom Site Definition.

Hi ,

we have a custom site definition and one of the requirement is user should be able to see a seperate Tab for our Project rather than displaying the template under Development. for this we have 2 options.

1)if we are generating a sitedefintion using sharepoint solution Generator then open the solution and right click on project properties and select the “SharePoint Solution” tab.
Expand the Solution->Sitedefintion->Manifest.
give the Appropriate value in the Display Category as I gave “Sasi”.


2)if the solution is already deployed and you want to change then follow the steps.

Go to the folder in the SharePoint server:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML


Open the xml webtemp file of ur definition.


You will see the following xml :
<-Templates xmlns:ows="Microsoft SharePoint">
<-Template Name="ABC_Site_Definition_11eec25f-6951-462a-a8e5-63d5ae20211e" ID="10000" >
<-Configuration ID="1" Title="ABC_Site_Definition" Description="" Hidden="False" ImageUrl="/_layouts/images/stsprev.png" DisplayCategory="ABC" />
<-/Template>
<-/Templates>
(Remove '-' in the tags)
Change the display category to your project name. This gives the tab as per your requirement.

Hidden=”True” Solves the other requirement it hides the other sitedefinitions which you not required.

So the Output u see as below.


Cheers give a try.

Sunday, 27 July 2008

Sending Mail in Sharepoint using code.

we should include the following namespace
for this Add reference of Microsoft.Sharepoint in references.

using Microsoft.SharePoint.Utilities;

Get the header information which contains To,Subject,CC...

System.Collections.Specialized.StringDictionary headers = new System.Collections.Specialized.StringDictionary();
headers["To"] = v-sasikp@microsoft.com;
headers["Subject"] = "This is test mail";


finally,
SPUtility.SendEmail(myweb, headers, emailMsg, false);

But this requires configuration of email server in central administration.

Simple Ex:
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;

namespace blogmail
{
class Program
{
static void Main(string[] args)
{
SPSite Site = new SPSite("http://sasikp-v:4008/");
SPWeb myweb = Site.OpenWeb();
SPUtility.SendEmail(myweb, false, false,"v-sasikp@microsoft.com", "This is test mail for blog","Pls dont reply to this mail this is testmail. ", false);

}
}
}