RSSComputers / Programming / Mobiles (73)

11-08-2016 Write arabic script shortcut, presentation in MsOffice and HTML
21-06-2014 Meet the Pakistani who is reinventing the Internet. Well kind of...
19-02-2014 Collection of e-Books and Articles on Microsoft Technologies
26-03-2013 Restore SharePoint backup from earlier to later version - Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored to a server running the current version
21-12-2012 Air bags for electronics devices
08-11-2012 Recursive Query Parent Child Concatenation
25-04-2012 Change or remove filter / filter content from Sharepoint list / library view columns
23-02-2012 Pakistani IT experts win international cyber drill
26-12-2011 Installing XP on computer with SATA hard drive
20-04-2011 Sigin as different user in asp.net using Windows authentication
26-01-2011 Powershell CmdLets
30-05-2010 Update Statistics - Query to find tables and index number of statistics being old
15-04-2010 Detail Error Message for ASP.NET at Web Hosting / Production server
15-03-2010 Passing encrypted data between JavaScript and C#
12-02-2010 Sharepoint - SPWeb.Groups Vs SPWeb.SiteGroups
28-01-2010 Accessing JD Edwards Data on iSeries or AS/400 from a ASP.NET / SQL Encoding / Error problem
28-01-2010 Controls not functional after Export to Excel or Export to PDF of Telerik in Sharepoint Application page
05-10-2009 ASP.NET Cannot open log for source {0}. You may not have write access. - Access is denied
03-09-2009 Turn off Reading pane / Auto Preview for all folders in Outlook
28-08-2009 CRM - The SELECT permission was denied on the object 'BuildVersion', database 'MicrosoftCRM_MSCRM', schema 'dbo'
25-08-2009 CRM - No authority could be contacted for authentication (Report Server)
22-08-2009 CRM - Retrieve Cultures information from CRM into your Custom Web Application
21-08-2009 CRM - Globalization / Localization in Custom Web Application
19-08-2009 CRM - Do you want to save this file? Blank.aspx?
18-08-2009 CRM Exception - Microsoft.Crm.Application.Platform.Report. InternalCreate(String xml)
18-08-2009 CRM Exception - Microsoft.Crm.Reporting.SRSReport.convertDataSource()
03-08-2009 Locale ID (LCID) Chart
24-06-2009 Oracle SQL Developer - Unable to create an instance of the Java Virtual Machine
17-06-2009 Busy at work
17-06-2009 Boss Menu
10-04-2009 Facebook Privacy Setting - Applications
18-03-2009 For a Software House
27-01-2009 Clock ticking on worm attack code
27-01-2009 Detecting Idle time or Inactivity in Windows Forms
27-01-2009 Values of Windows API
23-01-2009 PasswordChar and Set focus on page load for ToolStripTextBox
21-01-2009 Capture Form Close Event
21-01-2009 Richtextbox or multiline textbox and AcceptButton to handle Enter or Tab key press
21-01-2009 Key Combination shortcuts in C# Windows Form
01-01-2009 Application Architecture Guide 2 patterns and practices
01-01-2009 Convert string to hexadecimal and hexadecimal to string
31-12-2008 Implementing Transaction in Stored Procedure
31-12-2008 Implementing Transaction in .NET
25-12-2008 Linux environment in Windows
11-12-2008 Facebook Privacy Setting
27-11-2008 Pakistani group hacks Indian websites - Cyber Attack
26-10-2008 Designations...funny!
16-10-2008 Securing Your ASP.NET Web Applications
15-10-2008 Software blocks car phone users
07-10-2008 Too much in technology!
14-09-2008 Logo Evolution
13-09-2008 Difference between .NET 2.0/3.0/3.5
03-09-2008 Google launches internet browser
27-08-2008 Excel Shortcuts
16-07-2008 Quantum information technology - Enigma variations
04-07-2008 Dead Lock - Boss and Secratory
04-07-2008 Web Service Security using SOAP Extension
24-06-2008 General Web Security Consideration
24-06-2008 ASP.NET Forms Authentication
20-06-2008 Find rowcount, columncount, table size in Sql Server Database
20-06-2008 Developers
19-06-2008 Windows Shortcuts
18-06-2008 Number of Microsoft Certified Professionals Worldwide
16-06-2008 Types of developers
22-05-2008 documentary on Google
12-05-2008 Moonlight (Silverlight for Linux)
24-04-2008 Take Advantage of ASP.NET Built-in Features to Fend Off Web Attacks
01-04-2008 Health, Calculator , Units Conversion All in One. Very useful to all
28-02-2008 General Motors vs. Bill Gates
16-02-2008 Stealth Deployment
14-02-2008 Resignation letter of a Software Employee
12-02-2008 Development
05-05-2007 Knowledge
Sat 22 Aug 2009


