Friday 14 December 2012

failure adding assembly to the cache

I have built a .net class library project, and signed assembly as well. I added assembly into gac and it went in fine.

When I copied assembly to a different machine and tried registering the dll I got following error

"Failure adding assembly to the cache: The module was expected to contain an assembly manifest"

The reason was the location I copied my dll from source was to grove and then tried coping directly from grove to remote machine, and this sometimes damage file data.

Resolution: Copy file and make sure file copied from source to destination is correctly copied. In my particular case I copied it from groove to local machine first and then copied from local machine to vm.

Wednesday 12 December 2012

ssrs to pdf and other docs from crm 2011

http://a33ik.blogspot.co.uk/2012/11/general-approaches-to-generation-of.html

Tuesday 11 December 2012

Could not load assembly

I have created a class library project, and build assembly using .net 4.0, i created a console app to test my dll and it was working fine, when i registered it into GAC and in CRM plugin where I reference this assembly. when plugin was triggering I got error saying could not load assembly,

when looking into GAC assembly was there

Tried using fuslogvw to find where the problem is but no luck
Tried using dotpeek but no luck

Spent so much time in investigating why its working fine from console app but not from CRM plugin though I can see from gacutil -l "assembly name" that assembly is there.

Resolution:
Project was built using x86, and CRM app pool runs under 64 bit, so by changing build type of class library to any cpu everything is fine now.

Thursday 6 December 2012

Report Server error message about insufficient permissions

When I try to browse report server http://<serverurl>/reportserver I got following error


The permissions granted to user 'domain\username' are insufficient for performing this operation. (rsAccessDenied)



Resolution:
Open the browser with for a different user who has access to reportserver e.g. administrator

1. Go to http://<serverurl>/reports

2. Click on "Folder Settings" option

3. Click on Security Tab

4. Click on New Role Assignment

5. Enter
   Group or User name: <domain\username>
   Select role you like this user to have (e.g. publisher,browser)





Wednesday 5 December 2012

CRM notification

http://blogs.msdn.com/b/johnsullivan/archive/2011/11/02/crm-2011-custom-form-notification.aspx

Monday 3 December 2012

Microsoft Dynamics CRM List component is not installed

List component is installed on SharePoint, however user is still getting following error.


Resolution: Make sure the current user has sufficient rights on SharePoint site, in my dev environment I gave user Site Collection Administrator, this is a dev environment and giving this role was safe, but on prod or system test relevant security privileges should be given to user.