anester

I am trying import a C# form as a ActiveX control on my webpage. I have followed the following tutorial verbatim here. What happens is it works great at first but then I change the dll, recompile and transfer the dll over to website and then the activex control will not load. Even if I copy the old dll back, it still does not load. Are there some settings on the compiler that I have to set.

Any help would be appreciated.


Re: Visual C# General import C# Form as ActiveX in Internet Explorer

RizwanSharp

Loads first time and doesnot after some change and recompilation, Hmmmm! It may be version issue. Open AssemblyInfo.cs and try to fix the AssemblyVersion attribute by removing * to 0 or some other numner like

[assembly: AssemblyVersion("1.0.0.0")]

Make sure in Subsequent builds your assembly version remains the same.

Do it very first time when you create your control.

I hope this will work.

Note: A class library by defaults use [assembly: AssemblyVersion("1.0.*)] or something like that which means that this will auto increment version whenever a new build is created with some change in code. This may be cause of the problem.

Best Regards,

Rizwan aka RizwanSharp






Re: Visual C# General import C# Form as ActiveX in Internet Explorer

anester

Still does not work. I'm thinking about just importing the c# library into a normal activex control using the interop stuff which work, but I would rather just use the c# since it easy much easier.




Re: Visual C# General import C# Form as ActiveX in Internet Explorer

anester

Something else I have noticed is that if I change the name of the dll, then it loads but if I change it back to the original it does not load. If I change the code and change the name to the same name used earlier it does not load, but if I change name to something never used it does load. I have tried restarting my computer and just restarting the browser to no avail. Anyone know what is going on.