c# - Reporting Services Custom Assembly -


i created custom assembly convert rtf plain text , works nice following configuration: ssrs 2008, win 2003 server, rssrvpolicy.config changes, excecution account, , iis 6.0.

we created new server running ssrs 2008r2, win 2008, , iis 7. not work on new environment , not error, instead ssrs service reboots itself. happens when reference system.windows.forms.richtextbox(). see code below.

can give me idea of may need or test working? i've checked log files , event viewer, not seeing errors. call assembly , works if output text report , not call richtextcontrol. fails when try reference system.windows.forms.richtextbox. installed gac no luck, shouldn't need to(?) , didn't old version.

i tried put try/catch block around code see if error. if throw error, message. if call richtextbox control, causes ssrs service reboot.

my code:

using system; using system.windows.forms; using system.diagnostics; namespace conversionutility {     public class conversionutility     {         [system.security.permissions.permissionset(system.security.permissions.securityaction.assert, unrestricted = true)]          public static string convertrtftotext(string richtext)         {             string stext = "";              try             {                 // if comment out these 3 lines, work                 richtextbox richtextbox = new system.windows.forms.richtextbox();                 richtextbox.rtf = richtext;                 stext = richtextbox.text;                 //throw new exception("log error");             }             catch (exception e)             {                 stext = "error caught: " + e.message;             }              return stext;         }     } } 

i have these permissions defined. add codegroup below , works if don't reference richtextbox. service reboots try reference system.forms.windows.richtextbox()

<codegroup class="unioncodegroup" version="1" name="securityextensioncodegroup" description="code group conversion utility" permissionsetname="fulltrust"> <imembershipcondition     class="urlmembershipcondition"     version="1"     url="c:\program files\microsoft sql server\msrs10_50.mssqlserver\reporting services\reportserver\bin        \conversionutility.dll" /> 

i'm thinking it's having issue permissions system.windows.forms, haven't been able figure out need do.

thanks in advance,

randy

i ended contacting microsoft because should have worked. when gave them sample application in worked in environment. turned out had hotfix installed reporting services did not. after installed hotfix, worked.

build 10.50.1720 - applied cu2 ssrs 2008 r2 rtm (http://support.microsoft.com/kb/2072493).


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -