Michael
Tue Jan 16 09:39:15 CST 2007
HttpModules aren't supported at all, so it doesn't really matter what you
do. I'm also copying them in both locations, but yeah the GAC also works
fine.
--
Michael Höhne, Microsoft Dynamics CRM MVP
Web:
http://www.stunnware.com/crm2
Feed:
http://www.stunnware.com/crm2/atom.aspx
Custom Lookup Dialog:
http://www.stunnware.com/crm2/?area=customLookup
----------------------------------------------------------
"David Jennaway" <davidjennaway@hotmail.com> schrieb im Newsbeitrag
news:upx$ZHYOHHA.992@TK2MSFTNGP06.phx.gbl...
> Another solution to this is give your assembly a string name and put in
> the GAC; this saves putting it in multiple locations, and it can be argued
> that it's supported, whereas putting files in the bin directories
> definitely isn't
>
> "Marcus" <marcus dot arrigoni at gmail dot com> wrote in message
> news:43F61522-99D1-44D1-A4B8-C3F769F5A37B@microsoft.com...
>> ANSWER...for everybody...
>>
>> I've found the solution...After building myHttpModule class, I have to
>> copy
>> the dll file not only in the /wwwroot/bin folder, but also in
>> /wwwroot/mscrmservices/bin folder (and in myCRMServices/bin collection
>> folder)... I don't know exactly why...but I can imagine that... ...
>>
>> However it's seems to be ok...and working...
>> Bye, Marcus
>>
>> "Marcus" wrote:
>>
>>> Hi all,
>>> I'm trying to develop a class that extend IHttpModule for injecting in
>>> some
>>> pages some script tag for including js file.
>>>
>>> I've added in web.config of MSCRM (/wwwroot/web.config) this section:
>>> <configuration>
>>> <system.web>
>>> <httpModules>
>>> <add type="myHttpModules.myHttpModule,myHttpModule"
>>> name="myHttpModules" />
>>> </httpModules>
>>> ...
>>>
>>> The I've developed an empty class that extend IHttpModule, like so:
>>>
>>> namespace myHttpModules
>>> {
>>> public class myHttpModule :IHttpModule
>>> {
>>> public myHttpModule()
>>> {
>>> }
>>>
>>> public void Dispose()
>>> {
>>> }
>>>
>>> public void Init(System.Web.HttpApplication Appl)
>>> {
>>> }
>>> }
>>> }
>>>
>>> Then I've compiled the class and I've copied the dll file in
>>> wwwroot/bin.
>>> At the end I've restart the CRM application and when reopend it, the
>>> application returned me a CRM ERROR ("an error was occurred. For more
>>> information contact the system administrator").
>>> This happen when the application have to load /_root/HomePage.aspx or
>>> some
>>> other pages.
>>>
>>> What's wrong in what I've done? I've to enable some settings in IIS?
>>> Thanx, marcus
>>>
>
>