473,605 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS.NET 2008: controls that involve images render as red X in design time, how to fix?

I've been living with a frustrating issue with VS.NET for some months now
and I need to figure out what the problem is. Hopefully someone has run into
the same issue and can suggest a fix. I suspect some permissions problem.

I'm running VS.NET 2008 in Vista. Symptoms and observations:

* ASP.NET's native ImageMap and Image controls work just fine and provide a
design-time preview of images that are referenced via the ImageUrl property
* Telerik's controls work just fine. This includes their older stuff as well
as the more recent ASP.NET AJAX releases that bind all of the controls and
their assets into one assembly.
* Other VS.NET/ASP.NET controls that involve design-time display of images
do NOT work fine in terms of providing the design-time image preview when
referenced with anything besides an explicit path (e.g. ~/image.jpg as
ImageUrl does not work.) . I get a red X instead. If I view the page on
localhost or in deployment, the control works just fine. What's broken is
the design-time preview of the image. This is problematic for controls that
involve interaction with the image, e.g. this imagemap control with
graphical designer: http://www.ewoodruff.us/EWSImageMaps.aspx
* Reinforcing something from the last point, writing in an explicit path
will force design-time image preview to work, e.g.: putting
C:\Users\Me\Doc uments\Visual Studio
2008\Projects\K ILLTHIS\KILLTHI S\image.jpg as the ImageUrl will cause the
control to work properly.
* As a test I created a new Web project. The controls exhibited the same
design-time error. The problem isn't limited to one website.
* I tried enabling Full Control permissions for Users, Everyone, and Network
Service on both the Projects folders and the Website folders. This did not
resolve the problem.

Any suggestions for where else I should be looking on this? Thanks much for
your help.

-KF
Aug 6 '08 #1
4 2450
Hi KF,

From your description, you're encountering some problem with display the
image(refernece d in ASP.NET control) at design-time. As for the built-in
ASP.NET Image/ImageMap controls, they just simply render the plain html in
the design-time designer. For those controls that you find not work correct
at design-time, are they custom webserver controls you created or some
other built-in controls or 3rd party controls? If they're not built-in
controls or not what you created, you can use reflector to inspect their
rendering code or its designer class(if that control has applied one) to
see what's its design-time displaying logic. BTW, would you please give me
some example page markup for met to test locally?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Ken Fine" <ke*****@newsgr oup.nospam>
Subject: VS.NET 2008: controls that involve images render as red X in
design time, how to fix?
>Date: Wed, 6 Aug 2008 10:41:33 -0700
>
I've been living with a frustrating issue with VS.NET for some months now
and I need to figure out what the problem is. Hopefully someone has run
into
>the same issue and can suggest a fix. I suspect some permissions problem.

I'm running VS.NET 2008 in Vista. Symptoms and observations:

* ASP.NET's native ImageMap and Image controls work just fine and provide
a
>design-time preview of images that are referenced via the ImageUrl property
* Telerik's controls work just fine. This includes their older stuff as
well
>as the more recent ASP.NET AJAX releases that bind all of the controls and
their assets into one assembly.
* Other VS.NET/ASP.NET controls that involve design-time display of images
do NOT work fine in terms of providing the design-time image preview when
referenced with anything besides an explicit path (e.g. ~/image.jpg as
ImageUrl does not work.) . I get a red X instead. If I view the page on
localhost or in deployment, the control works just fine. What's broken is
the design-time preview of the image. This is problematic for controls
that
>involve interaction with the image, e.g. this imagemap control with
graphical designer: http://www.ewoodruff.us/EWSImageMaps.aspx
* Reinforcing something from the last point, writing in an explicit path
will force design-time image preview to work, e.g.: putting
C:\Users\Me\Do cuments\Visual Studio
2008\Projects\ KILLTHIS\KILLTH IS\image.jpg as the ImageUrl will cause the
control to work properly.
* As a test I created a new Web project. The controls exhibited the same
design-time error. The problem isn't limited to one website.
* I tried enabling Full Control permissions for Users, Everyone, and
Network
>Service on both the Projects folders and the Website folders. This did not
resolve the problem.

Any suggestions for where else I should be looking on this? Thanks much
for
>your help.

-KF
Aug 7 '08 #2
Thanks Steven. This issue is serious enough for my work that if you think I
should initiate a MSDN support incident I will do that. I have a piece of
information that may help us reach resolution: the application may be
confused about where its root is, but I do not know how to fix that. Please
read on.

These are all third party controls. They include:
http://www.ewoodruff.us/EWSImageMaps.aspx
http://www.amarantin.se/
http://www.neodynamic.com/Products/I...id=24&prodid=4

I did not have these problems in VS.NET 2005.

My background isn't in computer science so while I understand what you mean
by using reflection to inspect the controls' output, I have no idea how to
do that. I am using C#.

Now for the nugget of information that may help us.