Following code will help to Retrieve Cultures information from CRM into your Custom Web Application

                     // Retrieve the Locale IDs from the server.
                    RetrieveProvisionedLanguagesRequest reqLang = new RetrieveProvisionedLanguagesRequest();
                    RetrieveProvisionedLanguagesResponse resLang = (RetrieveProvisionedLanguagesResponse)crmService.Execute(reqLang);

                    // Create a CultureInfo array that represents the available languages.
                    System.Globalization.CultureInfo[] cultures =
                        new System.Globalization.CultureInfo[resLang.RetrieveProvisionedLanguages.Length];

                    for (int i = 0; i < resLang.RetrieveProvisionedLanguages.Length; i++)
                    {
                        cultures[i] = System.Globalization.CultureInfo.GetCultureInfo(resLang.RetrieveProvisionedLanguages[i]);
                    }


If you are looking for Globalization / Localization in Custom Web Application, have a look at

http://faisalmb.com/blog/post/2009/08/21/CRM-Globalization-Localization-in-Custom-Web-Application.aspx

 

 

 

Tags: ,
E-mail this post to someone or Comments here
Fri 21 Aug 2009

If you required to set localization / culture in your custom web application that is running in IFRAME section of your CRM Application, according to User preferred language selected by user in Language option, go with the following

 Override the InitializeCulture() method in your custom web application as


        protected override void InitializeCulture()
        {
                base.InitializeCulture();

                WhoAmIRequest whoAmIRequest = new WhoAmIRequest();
                WhoAmIResponse whoAmIResponse = (WhoAmIResponse)crmService.Execute(whoAmIRequest);

                // Get the usersettings entity
                RetrieveUserSettingsSystemUserRequest reqUserSettings = new RetrieveUserSettingsSystemUserRequest();
                reqUserSettings.EntityId = whoAmIResponse.UserId;
                ColumnSet columns = new ColumnSet();
                columns.Attributes = new String[] { "uilanguageid" };
                reqUserSettings.ColumnSet = columns;
                reqUserSettings.ReturnDynamicEntities = true;
                CrmNumberProperty langProp = null;
                int langCode = 0;
                try
                {
                    //Get current logged in user setting
                    RetrieveUserSettingsSystemUserResponse resUserSttings = (RetrieveUserSettingsSystemUserResponse)crmService.Execute(reqUserSettings);
                    DynamicEntity objUserSettings = (DynamicEntity)resUserSttings.BusinessEntity;
                    foreach (Property prop in objUserSettings.Properties)
                    {
                        langProp = (CrmNumberProperty)prop;
                        if (langProp.Name.Equals("uilanguageid"))
                        {
                            //langCode = (CrmNumberProperty)objUserSettings.Properties["uilanguageid"];
                            langCode = langProp.Value.Value;
                            break;
                        }
                    }

                    //Set culture
                    Thread.CurrentThread.CurrentCulture = new CultureInfo(langCode);
                    Thread.CurrentThread.CurrentUICulture = new CultureInfo(langCode);

               }

                catch (System.Web.Services.Protocols.SoapException se)
                {
                    // Log it
                }
        }

If you are looking for Retrieve Cultures information from CRM into your Custom Web Application, have a look at

