add a reference to the WindowsBase Assembly.
الاثنين، 30 ديسمبر 2013
CRM 2011:Create a Picklist That Uses a Global Option Set
// Create a picklist attribute
PicklistAttributeMetadata pickListAttribute = new PicklistAttributeMetadata();
// Set base properties
pickListAttribute.SchemaName = "new_ExampleOptionSet";
pickListAttribute.DisplayName = new Label("Example OptionSet", 1033);
pickListAttribute.RequiredLevel = new AttributeRequiredLevelManagedProperty(AttributeRequiredLevel.None);
//pickListAttribute.OptionSet = optionset;
pickListAttribute.OptionSet = new OptionSetMetadata
{
IsGlobal = true,
Name = _globalOptionSetName,
};
CreateAttributeRequest createAttribute = new CreateAttributeRequest();
createAttribute.EntityName = EntityName;
createAttribute.Attribute = pickListAttribute;
// Execute the request.
_Service.Execute(createAttribute);
//************************************************
http://msdn.microsoft.com/en-us/library/gg334416.aspx
//************************************************
http://msdn.microsoft.com/en-us/library/gg334416.aspx
الاثنين، 16 ديسمبر 2013
CRM2011:Could not find default endpoint element that references contract 'OracleService' in the ServiceModel client configuration section.
This error occur when you try run custom step workflow which call WCF service in dll file.
To solve to problem do the following:
1-Open cmd
2-run:: cd C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64
3-run: svcutil.exe WCFServiceURL /out:"C:\ServiceOutFolder\ServiceName.cs" /config:""C:\ServiceOutFolder\ServiceName.config"
4- Copy the "ServiceName.cs" and "ServiceName.config" file to your Project code.
5- Write the following code to get Service Client:
BasicHttpBinding myBinding = new BasicHttpBinding();
myBinding.Name = "BindingName"; // from AppConfig File
myBinding.Security.Mode = BasicHttpSecurityMode.None;
myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
myBinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
EndpointAddress endPointAddress = new EndpointAddress("WCFServiceURL");
ServiceNameClient client = new ServiceNameClient(myBinding, endPointAddress); // for ex:OracleServiceClient
// Now use this client to call methods in Service
MyServiceName sv = client;
Your Service URL ex: http://localhost/OracleWS/OracleService.svc?wsdl
الاثنين، 25 نوفمبر 2013
How to access localhost with a port on a Virtual PC
1.Go to the Control Panel and launch Windows Firewall.
2.Go to Advanced Settings
3.Select Inbound Rules in the left pane
4.Select New Rule in the right pane
5.In the New Inbound Rule Wizard, select Port as Rule Type, then click on Next
6.Select TCP and put 900 (and any other ports you want to open) in Specific local ports, then click on Next
7.Select Allow the connection, then click on Next
8.Select the network location where the rule should apply (select them all if you're not sure), then click on Next
9.Give a name and an optional description
CRM2011:Could not load file or assembly 'microsoft.crm.sdk' or one of its dependencies.
When you publish your website you face this error to solve:
1- Open Microsoft CRM bin Folder
C:\Program Files\Microsoft Dynamics CRM\CRMWeb\bin
2- Copy the following dll and paste to your site bin folder
Microsoft.Crm.Sdk.dll
Microsoft.Crm.Sdk.Proxy.dll
السبت، 23 نوفمبر 2013
السبت، 16 نوفمبر 2013
Sharepoint:The password supplied with the username Domain\username was not correct. Verify that it was entered correctly and try again
This error occurs if there has been change of password of the account and same has not been updated in SharePoint.
To solve:
To solve:
1- Log in as Administrator
2- Open Command prompt
3- Write the following
cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
stsadm -o updatefarmcredentials -userlogin Domain\UserName -password newpassword
4- if get the following message "Operation completed successfully" Now reset IIS, then the problem solved and you will be able to create web application.
http://cloudytech.blogspot.com/2013/05/the-password-supplied-with-username.html
http://cloudytech.blogspot.com/2013/05/the-password-supplied-with-username.html
الاشتراك في:
الرسائل (Atom)

