M
Mythran
We have a web control. (Please note, all our libraries and controls are given a
strong name). When we place the web control on a web page, it works fine. We
are using a project reference to it in our sample application. Sometimes
immediately following a build/rebuild, it displays the design time error html.
We have tracked the problem down to the first line in GetErrorDesignTimeHtml() (I
believe that's the method's name, I just woke up). That line is Dim ourObj As
OurObject = DirectCast(component, OurObject).
The exception message given is along the lines of "invalid type cast". Now, how
is "Dim a As b = DirectCast(c, b)" when c is passed into the routine as follows?:
Public Sub GetSomething(ByVal c As b) Just doesn't make sense to me.
Note: I have found that when I do a build, the exe can't be overridden (it shows
up in the task list when I build but is removed just as fast). I have to build
over and over in order to make out which file can't be over-written. The
permissions are not an issue. I believe vstudio is over-writing a file that it
has locked between builds but can't be sure....
Any help is appreciated,
Thanks,
Mythran
strong name). When we place the web control on a web page, it works fine. We
are using a project reference to it in our sample application. Sometimes
immediately following a build/rebuild, it displays the design time error html.
We have tracked the problem down to the first line in GetErrorDesignTimeHtml() (I
believe that's the method's name, I just woke up). That line is Dim ourObj As
OurObject = DirectCast(component, OurObject).
The exception message given is along the lines of "invalid type cast". Now, how
is "Dim a As b = DirectCast(c, b)" when c is passed into the routine as follows?:
Public Sub GetSomething(ByVal c As b) Just doesn't make sense to me.
Note: I have found that when I do a build, the exe can't be overridden (it shows
up in the task list when I build but is removed just as fast). I have to build
over and over in order to make out which file can't be over-written. The
permissions are not an issue. I believe vstudio is over-writing a file that it
has locked between builds but can't be sure....
Any help is appreciated,
Thanks,
Mythran