Strange Problem in dot net framework 2.0

Strange Problem in dot net framework 2.0

am 04.01.2008 09:20:01 von 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

Re: Strange Problem in dot net framework 2.0

am 07.01.2008 01:56:15 von Alvin Bruney

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" wrote in message
news:C6D35A8B-DCCF-4DD2-BA15-6AEEC572DAB5@microsoft.com...
> 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
>

Re: Strange Problem in dot net framework 2.0

am 07.01.2008 08:06:01 von 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 [ASP.NET MVP]" wrote:

> 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" wrote in message
> news:C6D35A8B-DCCF-4DD2-BA15-6AEEC572DAB5@microsoft.com...
> > 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
> >