I made a document called test.aspx and placed it in a subfolder of my app
called /test. The following three declarations of the controls did not show
up in design time, but they did render when previewed:
<EWSI:ImageMa p ID="ImageMap1" runat="server"
ImageUrl="/whatever.jpg" />
<neoimg:ImageDr aw ID="ImageDraw1 " runat="server"
CacheExpiresAtD ateTime="">
<Elements>
<neoimg:Polygon ShapeElement Font-Name="50's Yesterdings JL"
Font-Size="8"
Height="65" Name="766BBA45A 5A146D9B6D0018D BAD6DB32"
Sides="6"
StrokeFill-BackgroundColor ="Black"
TextPadding-Bottom="0" TextPadding-Left="0"
TextPadding-Right="0" TextPadding-Top="0" Width="67">
</neoimg:PolygonS hapeElement>
</Elements>
<Canvas Fill-BackgroundColor ="255, 255, 255"
Fill-ForegroundColor ="0, 0, 0"
Fill-GradientColor1= "255, 255, 255" Fill-GradientColor2= "0,
0, 0" Height="65"
Width="67" />
</neoimg:ImageDra w>
<WebPack2:Image Text ID="ImageText1 " Runat="server" Text="ImageText ">
</WebPack2:ImageT ext>

Consider the first item, an enhanced ImageMap control. It exhibited the
following behaviors:
* When the ImageUrl was described as /whatever.jpg, it did NOT show in
design time but did show when viewed in the browser
* When the ImageUrl was described as ~/whatever.jpg, it did NOT show in
design time OR when viewed in the browser
* When the ImageUrl was described as ../whatever.jpg, it DID show in design
time and DID render in the browser

The application is located in
C:\Users\My Name\Documents\ Visual Studio 2008\WebSites\M yWebSite

I think this may be the clue we need. It seems the controls don't understand
where the root of the application is. Can you suggest what I should be
looking at?

Thanks for all your help, Steven.



"Steven Cheng [MSFT]" <st*****@online .microsoft.comw rote in message
news:T8******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi KF,

From your description, you're encountering some problem with display the
image(refernece d in ASP.NET control) at design-time. As for the built-in
ASP.NET Image/ImageMap controls, they just simply render the plain html in
the design-time designer. For those controls that you find not work
correct
at design-time, are they custom webserver controls you created or some
other built-in controls or 3rd party controls? If they're not built-in
controls or not what you created, you can use reflector to inspect their
rendering code or its designer class(if that control has applied one) to
see what's its design-time displaying logic. BTW, would you please give me
some example page markup for met to test locally?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>>From: "Ken Fine" <ke*****@newsgr oup.nospam>
Subject: VS.NET 2008: controls that involve images render as red X in
design time, how to fix?
>>Date: Wed, 6 Aug 2008 10:41:33 -0700
>>
I've been living with a frustrating issue with VS.NET for some months now
and I need to figure out what the problem is. Hopefully someone has run
into
>>the same issue and can suggest a fix. I suspect some permissions problem.

I'm running VS.NET 2008 in Vista. Symptoms and observations:

* ASP.NET's native ImageMap and Image controls work just fine and provide
a
>>design-time preview of images that are referenced via the ImageUrl
property
* Telerik's controls work just fine. This includes their older stuff as
well
>>as the more recent ASP.NET AJAX releases that bind all of the controls and
their assets into one assembly.
* Other VS.NET/ASP.NET controls that involve design-time display of images
do NOT work fine in terms of providing the design-time image preview when
referenced with anything besides an explicit path (e.g. ~/image.jpg as
ImageUrl does not work.) . I get a red X instead. If I view the page on
localhost or in deployment, the control works just fine. What's broken is
the design-time preview of the image. This is problematic for controls
that
>>involve interaction with the image, e.g. this imagemap control with
graphical designer: http://www.ewoodruff.us/EWSImageMaps.aspx
* Reinforcing something from the last point, writing in an explicit path
will force design-time image preview to work, e.g.: putting
C:\Users\Me\D ocuments\Visual Studio
2008\Projects \KILLTHIS\KILLT HIS\image.jpg as the ImageUrl will cause the
control to work properly.
* As a test I created a new Web project. The controls exhibited the same
design-time error. The problem isn't limited to one website.
* I tried enabling Full Control permissions for Users, Everyone, and
Network
>>Service on both the Projects folders and the Website folders. This did not
resolve the problem.

Any suggestions for where else I should be looking on this? Thanks much
for
>>your help.

-KF
Aug 7 '08 #3
Thanks for your reply KF,

For "reflector" tool, it is a utility (written by a MSFT engineer) which
can help inspect disassembly code of most .NET assemblies. In case you
have interests , you can download it and try using it, it's quite useful on
troubleshooting based on my experience.

http://www.aisto.com/roeder/dotnet/

For your scenario, I've got it much clearer now. Actually the image
displaying problem(at design-time) occurs over those enhanced image
controls from a 3rd party control package. Also, as you mentioned that the
following path:

~/...
/.....

not work and

../ path works,
I think it is definitely an control implementation problem. Though I
haven't checked the source code of those 3rd party controls, I think that
those controls doesn't provided much support for design-time image path
resolution.

