473,379 Members | 1,252 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Problem with System AppDomain ....

I developed a webApp that work without problems in the webserver of my pc.
If I install my webApp in another web server, the webApp canĀ“t transfer
values between components...

the sintax is the following...
System.AppDomain.CurrentDomain.SetData("SQLnInst", values);

The component receive the values with:
object variable =
System.AppDomain.CurrentDomain.GetData("SQLnInst") .ToString();

How I can resolve that???
Regards
Ronald Morales
Nov 16 '05 #1
2 1638
Ronald,

What is the type of values? If it is not a string, and of another type,
it is very possible that when you call ToString, it is returning the type
name. If anything, you should cast this value to the type that was
originally inserted and perform a comparison against that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ronald Morales" <Ro***********@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com...
I developed a webApp that work without problems in the webserver of my pc.
If I install my webApp in another web server, the webApp can“t transfer
values between components...

the sintax is the following...
System.AppDomain.CurrentDomain.SetData("SQLnInst", values);

The component receive the values with:
object variable =
System.AppDomain.CurrentDomain.GetData("SQLnInst") .ToString();

How I can resolve that???
Regards
Ronald Morales

Nov 16 '05 #2
Hi Nicolas,

The value type that I transfer is string.....
And the variable return null value.... but, this only happen I use computers
without VS installed...
I donĀ“t know if I need make some changes in the another IIS Server
properties...

Regards
Ronald
"Nicholas Paldino [.NET/C# MVP]" wrote:
Ronald,

What is the type of values? If it is not a string, and of another type,
it is very possible that when you call ToString, it is returning the type
name. If anything, you should cast this value to the type that was
originally inserted and perform a comparison against that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ronald Morales" <Ro***********@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com...
I developed a webApp that work without problems in the webserver of my pc.
If I install my webApp in another web server, the webApp canĀ“t transfer
values between components...

the sintax is the following...
System.AppDomain.CurrentDomain.SetData("SQLnInst", values);

The component receive the values with:
object variable =
System.AppDomain.CurrentDomain.GetData("SQLnInst") .ToString();

How I can resolve that???
Regards
Ronald Morales


Nov 16 '05 #3

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

Similar topics

0
by: Daylor | last post by:
first of all , PLEASE,say somthing..about my post. any reply will be nice to read. i have vb.app , with 2 appdomains. (now, in the next section , ill write "appdomain create" ,means a code in...
2
by: Lauren Hines | last post by:
Hello, I have read numerous post stating that the only way to unload an assembly (DLL in my case) is to create a separate AppDomain, load the assembly, then unload it by calling AppDomain.Unload....
0
by: kozen | last post by:
I want to pass a WinForm control from main appDomain A to another appDomain B. In appDomain B, i will create some WinForm controls and add them to the control's child controls list of main...
1
by: John | last post by:
Hi, I tried to load a mixedmode dll (MC++) with AppDomain.Load(Byte ) in a C# Client. During the Load Process I got the following Exception: System.IO.FileLoadException: Ausnahme von...
1
by: Raveendra M | last post by:
Hi! I am working with ASP.NET application. In my page I am creating one Application Domain and in that domain I am calling my DLL. Using the methods of the dll. And unloading the Application...
4
by: Daylor | last post by:
first of all , PLEASE,say somthing..about my post. any reply will be nice to read. i have vb.app , with 2 appdomains. (now, in the next section , ill write "appdomain create" ,means a code in...
8
by: James A Taber | last post by:
What I want to implement is to restart certain thread every 24 hours... sample code: Dim T() As Thread Dim L() As Lib1.Class1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e...
5
by: John | last post by:
I've started to get session loss on many of my web apps, after only a few minutes (the session lifespan is supposed to be 60 minutes). It occurs in several apps (all on same server), and started...
1
by: Damien \zaide\ Desmarets | last post by:
Hi, I have a little problem with the 2.0 framework. I use a web farm with 2003 server and IIS. I have installed SFU 3.5 to use NFS on windows, it works great with ASP.NET 1.1 and IIS 6.0. So I...
1
by: Bill Woodruff | last post by:
Visual Studio 2005, .NET FrameWork 2.0, C#, WinForms Application Hi, I've read the recent posts by and to 'Thunderbird' (and learned a lot, thanks, from the usual masters Skeet and Paladino,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.