Profilo di ambatiProgramming Myself.. Amb...FotoBlogElenchiAltro Strumenti Guida

Blog


CRM Notes

MS CRM error  OpenThreadToken failed with hr = 1008
 
The CrmImpersonator only works when your web page in executed in the context
of CRM. While running in your dev environment, it fails. Developing ASP.NET
applications for Microsoft Dynamics CRM 4.0
(http://www.stunnware.com/crm2/topic.aspx?id=ASPNET1) should help.
 
 CRMService.CrmService service = new CRMService.CrmService();
should be the first line then second line is CRMService.CrmAuthenticationToken token = new CRMService.CrmAuthenticationToken();
Otherwise the above error comes. I observed  it.
 
In Titan Impersonator (IFD environment) we have to use Microsoft.crm.sdk and sdktypeproxy. And we can copy the files in wwwroot.So we cannot debug. For debugging we have to create a console then once it is working we can copy those files in wwwroot.
But in AD (no crm.sdk and crm.sdktypeproxy) we can debug.
 
FOR AD: Take webreference and point to http://10.1.7.31/MSCrmServices/2007/CrmService.asmx
             using CacLicenceKeyGeneratorDataAccess.CRMService;
            CRMService.CrmService service = new CRMService.CrmService();
            CRMService.CrmAuthenticationToken token = new CRMService.CrmAuthenticationToken();
            token.AuthenticationType = 0;
            token.OrganizationName = "WiproInfotech";

            System.Net.NetworkCredential credentiasl = new System.Net.NetworkCredential();
            credentiasl.Domain = "10.1.7.31";
            credentiasl.UserName = "Administrator";
            credentiasl.Password = "Swayam1";
            service.Url = "http://10.1.7.31/MSCrmServices/2007/CrmService.asmx";
            service.CrmAuthenticationTokenValue = token;
            service.Credentials = credentiasl;
            return service.Fetch(fetchXml);
 
FOR IFD: just refer the crm.sdk and sdktypeproxy dlls
the below code
            string fetchValue;
            CrmImpersonator crmImpersonator = new CrmImpersonator();
            using (crmImpersonator)
            {
            System.Net.NetworkCredential credentiasl = new System.Net.NetworkCredential();
            credentiasl.Domain = "10.1.7.31";
            credentiasl.UserName = "Administrator";
            credentiasl.Password = "Swayam1";
            CrmAuthenticationToken token = new CrmAuthenticationToken();
            token.AuthenticationType = 0;
            token.OrganizationName = "WiproInfotech";//CrmAuthenticationToken.ExtractCrmAuthenticationToken(HttpContext.Current, "WiproInfotech");
            Microsoft.Crm.SdkTypeProxy.CrmService crmServiceInstance = new Microsoft.Crm.SdkTypeProxy.CrmService();
            crmServiceInstance.Url = "http://10.1.7.31/MSCrmServices/2007/CrmService.asmx";
            crmServiceInstance.CrmAuthenticationTokenValue = token;
            crmServiceInstance.Credentials = credentiasl;  //CredentialCache.DefaultCredentials;
            fetchValue = crmServiceInstance.Fetch(fetchXml);
            }
            return fetchValue;
24 gennaio

About my village

I went to my native place.Its a small village.
I saw in WikiPedia Telugu http://te.wikipedia.org that we can write about our villlage.
Even I heard in Bangalore blogger meeting too.
I collected so much history about my village during my Pongal vacations.
I had taken photos which says the history of important locations of my village.
Now I have to document it in Wikipedia.,

CRM notes

Right now I was working on CRM customization after a gap of 4 months. Actually the current project requires both CRM and Sharepoint skills.
 
FetchXMLBUilder
 
IFD environment (CRM 4) -- Needs impersonator --- Add reference to Microsoft.crm.sdk and  Microsoft.crm.sdktypeproxy
AD environment                          -webservice
 
 
Ajax call
 
source: for this error

'Microsoft.Crm.WebServices.Crm2007.MultipleOrganizationSoapHeaderAuthentica­tionProvider,
Microsoft.Crm.WebServices, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' doesn't exist.

The issue is that the application cannot find the Microsft.CRM.WebServices library. I've seen a few ways to solve this error. Credit goes to Wes Weeks on finding these:

1. Add the following code to your application's web.config file:

<assemblies>
<clear/>
<add assembly="*"/>
</assemblies>

2. Copy Microsoft.CRM.WebServices.dll from the CRM web root bin directory (For default web site installations, this would be c:\inetpub\wwwroot\bin\) to the Global Assembly Cache (C:\windows\assembly\)

3. Copy Microsoft.CRM.WebServices.dll from the CRM web root bin directory to the bin directory for your web application.

-----
 
 
CRM 4 sdk doesnot contain template.css file with the sdk
 
  1. Once you have loaded your project (I am assuming you are using a new asp.net page which has had nothing done to it), navigate to where you have extracted the CRM SDK, and under it you will find a style sheet you will need. It can be found in: CRM SDK\sdk samples\stylesheet\template.css. Add this to your project.
  2. Next drag the CSS file from the solution explorer onto the default.aspx (I am assuming that Visual Studio is in design view and not source view). If you get this right the background will go that lovely light blue.

3. I want a button on the public view grid toolbar.

It is possible by changing in isv.config file

For getting the selected row use : getselected("CrmForm") pass as querystring

22 gennaio

munimo

Source: MomoBangalore

munimo is a community initiative to introduce those cool Mobile applications that you discover, to more and more mobile users.

  How??

Nothing complicated, just three simple steps.

  1. You tell munimo about the cool applications that you use
  2. munimo Mobile application and portal is available for all Mobile phones, to allow users discover these
  3. Mobile users easily browse though the entire application catalogue and install the ones they want

Nokia Developer Conference feedback

After refreshed from Pongal vacations I came to Bangalore and attended Nokia Developer Conference on 20th.
It was wonderful experience.
Thanks to Shiraz Dutt for giving me Free Pass.
 
08 gennaio

Vacation

I am going to my native place after one year.
Things have changed so much in IT industry. Now I will see the change in my native place too.
I have so many works to complete there.
After my vacations I want to follow a different approach.
Till  now I tried for the success of a project and getting its next phases.
Now I will target to create an Account for that client.
Lets see what will happen.

Janaagraha Online Voting Registration

http://www.jaagore.com/makeyourmark_individuals.html#p5
Jaago Re! One Billion Votes movement offers several tools and opportunities to you to run your own voter registration drive and get others around you registered as voters.

Our online voter registration engine allows the option of attributing one's voter registration to an existing member of www.jaagore.com. With this, you can always track the number of people you have awakened through your VOTOMETER which can be seen under your "My Profile" page.

So launch your voter registration drive right away! You can get involved at varying levels of involvement, from EASY to CHALLENGING.


(Level: Easy)

This is to get you started right away!

Ask your friends to register for voting at www.jaagore.com in following ways:

• Send an sms "VOTE enroll , etc." to 56767. For eg. "VOTE enroll 9900909405,   9845023541, 9987654321". We will send an SMS to all your friends asking   them to register to vote at www.jaagore.com. You can enroll a maximum of   5 friends through one SMS

Send an email to your friends right now! You will also get an option to copy   you address list from yahoo, google, msn etc.

• Talk about this campaign at all possible forums and meetings.

(Level: Easy)

Time to roll up your sleeves and do all that internet allows you to do to get others registered for voting

• Check out ORKUT and FACEBOOK communities of Jaago Re! One Billion Votes   movement, and ask your friends to register there

• Add "www.jaagore.com" to your Yahoo Messenger, G Talk, ORKUT and   FACEBOOK profile name, to spread instant awareness on this movement

• Write a blog, and leave comments in other blogs and online discussion forums   to spread awareness on how easy it is to register to vote through this   movement


(Level: Medium)

Time to step out and hit the street!

Spend a day in your society or neighbourhood to run a community level voter registration drive and get hundreds registered. You can also opt to become a Booth Level Volunteer (BLV) for your polling booth, and help citizens in your community to register directly through you.

As a BLV, you can make a direct impact on the voter registrations in your locality. You can also play a vital role in assisting in Election Commission's activities from time to time by working closely with the Electoral Registration Officer (ERO) and Booth Level Officers (BLOs) in your locality.

Mail us on outreach@jaagore.com to request for a Community Registration Drive toolkit to get your planning underway.

(Level: Medium)

Reach out to your own people!

Whether you are a student or an employee, Jaago Re! One Billion Votes offers you means and support to run a campus voter registration drive to get 100% of your institution registered to vote.

All that is required is individuals like you to come forward and take leadership in driving the change. You can:

• Conduct a talk and plan for a registration drive all by yourself, or

• Invite us to help you in organizing a registration drive at your campus.

The Outreach program of Jaago Re! One Billion Votes movement works with colleges and companies in 11 cities (Delhi, Jaipur, Lucknow, Ahmedabad, Surat, Mumbai, Pune, Bangalore, Chennai, Hyderabad and Kolkata) in organizing voter registration drives and getting 100% of the students or employees registered for voting.

Your college or company can play a leadership role in this movement by choosing to become a Host Institution. The Outreach team works closely with volunteers from the Host Institutions to:

• Organize a launch event cum voter registration drive, and a series of follow up activities to get 100% of the people registered for voting

• Setup a ONE BILLION VOTES chapter within the institution that will internally lead the efforts to get 100% voter registration, and "get out the vote" efforts close to elections

• Spread the message of the campaign to other institutions within the city

Jaago Re! One Billion Votes movement will certify all 100% voter registered institutions and will celebrate them through periodic events. These institutions will be profiled on this website, and on national media.

To know more about how you can organize a talk by yourself, or to invite us to your campus to run a drive and enrol your institution as a Host Institution, contact us at outreach@jaagore.com.

(Level: Challenging)

Be the change you want to see!

Voter registration efforts in all Outreach cities (Delhi, Jaipur, Lucknow, Ahmedabad, Surat, Mumbai, Pune, Bangalore, Chennai, Hyderabad and Kolkata) will be planned and executed by a select group of 10-15 passionate volunteers.

Apart from the challenge of convincing institutions (colleges and companies) to conduct voter registration drives in their campuses and then executing these drives, this role also calls for a good time commitment (about 1 day/week).

As a city team member, you will be at the driving seat of the campaign within your city, and will get an opportunity to make a high order impact. You will also get to interact closely with the national team running the campaign, and some of our Advisory Board members who will be mentoring the city teams.

So if you are nuts about this campaign, and think you can lead the voter registration efforts in your city, fill the City Team application form today and send it to us at outreach@jaagore.com.

Beauty

The Future Belongs To Those Who Believe In the Beauty of Their Dreams”
01 gennaio

FOCUS IS THE MANTRA FOR ME THIS YEAR

Wishing you a New Year filled with good health, new hope and new beginnings!

* May year 2009   open up for you more opportunities, lead you onto the path of continued success, happiness and prosperity!

 

FOR ME FOCUS IS THE MANTRA FOR THIS YEAR. I AM RECTIFYING MYSELF WITH THIS NEW GOAL.I AM FAR BETTER THAN SO MANY PEOPLE.ONLY ONE THING I NEED IS FOCUS.