Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Strange behavior with images, .resource files - System.Resources.MissingManifestResourceException

Reply
Thread Tools

Strange behavior with images, .resource files - System.Resources.MissingManifestResourceException

 
 
Gene
Guest
Posts: n/a
 
      11-16-2005
I have a Windows Form control that I have embedded in an ASP.NET page.
I now have the need to catch an event from the control on the webpage.

After researching the situation I found that this is the way to expose
events. I added the following code to my class.

Imports System.IO
Imports Assetta.ColumnStyles
Imports ICSharpCode.SharpZipLib.Zip.Compression
Imports ICSharpCode.SharpZipLib.Zip.Compression.Streams
Imports System.Runtime.InteropServices
Public Delegate Sub EventHandler(ByVal intVersionId As Integer)

'--BEGIN--
<GuidAttribute("B2157CA4-9127-4EE0-A4C1-DDD424CEE484"), _
InterfaceTypeAttribute(ComInterfaceType.InterfaceI sIDispatch)> _
Public Interface ControlEvents
' Add DisIdAttribute to any members in the source interface to
specify the COM DISPID.
<DispIdAttribute(1)> _
Sub SaveComplete(ByVal intId As Integer)
End Interface

<ComSourceInterfaces(GetType(ControlEvents)), _
ClassInterface(ClassInterfaceType.None)> _
Public Class SaveClass
'--END--

This code works in a sample project that I got from the Microsoft site.
When I incorporate it to my project the following line causes an error.
This is in InitializeComponent()

Me.imgPageDown.Image = CType(resources.GetObject("imgPageDown.Image"),
System.Drawing.Image)

The exception is:
System.Resources.MissingManifestResourceException

After researching this error I think something is wrong with the
..resource files. If I remove the lines my component works.

Is there an easier way to catch an event on the web or does anyone have
a solution that will let me run my code?

Thanks!

Gene

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thunderbird strange behavior... Jim Firefox 5 11-17-2005 03:09 PM
Strange behavior when working with large files bjamin@gmail.com Perl Misc 4 07-02-2005 06:19 PM
Firefox 1.04 and Strange Find Behavior Thomas Firefox 5 06-28-2005 08:40 PM
strange behavior when using 'read' sstark Perl 0 03-06-2005 02:27 AM
undefined behavior or not undefined behavior? That is the question Mantorok Redgormor C Programming 70 02-17-2004 02:46 PM



Advertisments