Currently, my suggestion is that if possible, you should first contract the
3rd party control's vendor to see whether they have any update or quick fix
on such issues. And even if you submit this problem to Microsoft CSS, it
is likely that they'll inspect the control source and narrow down the
problelm to the control's implementation. It will also require you to
contact the control vendor for the direct fix.

If you have anything unclear or any other questions on this, please feel
free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Ken Fine" <ke*****@newsgr oup.nospam>
References: <D6************ *************** *******@microso ft.com>
<T8************ **@TK2MSFTNGHUB 02.phx.gbl>
>Subject: Re: VS.NET 2008: controls that involve images render as red X in
design time, how to fix?
>Date: Thu, 7 Aug 2008 11:53:39 -0700

Aug 8 '08 #4
Hi KF,

Any progress on this issue? Or is there still anything I can help?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: st*****@online. microsoft.com (Steven Cheng [MSFT])
Organization : Microsoft
Date: Fri, 08 Aug 2008 02:55:45 GMT
Subject: Re: VS.NET 2008: controls that involve images render as red X in
design time, how to fix?
>
Thanks for your reply KF,

For "reflector" tool, it is a utility (written by a MSFT engineer) which
can help inspect disassembly code of most .NET assemblies. In case you
have interests , you can download it and try using it, it's quite useful
on
>troubleshootin g based on my experience.

http://www.aisto.com/roeder/dotnet/

For your scenario, I've got it much clearer now. Actually the image
displaying problem(at design-time) occurs over those enhanced image
controls from a 3rd party control package. Also, as you mentioned that the
following path:

~/...
/.....

not work and

./ path works,
I think it is definitely an control implementation problem. Though I
haven't checked the source code of those 3rd party controls, I think that
those controls doesn't provided much support for design-time image path
resolution.

Currently, my suggestion is that if possible, you should first contract
the
>3rd party control's vendor to see whether they have any update or quick
fix
>on such issues. And even if you submit this problem to Microsoft CSS, it
is likely that they'll inspect the control source and narrow down the
problelm to the control's implementation. It will also require you to
contact the control vendor for the direct fix.

If you have anything unclear or any other questions on this, please feel
free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided.
Aug 12 '08 #5

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

Similar topics

16
7207
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
0
3585
by: Jim | last post by:
I am having some trouble with user controls and would appreciate any input / advice on where to go with this... :) 1. The first problem, and perhaps the root of the others, is that I have several user controls that are inherited user controls, based on one class, which is in turn based on System.Windows.Forms.UserControl. We'll call this class "UserControlBase". My first problem is that UserControlBase implements some public...
3
2636
by: Steve Drake | last post by:
All, I have a CONTROL that contains 1 control (Control ONE), the 1 control that it can contain 1 or 2 control (Control A and B). Control A, raises and event and Control ONE receives this event and this causes control B to be created, when this is done the VIEWSTATE is lost for CONTROL B. In the EVENT that causes CONTROL B to be created I have to set
4
1781
by: Alexandre Soares | last post by:
Hi, If I make a control that derives from panel, how can I persist the state of the controls that are inside the panel when it is not rendered (visible = false)? The reason for this is that I'm making a custom user control that derives from the Panel class. In the render method, I render some stuff and then I do base.render if the panel is to be visible. If it's to be hidden, I don't render it, but when I render it again, the controls...
2
1401
by: Sky Sigal | last post by:
Hello: I'm currently messing around, and need as much feedback/help as I can get, trying to find the most economical/graceful way to build usercontrols that rely on styling to look any good... It's the last part that has got me all frazzled (the 'rely on...to look good')... Let me explain -- and please bear with me as it's a bit longer than my usual questions:
3
1767
by: Qwert | last post by:
Heya, I have a cusom control: Imports System.ComponentModel Imports System.Web.UI <DefaultProperty("Text"), ToolboxData("<{0}:WebCustomControl5 runat=server></{0}:WebCustomControl5>")> Public Class WebCustomControl5 Inherits System.Web.UI.WebControls.WebControl Dim _text As String
5
1531
by: John Smith | last post by:
Hello Coould please any one to help me to find good graphical controls to create GDI in ASP.NET. Some related websites also really appreciated Thanks in Advance John
1
1308
by: PJ6 | last post by:
I have a simple container that I want to be able to use at design-time - as in, be able to drag a control into it and drop it in. I already went through of some problems in WinForms that this kind of functionality presents, so I don't exactly need it that nice - I'd be satisfied with just manually adding HTML in between the tags of the control. Just can't figure out how to get it to render what's inside its tags at the moment. TIA, Paul
8
3168
by: mark.norgate | last post by:
I've run into a few problems trying to use generics for user controls (classes derived from UserControl). I'm using the Web Application model rather than the Web Site model. The first problem I'm having is that the partial class signature in my projectDetails.ascx.cs file looks like this: public partial class ProjectDetailsControl<TEntryServiceProvider: UserControl, INamingContainer where TEntryServiceProvider : IEntryServiceProvider...
0
7999
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8423
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8411
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8067
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8281
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6740
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3911
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2437
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1530
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.