Cooliless State - Image unavilabe

G

Guest

Hi,

I am having some problems hosting my website. Everything works fine in
my local machine but when I upload to propduction server, my images
won't load properly. I have my state configuration like
this in my web.config:

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="true"
timeout="90"
/>

My images are set like this in my code behind:
SelfAssignimg.ImageUrl = "images/plus_sign.gif";

In my production server, when I have cookieless set to false, some of the
client browsers disables the cookies, so other problems are cause because of
this.

Does anyone know whats going on?

Thanks in advance.

Regards,
Karthikeyan
 
E

Eliyahu Goldin

Are you sure you have deployed image files to the production server? Check
if they are there.

What is the connection between image loading and session state setting?

Eliyahu
 
L

Lalit Singh

What browser & version you are using ?
Lalit

Eliyahu Goldin said:
Are you sure you have deployed image files to the production server? Check
if they are there.

What is the connection between image loading and session state setting?

Eliyahu

because
 
G

Guest

Hi,

To answer your questions, we have all the required images in the production
server under Images path. Also we are using IE6.0 version.

Basically we are able to see the images without any problem when we set the
cookieless value as false. If we set this cookieless value as true then the
images are not showing properly, because the session id is getting updated in
the URL. So while we use relative path like "images/plus_sign.gif" then it
is not able to find the images path properly.

Since we are using more number of images it is not possible for us to change
all the image paths with full path.

So please help us how to overcome this problem.

Note: We are having the login authentication pages in different domain
server and other pages are available in different domain server.

This is kind of very very urgent. So please help us as earlier.

Thanks in advance...

Thanks,
Rajagopal.S
 
L

Lalit Singh

I had the same problem in some pcs.
Solution is In the IE menu select Internet Options, Settings, Chek the
option button called "Every visit to the page"
so that browser will always get the latest gif files.
Let me now if it helps.
Lalit
 
G

Guest

Hi Lalit,

Thanks for your reply. But it doesnt work. Because this is not happening
only for some of the systems. It happens for all the systems. Basically
when i set the cookieless value in config file as "true", the session id is
getting updated with the URL. So when we give the relative path for images,
the URL for the image includes the session id also as below,

http://servername/websitename/sessionid/images/img.jpg

Since the URL has session id also it is not able to find the image in the
above specified path. due to this reason we are facing this problem. So i
am not sure we can overcome this problem by changing any IE settings.

Please help me if you have any more thoughts in this regard.

Thanks,
Rajagopal.S
 
J

Jonathan Smith

Rajagopal,
R U using ImageButton?
Did you try by setting the property to ImageUrl = Images\MyImage.gif?
For me it is working. In the ViewSource what is the path it is showing for
image?
Jonathan
 
G

Guest

Hi Jonatha,

Thanks for your response.

Actually i am not using image button, am using as below,

<img src="images/ta_branch_off2.gif" alt="Search By Branch" id="imgbranch"
width="120" height="34" border="0">

Also when i right click on the image and check the url then it showing as
like below,

http://servername/websitename/sessionid/images/img.jpg

if i paste the same URL in separate IE then it shows me page cannot be
displayed. If i remove the session id from the URL and run it then i am able
to see the image without any problem.

Thanks,
Rajagopal.S
 

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

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,059
Members
48,769
Latest member
Clifft

Latest Threads

Top