How can I do this.Without adding this attribute Im afraid I want be able to run my application in a shared hosting environment.
I have developed a web application referencing microsoft.mshtml.dll. On my machine - where the complete dotnet framework is installed things work pretty clean. But not so smooth on other clients It is understandable that if the client does not have the dotnet framework then the thing wont work. BUT even when I run my app on a machine where the dotnet redistributable is properly installed, I still get an error. I even tried the latest dotnet redist v1.1 ) I have made use of the Microsoft.mshtml package, and I guess the culprit is the ABSENCE of the the Microsoft.mshtml in the GAC of the Redist. Copying the Microsoft.mshtml from my GAC to the other machine solves the problem ) So what does the user do in this case He has already downloaded and installed 23MB of dotnet Redist - just to run my 30K application. Manually getting hold of a copy of the Microsoft.html dll and copying it into the GAC wont be advisable. Any solutions to this problem will be very much appreciated. TIA mqs. If Microsoft included every possible interop assembly with the framework redist then the 23 MB install you mention below would be a lot bigger Reid MS. Your suggestion is exactly what I have tried and it works - BUT the problem in this case is that the size of Microsoft.mshtml.dll is 8MB and putting it into my cab file increases my cab size by 1MB. You see my html page is less than 5KB and my dotnet object is about 30KB. Also incase the user already has a copy of Microsoft.mshtml.dll - like even in the case he simply reloads the page, then he would still unnecessarily be downloading this big package. Microsoft.Mshtml Assembly .Exe And ExecuteIsnt there any other faster and efficient way to achive this Could I do something like maybe package the Tlbimp.exe and execute it at the client side to create the Microsoft.mshtml from his local system32mshtml.tlb and then copy this Microsoft.mshtml.dll to some location where the CLR will find it BTW - how would I be able to locate such a location on the client machine TIA mqs. Ive sent email to a few others here at MS that might have some thoughts. Microsoft.Mshtml Assembly License Agreement ToI dont know for sure, but would imagine it is a violation of the license agreement to distribute an SDK tool independantly. At any rate, you would almost certainly either have to have a very high permission set assigned to your downloaded assembly or run native code somehow to actually be able to run tlbimp on a machine and to copy a file. The only place you would be able to put the assembly where your downloaded code can find it is in the GAC. Reid MS.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |