ASP.NET 2.0 Windows Control Library in IE works once

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am creating an ASP.NET 2.0 application that I want to embed a Windows
Control into. Here are the steps:

1) I created a new Windows Control Library with a simple "hello world" app.
2) Compiled to DLL.
3) Put the DLL in the root directory of my asp.net application
4) Placed the following line in my code:

<object id='myObj' classid='ImgViewer.dll#ImgViewer.Viewer'></object>

I run the program, works great. I can click the button and the label reads
'hello world'

Here is the strange part. If I make any change (ie background color) to the
control and overwrite the dll and run the project, all I get is a small box,
no more control.

I can create a new control using the same technique, and it does exactly the
same thing... works once. I know it is finding the dll, as if I change the
<object...> line to a different dll name, the little box doesn't show.

Has anyone else seen this?

Jeff
 
What happens if you tell VS not to bump up the project version but retain
one version throughout?
 
Thanks for the reply Ken,

I gave that a try setting the build versions to 1.0.0.0, and the same thing
happened. Worked great once.

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top