Tuesday, June 23, 2009

System.IO.FileNotFoundException: The Web application could not be found.

If you are getting the above error when performing some operation in you Web Service / Web Appliation with Sharepoint server. You can resolve this by adding the Sharepoint application pool in you custom Web Service / Web Appliation :

In the IIS, you need to open the property page of the Web Service / Web Appliation that you host. under "Home Directory" Tab, you can chose the appliction pool. make sure that your sharepoint web appliction and your webservice sharing the same application pool name.

To interact with a SharePoint Server from out side the SharePoint web server it self, you need to write a SharePoint web service. SharePoint web services are nothing bur regular web service, only difference is that they are configured into the SharePoiint site configurations. And from inside the Web service you can do whatever possible with the Object model.

To get the SPSite instance from inside the web service, you even dont need to specify domain names, ip etc. Just doing the following you can have an instance of SPSite

SPSite siteCollection = SPControl.GetContextSite(HttpContext.Current); OR
SPWeb subSite = SPControl.GetContextWeb(HttpContext.Current);

After creating and deploying a web service into the SharePoint you can talk to the web service from anywhere of the world and the web service will actually make use of object model to talk to SharePoint.

Could not verify the version of Microsoft Dynamics CRM - VPC 2009 Error

I download the MS CRM VPC 2009 and did the windows update. When I reboot the system the MS CRM Web Application was not getting loaded.

I confirm that all the MS SQL SERVER and MS CRM services are running. Finally I check the Event Log and found the below error:
Could not verify the version of Microsoft Dynamics CRM at http://crm/Contoso.
The remote name could not be resolved: 'crm'

To resolve this issue, simply add the entry in HOST file.
Browse "C:\WINDOWS\system32\drivers\etc\" and open the HOSTS file in notepad and add the below entry at the end of the file : crm

Save and close the file.
Refresh you browser.... Here your MS CRM app will get loaded....

Saturday, June 13, 2009

Microsoft Dynamics CRM SDK Version 4.0.9 Released

Download this new version of the SDK or view it on MSDN.

This release provides continuing support for the on-premise user and new information for online users.

The following are some highlights. For a complete list of changes, see the Release History on the first page.
Server-to-Server Authentication Sample. This sample shows how to authenticate and impersonate the logged-on user in a server-to-server scenario with Microsoft Dynamics CRM Online.
Metadata Browser - Over 100 pages from the metadata browser have been incorporated into the SDK so that Online users have access to this information.

Visual Studio Templates. Added three new Microsoft Visual Studio template projects for you to use to start your projects: CRM Web page, plug-in, and custom workflow activity. For more information, see List of Samples in the SDK Download.

Dependent Picklist Sample - This sample shows how to make the options available in a picklist field dependent on the selected option of another picklist. It supports chaining several picklist fields together. This sample also includes best practices for defining functions in the OnLoad event and reusing them in other form events.

Updated WSDLS for CRM Online. Added new properties available only on Online and a new Discovery service method that retrieves the logged-on user's ID in Microsoft Dynamics CRM Online.
Delete Async Records Sample - This sample shows how to remove completed records from the async table.

KB Article Topics - added topics that describe knowledge base article states, how to create, publish and remove the articles, and how to search for published knowledge base articles in Microsoft Dynamics CRM.

Updated Visual Studio projects to work for both VS 2005 and VS2008.
Updated support information for plug-in and workflow assembly backwards compatibility.
More sample code updates and miscellaneous bug fixes.

Cheers !!!!!