Strange Problem in dot net framework 2.0

N

Netaji

Hi Experts
We are uploading files on the server using HtmlInputfile control with
visual studio 2005, 2.0. In this there is an option for user to keep on
uploading the files finally file actually uploaded on the server after
clicking Upload Button. So when user add the file we store the content of
HTMLInputfile control in session object. This overall functionality is
working in visual studio 2002, 1.0 environment but the problem we are facing
in 2005 is , The Posted file from session object is becoming “Nothingâ€
Please let us know the solution.
Thanks & Regards
Netaji
 
A

Alvin Bruney [ASP.NET MVP]

You are confusing technologies a bit. Visual Studio doesn't run on the
server so I assume you mean that the session object is null on a server
running ASP.NET 1.0. Where as, on another server running 2.0 (since they
can't possibly be the same server), the session object works correctly. If
this is correct, review your session time-out settings on the 1.0 server. If
it is not, please explain further.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
 
N

Netaji

Hi Alvin

Thank you very much for the reply.
I think it is not session time out issue. becuase on both the server session
are a alive but only one property is getting blank if we execute the same
code in 2.0 framework. below is detail explaination.

We are using htmlinput file control to upload files and storing this
uploaded files across multiple post back in session object which is working
very fine in asp.net 1.0 framework

When we are trying to use the same thing in asp.net 2.0 framework the stored
htmlinputfile content is getting nothing from session . session object is
still there but we are not able to acess the
htmlinputfile.postedfile.filename properties it shows nothing which means
that is is not session expiry problem since all the session are working
properly.

Please let me know if you require more clarification..
Really appriciate your input on this issue...

Thanks
Netaji
Alvin Bruney said:
You are confusing technologies a bit. Visual Studio doesn't run on the
server so I assume you mean that the session object is null on a server
running ASP.NET 1.0. Where as, on another server running 2.0 (since they
can't possibly be the same server), the session object works correctly. If
this is correct, review your session time-out settings on the 1.0 server. If
it is not, please explain further.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


Netaji said:
Hi Experts
We are uploading files on the server using HtmlInputfile control with
visual studio 2005, 2.0. In this there is an option for user to keep on
uploading the files finally file actually uploaded on the server after
clicking Upload Button. So when user add the file we store the content of
HTMLInputfile control in session object. This overall functionality is
working in visual studio 2002, 1.0 environment but the problem we are
facing
in 2005 is , The Posted file from session object is becoming “Nothingâ€
Please let us know the solution.
Thanks & Regards
Netaji
 

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
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top