My website uses an "applet" which I coded in C# for uploading and downloading some data from client computers to my company's website. Recently, my server had a huge meltdown and I had to reinstall Windows Server 2003 from scratch. Since then, my applet has
no longer been displaying on the client web browsers. Instead of my applet, I just get a white rectangle that looks like it is perhaps a textbox with a disabled scroller down the right side.
as the first line of my constructor and it does not show, and I have given the assembly myDLL.dll fulltrust in the mmc so I don't think that there is a SecurityException being thrown.
When I put the URL of the assembly into the address bar of my browser, I get a message saying that the page I am requesting can't be found, but if I change the filename of the assembly to something like "x.zip" I am prompted to download the file. So it doesn't
look like the file's permissions are the problem. But it strikes me as odd that the .dll doesn't try to download when it is the url. It neither downloads in IE nor in Firefox. Could this be the bug? After I reinstalled Server 2003, could the IIS settings be
different in a way that keeps the assembly from downloading and displaying in the browser? When I delete myDll.dll from the folder entirely, then I get the same textbox-look alike displaying as when it is there.
I am a veteran programmer but I am an absolute novice server administrator, so I have no clue what is going on. But it seems like IIS is in some sort of protected mode and I don't really know the arcane steps necessary to make it serve my files. :)
Does anyone have any familiarity with this issue? Is it that the assembly is not being served up? Or is it something else?
p1000
Member
91 Points
106 Posts
Problem serving Embedded C# Forms / Serving .dll Files
Jul 10, 2008 05:52 PM|LINK
Hi,
My website uses an "applet" which I coded in C# for uploading and downloading some data from client computers to my company's website. Recently, my server had a huge meltdown and I had to reinstall Windows Server 2003 from scratch. Since then, my applet has no longer been displaying on the client web browsers. Instead of my applet, I just get a white rectangle that looks like it is perhaps a textbox with a disabled scroller down the right side.
Here is the HTML which embedds the applet.
<object style="z-index: 1; position: absolute; left: 0px; top: 0px;" id="EmbeddedControl"
classid="http://mywebsite.com/Path/myDLL.dll#Namespace.ClassName" height="420" width="600">
<param Name="parameter" Value="5">
</object>
I put the line
MessageBox.Show("Hello");
as the first line of my constructor and it does not show, and I have given the assembly myDLL.dll fulltrust in the mmc so I don't think that there is a SecurityException being thrown.
When I put the URL of the assembly into the address bar of my browser, I get a message saying that the page I am requesting can't be found, but if I change the filename of the assembly to something like "x.zip" I am prompted to download the file. So it doesn't look like the file's permissions are the problem. But it strikes me as odd that the .dll doesn't try to download when it is the url. It neither downloads in IE nor in Firefox. Could this be the bug? After I reinstalled Server 2003, could the IIS settings be different in a way that keeps the assembly from downloading and displaying in the browser? When I delete myDll.dll from the folder entirely, then I get the same textbox-look alike displaying as when it is there.
I am a veteran programmer but I am an absolute novice server administrator, so I have no clue what is going on. But it seems like IIS is in some sort of protected mode and I don't really know the arcane steps necessary to make it serve my files. :)
Does anyone have any familiarity with this issue? Is it that the assembly is not being served up? Or is it something else?
Thanks!
P1000