http://faisalmb.com/blog/post/2009/08/21/CRM-Retrieve-Cultures-information-from-CRM-into-your-Custom-Web-Application.aspx

 

Tags: ,
E-mail this post to someone or Comments here
Wed 19 Aug 2009

If you are getting a popup while navigating through Microsoft Dynamics CRM Application asking you to save Blank.aspx file, following workaround will help you

 

 

Please edit the default blank.aspx file in CRM (Sever where CRM is installed) so it contains data. This file is located at My Computer | System Drive | Program Files | Microsoft Dynamics CRM | CRMWeb |_ root. Here you will find the Blank.aspx text file.

 

Open the file and add some text to the file, for example you can add "Test" to the file (then there would be following three lines)

 

Test

<% Response.Expires = 1440; %>

<% Response.Cache.SetCacheability(HttpCacheability.Public); %>

 

 

 

Once you have added data, save the file, clear your temporary Internet Files, and do an IISreset. Once this is done go back into CRM to verify that this has resolved this issue.

 

 

 

 

E-mail this post to someone or Comments (7)
Tue 18 Aug 2009

If you get following exception while uploading / creating new report using Source Report Type -> Exising file

==============
[CrmException: Exception of type Microsoft.Crm.CrmException was thrown.]
  Microsoft.Crm.Application.Platform.Report.InternalCreate(String xml) +721
  Microsoft.Crm.Application.Platform.Entity.Create() +109
  Microsoft.Crm.Application.Forms.AppForm.RaiseDataEvent(FormEventId eventId) +408
  Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity) +57
  Microsoft.Crm.Application.Forms.EndUserForm.Execute(Entity entity) +13
  Microsoft.Crm.Web.Tools.ReportProperty.ReportPropertyPage.ConfigureForm() +202
  Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e) +30
==============

