473,774 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange Problem in dot net framework 2.0

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

Jan 4 '08 #1
2 1388
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" <Ne****@discuss ions.microsoft. comwrote in message
news:C6******** *************** ***********@mic rosoft.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
Jan 7 '08 #2
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.p ostedfile.filen ame 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" <Ne****@discuss ions.microsoft. comwrote in message
news:C6******** *************** ***********@mic rosoft.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
Jan 7 '08 #3

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

Similar topics

0
1552
by: Daniel O'Brien | last post by:
Hi - any help with this would be greatly appreicated - it has already had me confused for a good few hours! I am using Visual Studio 2003 and the .NET framework 1.1. I have a C# Windows Service, with my own class extending from ServiceBase in the normal fashion. The service starts a remoting object (WKO and singleton) which many clients can then make calls on. Clients may also register with events on the server such that the server...
5
2246
by: Hatul Shilgy | last post by:
Hi I'm facing a very strange problem here. My code looks like this if(A == null return doSomethingWith(A.b) When I run my code (in debug mode), I get a NullReferenceException -- and on breaking, I discover that A is indeed null. (The exception is raised in the doSomethingWith line.
3
23105
by: nick | last post by:
The program runs well on Local harddisk. But it always popup the exception if I run it on Netware mapping disk. After debugger say there is no source code on the exception. Also the following error shows. Very strange. Unhandled Exception: System.TypeInitializationException: The type initializer fo r "handnetconsole.Monitor" threw an exception. ---> System.Security.SecurityExce ption: Request failed.
1
1281
by: Justice Gray | last post by:
I have the following code encapsulated in an ascx page (user control): namespace MyCompany.Web.UserControls { string webform_namespace = this.GetType().Namespace.ToString(); } Now, when I run this and output the string to the trace information, I get the following value:
2
1940
by: Kris Vanherck | last post by:
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\spsweb\0e3514bf\cb1844e7\assembly\dl2\3b163f 16\00452d31_84e5c301\infragistics.webui.ultrawebgrid.v3.dll' could not be found
2
1244
by: Sammy | last post by:
Everyone, I have this very strange problem and we spent weeks to figure out what's going on. Let me outline the configuration of our system: 1. .NET Framework v. 1.0.3705 2. SQL 2000 SP 3 3. Windows 2000 Server SP4 Web Site Setup
0
1193
by: Chris | last post by:
I'm moving an app to my server and got this strange error. The previous developer created a web service and has two C++ COM+ objects in the project. I'm getting: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\tec-trac\5660ae43\6c7dad27" is denied. He runs the app on a Win2K server, I'm using a Win 2003 Standard server. I found two articles but not sure:
2
269
by: bijoy | last post by:
I have the C# web application running on 2 servers - dev and prod. Dev runs Win2K and the prod runs Win 2K3. I noticed some strange behavior on the 2k3 machine. When I copy over all the required files from the 2k server to the 2k3 server, the application works fine. SOMETIMES, when I make a small change to .aspx or .ascx files on prod, with NO changes to the C# code, I get a strange error. The same changes on the dev instance do not...
25
1305
by: David | last post by:
hello. when doing the simple following computation, the value put into the variable numMinusOne is NOT the same as what the computation is showed to be in the Watch window!! here is the code: Dim xSng As Single = 6547.972 Dim yInt As Integer = 8000 Dim num As Integer = CInt(Math.Floor(xSng * yInt)) Dim numMinusOne As Integer = CInt(Math.Floor(xSng * yInt) - 1)
7
1447
by: ChrisM | last post by:
I posted this last week, so apologies for re-posting but I'm still looking for a sensible answer, and I'm hoping somone new might be able to cast some light... Basically, I have a fairly complicated application which seems to me to be misbehaving. The following is an attempt to reproduce the error. There are reasons in the real application why I'm trying to do things the way they are here, so please no comments on techniques here,...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10040
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
8939
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 projectplanning, coding, testing, and deploymentwithout 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
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
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...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
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
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.