473,503 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

Nov 20 '05 #1
0 1191

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2608
by: Oliver Degnan | last post by:
O.K. So I added a new resource file to my web application called "web.site.resx". Now, I thouhgt I should be able to access my resources like this: ResourceManager res = new...
4
1619
by: Francesco Martinelli | last post by:
I need to create a multiple file assemby: this requires working directly with the command line compiler (no IDE support!). After a few tests I found my problem comes from the issue described below....
2
6525
by: Dave L | last post by:
I have a Managed C++ DLL used by a C# application. I'm building with VS .NET 2002. I have a resx file loaded with string data. The C# application can access the string data fine, like so: ...
5
3818
by: Franck | last post by:
Hello, I've just moved to visual developper 2005 to do so, I also had to use the convert assistant. what it did; moving my file resx files that i had in a diresctory called resx to a new...
2
5512
by: Fredrik Rodin | last post by:
All, I'm having problems with my resource manager in ASP.NET 2.0 after conversion from ASP.NET 1.1. Here is a background: In ASP.NET 1.1 All my user controls and aspx pages inherit from...
5
1132
by: guy | last post by:
vb2005 i have a resource file (MyFile.resources) created using resgen. how do i inculde it within my assembly? i have tried adding it to my project but it does not get built into the exe, so i get...
0
1463
by: GT | last post by:
This question has been posted before, but without any response so therefore I'm trying once more. I'm trying to embed .resource files into a Windows application in VS2005, and then compile and...
0
897
by: mbowden | last post by:
I am trying to create a simple set of resource files for a dialog form that can display its button text in several langauges. I have: StandardButtonsText.resx StandardButtonsText.fr.resx...
1
1988
by: Bill Mell | last post by:
I would like to use compiled resource files in my web application that are not related to localization. The idea is to have a dll with resources that can be accessed by the website. I have no...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.