The issue lay with our RS permissions.
In addition to failing to upload reports, we tried downloading them from CRM too. This gave us an NT permissions error.
So, we opened up (localhost)/reports, navigated to the CRM datasource (typcially 'Organization_MSCRM), then properties, then security,
and then added a user / group called NT AUTHORITY\NETWORK SERVICE,
and gave them the permissions of CRM Publisher.
After that it all worked fine.

Thanks to Lee/Ronald

 

E-mail this post to someone or Comments here
Tue 18 Aug 2009

If you get following exception while uploading / creating new report using Source Report Type -> Exising file

=============
Stack Trace Info: [NullReferenceException: Object reference not set to an instance of an object.]
   at Microsoft.Crm.Reporting.SRSReport.convertDataSource()
   at Microsoft.Crm.Reporting.SRSReport..ctor(String xmlContent, String originalFilter, Boolean convertReportToCrm, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.ReportService.CreateInternal(IBusinessEntity entity, Boolean isScheduledReport, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.ReportService.Create(IBusinessEntity entity, ExecutionContext context)
=============

The reason can be the Shared Datasource used while creating Report in Visual Studio 2005.

1. Create a new Report Project in Visual Studio 2005

2. Right click on Reports, choose to add Existing Item

3. Double Click on the report to open it.

4. Click on the Data (top tab) above the open report file.

5. Click the "..." button just to the right of Dataset to open Dataset Properties.

6. Click on the "..." button to the right of the Data Source drop down list.

7. Clear the "Use shared data source reference" option.

8. Click on the "Edit..." button to the right of Connection string.

9. Enter the correct SRS Server Name, enter the authentication method, and choose the correct database name.

10. Click OK, this will change the source for the entire report.

11. Click OK to the Visual Studio window again.

12. Choose, File, Save <Report>.

13. Try to upload it again. This time it should load.

 Thanks to mennotk

 

E-mail this post to someone or Comments here
Mon 3 Aug 2009
Locale ID (LCID) Chart

Updated: August 2009

The following table lists Locale IDs (LCID).

Locale description

Short string

Hexadecimal value

Decimal value

Afrikaans

af

0x0436

1078

Albanian

sq

0x041C

1052

Arabic - United Arab Emirates

ar-ae

0x3801

14337

Arabic - Bahrain

ar-bh

0x3C01

15361

Arabic - Algeria

ar-dz

0x1401

5121

Arabic - Egypt

ar-eg

0x0C01

3073

Arabic - Iraq

ar-iq

0x0801

2049

Arabic - Jordan

ar-jo

0x2C01

11265

Arabic - Kuwait

ar-kw

0x3401

13313

Arabic - Lebanon

ar-lb

0x3001

12289

Arabic - Libya

ar-ly

0x1001

4097

Arabic - Morocco

ar-ma

0x1801

6145

Arabic - Oman

ar-om

0x2001

8193

Arabic - Qatar

ar-qa

0x4001

16385

Arabic - Saudi Arabia

ar-sa

0x0401

1025

Arabic - Syria

ar-sy

0x2801

10241

Arabic - Tunisia

ar-tn

0x1C01

7169

Arabic - Yemen

ar-ye

0x2401

9217

Armenian

hy

0x042B

1067

Azeri - Latin

az-az

0x042C

1068

Azeri - Cyrillic

az-az

0x082C

2092

Basque

eu

0x042D

1069

Belarusian

be

0x0423

1059

Bulgarian

bg

0x0402

1026

Catalan

ca

0x0403

1027

Chinese - China

zh-cn

0x0804

2052

Chinese - Hong Kong SAR

zh-hk

0x0C04

3076

Chinese - Macau SAR

zh-mo

0x1404

5124

Chinese - Singapore

zh-sg

0x1004

4100

Chinese - Taiwan

zh-tw

0x0404

1028

Croatian

hr

0x041A

1050

Czech

cs

0x0405

1029

Danish

da

0x0406

1030

Dutch - Netherlands

nl-nl

0x0413

1043

Dutch - Belgium

nl-be

0x0813

2067

English - Australia

en-au

0x0C09

3081

English - Belize

en-bz

0x2809

10249

English - Canada

en-ca

0x1009

4105

English - Caribbean

en-cb

0x2409

9225

English - Ireland

en-ie

0x1809

6153

English - Jamaica

en-jm

0x2009

8201

English - New Zealand

en-nz

0x1409

5129

English - Phillippines

en-ph

0x3409

13321

English - Southern Africa

en-za

0x1C09

7177

English - Trinidad

en-tt

0x2C09

11273

English - Great Britain

en-gb

0x0809

2057

English - United States

en-us

0x0409

1033

Estonian

et

0x0425

1061

Farsi

fa

0x0429

1065

Finnish

fi

0x040B

1035

Faroese

fo

0x0438

1080

French - France

fr-fr

0x040C

1036

French - Belgium

fr-be

0x080C

2060

French - Canada

fr-ca

0x0C0C

3084

French - Luxembourg

fr-lu

0x140C

5132

French - Switzerland

fr-ch

0x100C

4108

Gaelic - Ireland

gd-ie

0x083C

2108

Gaelic - Scotland

gd

0x043C

1084

German - Germany

de-de

0x0407

1031

German - Austria

de-at

0x0C07

3079

German - Liechtenstein

de-li

0x1407

5127

German - Luxembourg

de-lu

0x1007

4103

German - Switzerland

de-ch

0x0807

2055

Greek

el

0x0408

1032

Hebrew

he

0x040D

1037

Hindi

hi

0x0439

1081

Hungarian

hu

0x040E

1038

Icelandic

is

0x040F

1039

Indonesian

id

0x0421

1057

Italian - Italy

it-it

0x0410

1040

Italian - Switzerland

it-ch

0x0810

2064

Japanese

ja

0x0411

1041

Korean

ko

0x0412

1042

Latvian

lv

0x0426

1062

Lithuanian

lt

0x0427

1063

F.Y.R.O. Macedonia

mk

0x042F

1071

Malay - Malaysia

ms-my

0x043E

1086

Malay – Brunei

ms-bn

0x083E

2110

Maltese

mt

0x043A

1082

Marathi

mr

0x044E

1102

Norwegian - Bokml

no-no

0x0414

1044

Norwegian - Nynorsk

no-no

0x0814

2068

Polish

pl

0x0415

1045

Portuguese - Portugal

pt-pt

0x0816

2070

Portuguese - Brazil

pt-br

0x0416

1046

Raeto-Romance

rm

0x0417

1047

Romanian - Romania

ro

0x0418

1048

Romanian - Republic of Moldova

ro-mo

0x0818

2072

Russian

ru

0x0419

1049

Russian - Republic of Moldova

ru-mo

0x0819

2073

Sanskrit

sa

0x044F

1103

Serbian - Cyrillic

sr-sp

0x0C1A

3098

Serbian - Latin

sr-sp

0x081A

2074

Setsuana

tn

0x0432

1074

Slovenian

sl

0x0424

1060

Slovak

sk

0x041B

1051

Sorbian

sb

0x042E

1070

Spanish - Spain (Traditional)

es-es

0x040A

1034

Spanish - Argentina

es-ar

0x2C0A

11274

Spanish - Bolivia

es-bo

0x400A

16394

Spanish - Chile

es-cl

0x340A

13322

Spanish - Colombia

es-co

0x240A

9226

Spanish - Costa Rica

es-cr

0x140A

5130

Spanish - Dominican Republic

es-do

0x1C0A

7178

Spanish - Ecuador

es-ec

0x300A

12298

Spanish - Guatemala

es-gt

0x100A

4106

Spanish - Honduras

es-hn

0x480A

18442

Spanish - Mexico

es-mx

0x080A

2058

Spanish - Nicaragua

es-ni

0x4C0A

19466

Spanish - Panama

es-pa

0x180A

6154

Spanish - Peru

es-pe

0x280A

10250

Spanish - Puerto Rico

es-pr

0x500A

20490

Spanish - Paraguay

es-py

0x3C0A

15370

Spanish - El Salvador

es-sv

0x440A

17418

Spanish - Uruguay

es-uy

0x380A

14346

Spanish - Venezuela

es-ve

0x200A

8202

Southern Sotho

st

0x0430

1072

Swahili

sw

0x0441

1089

Swedish - Sweden

sv-se

0x041D

1053

Swedish - Finland

sv-fi

0x081D

2077

Tamil

ta

0x0449

1097

Tatar

tt

0X0444

1092

Thai

th

0x041E

1054

Turkish

tr

0x041F

1055

Tsonga

ts

0x0431

1073

Ukrainian

uk

0x0422

1058

Urdu

ur

0x0420

1056

Uzbek - Cyrillic

uz-uz

0x0843

2115

Uzbek – Latin

uz-uz

0x0443

1091

Vietnamese

vi

0x042A

1066

Xhosa

xh

0x0434

1076

Yiddish

yi

0x043D

1085

Zulu

zu

0x0435

1077

E-mail this post to someone or Comments here
Wed 24 Jun 2009

After extracting sqldeveloper-1.5.4.59.40.zip and executing sqldeveloper.exe, I received following error

---------------------------
Oracle SQL Developer
---------------------------
Unable to create an instance of the Java Virtual Machine
Located at path:
<SQLDEVELOPER>\jdk\jre\bin\client\jvm.dll
---------------------------
OK  
---------------------------

Resolution for this error which works for me, as follow :-


Open ide.conf file from

<SQLDEVELOPER>/jdev/bin/ide.conf
or
<SQLDEVELOPER>\ide\bin\ide.conf


In this file, change this line :
AddVMOption -Xmx512M

by

AddVMOption -Xmx256M

Now, the executable is lauching correctly. No more errors with Java Virtual Machine.

 

Also check the diskspace where sqldeveloper is extracted and available RAM.
You may need to revert back in future if there is no more issue with original file's setting.

 

Tags: ,
E-mail this post to someone or Comments (27)