|
You have to make 2 different Application Pools(App1 and App2), set the ASP.NET 1.1 sites to run on the App1 pool and ASP.NET 2.0 on the App2 pool.
http://stefanprodan.wordpress.com
|
|
|
|
|
Thank you Stefan. I guess i need less gaming and more IIS training. I'll make sure to learn begining from the basis and not to just jump into the last chapert.
Thanks again mate.
Leistath;)
"I hated myself... no, I hated my place in the world" - From Jerry Maguire
|
|
|
|
|
The fundamental problem here is that you can only load one version of the Common Language Runtime (CLR, the actual execution engine of the .NET Framework) into a process. The first version to load wins - subsequent attempts to load a different version are simply ignored.
IIS 6.0 uses the W3WP.EXE (W3 [World Wide Web] Worker Process) executable to run ASP.NET code. It knows how to host the CLR. IIS 5.x does not natively understand .NET and uses a different model, loading a DLL into its regular worker process, which in turn launches an ASPNET_WP.EXE process, but significantly, different versions of .NET launch their own separate worker processes so the clash does not occur.
So what you have to do is to ensure that the .NET 2.0 and .NET 1.1 applications do not share a worker process. You do this, as the other reply says, by defining a new application pool and assigning the .NET 2.0 applications to that. Or you can do it the other way round if you like, placing the 1.1 applications in the new application pool.
|
|
|
|
|
Well what can i say. A perfect answer might say. Too much books about this kind of topic doesn't explain this technical fact in so few lines and at the same time so clearly. I'm on the right path now.
Thank you Mike, great explanation! Right now i'm hungry for knowledge hahahaah.
Cheers.
Leistath
"I hated myself... no, I hated my place in the world" - From Jerry Maguire
|
|
|
|
|
If you want to know what's going on at the low levels of the .NET Framework, Jeffrey Richter's book "CLR via C#" is a good one. I have the first edition of this book, titled "Applied Microsoft .NET Framework Programming". I've not re-read it in a while - I have a good memory for crazy technical detail - but it was a great introduction to the CLR when I first started .NET programming.
I can't recall where I first heard about the two-frameworks-in-one-process problem. It might have been Chris Brumme's blog[^] (warning, lots of technical detail ahead!) or simply someone complaining about it in the context of Office add-ins.
|
|
|
|
|
I am hosting in a windows service a remoting object as singleton, I want to make sure that clients calls are thread-safe. Here is the class definition:
[Synchronization(true)]<br />
public class Service : MarshalByRefObject, IService
My question to you is if the Synchronization attribute is a good thing or should I use locks inside every Method of the Service class.
http://stefanprodan.wordpress.com
|
|
|
|
|
Hello sir,
i am maintaining a windows service which run in every ten second and check if certain condition is true then it will connect with the database and made some entry when i install it on machine , at run time it display AN Unhandled Exception('System.Data.SqlClient.SqlException')occurred in windowsservice.exe. just in time debugging this exception failed with the following error:No installed Debugger has just in time debugging enabled. say not to connect with sql server.
please sir resolve my problem
Siddharth jain
siddharth
|
|
|
|
|
In VS.NET go to Debugger menu and select the 'Attach process', you'll be able to debug the service.
http://stefanprodan.wordpress.com
|
|
|
|
|
In your connection string, did you use trusted connection or did you supply a username and password that the SQL Server recognizes? If you used trusted connection, it won't work. The Local System account has no rights to the SQL Server. Change this to supply a username and password of an account that the SQL server trusts and you shouldn't have any problems.
|
|
|
|
|
Visual Studio .NET 2003 comes with version 8 of Crystal Reports. If I were to buy the complete package of Crystal Reports XI can I use the version XI Report Viewer instead of what comes with Visual Studio 2003?
jeneesh k v
Programmer NIC
|
|
|
|
|
Hi all,
I just joined a software solution providing company called, Zone24X7 in Sri Lanka.
I would like to know what is NUnit and hope someone could guide me through this .
Thank you.
RangaSL
|
|
|
|
|
Have you even tried to search the internet for it? If I type it in to a search engine the first hit is for the NUnit Website[^]
|
|
|
|
|
Hey, his question is a bit wordier than that one a while back which just said: "Doubt - What is VB?"
Kevin
|
|
|
|
|
If you don't know something at your work, it's generally a good idea to let them know, otherwise they will expect that you do.
And, as you've been told in two forums, you won't survive as a developer if you can't use google.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: And, as you've been told in two forums, you won't survive as a developer if you can't use google
Excellent point. Sounds like someone needs to learn how to do a little research
|
|
|
|
|
NUnit is an open source unit testing framework for Microsoft .NET. It serves the same purpose as JUnit does in the Java world.
Pavan Pareta
|
|
|
|
|
In the visual studio 2005 I find there is two different class are avilable which in build. They are "object" and "Object". One with lower case "o" and other with upper case "O".
I really confused about it. PLz clarify on it.
|
|
|
|
|
All classes in the .NET Framework are derived from Object, every method defined in the Object class is available in all objects in the system.
If you are designing a class, such as a collection, that must handle any type of object, you can create class members that accept instances of the Object class. However, the process of boxing and unboxing a type carries a performance cost. If you know your new class will frequently handle certain value types you can use one of two tactics to minimize the cost of boxing.
One tactic is to create a general method that accepts an Object type, and a set of type-specific method overloads that accept each value type you expect your class to frequently handle. If a type-specific method exists that accepts the calling parameter type, no boxing occurs and the type-specific method is invoked. If there is no method argument that matches the calling parameter type, the parameter is boxed and the general method is invoked. This tactic yields methods that are CLS-compliant.
Regards,
Satips.
|
|
|
|
|
How did any of that explain the difference between "object" and "Object"?
|
|
|
|
|
Nilesh Mitra wrote: In the visual studio 2005 I find there is two different class are avilable which in build. They are "object" and "Object". One with lower case "o" and other with upper case "O".
There is no difference. One is a synonym for the other.
|
|
|
|
|
What Colin said is perfectly correct.. in C#. object is C# built-in type that maps directly to System.Object. They are the same (in C#). I don't know if VB or other languages targeting CLR have built-in type object, so in that sense I would'd say they are the same in general (CLR doesnt know type object), but in C# they are.
See http://msdn2.microsoft.com/en-us/library/ya5y69ds(VS.80).aspx[^]
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
hi,
i've created a console application and i've tried to read some informations in the app.config file
so i've create with VS.NET the app.config file and i've added some tags so it would look like this
<configuration>
<appsettings>
<add key="Ship" value="DocStyle">
<documentconfig>
<configpath>DocumentConfig.config
<documentconfig>
i've tried to read the DocumentConfig section using this code
object config=null;
string Setting = "DocumentConfig";
try
{
config = ConfigurationSettings.GetConfig(Setting);
}
catch(Exception err){
Console.Write(err.Message);
}
but i've alawys got an exception msg "unrecognized configuration Section DocumentConfig "
in fact the use of this section (<documentconfig>) is creating a problem by removing it everthing is OK.
so how can i do to use this section
thanks for help
-- modified at 8:09 Thursday 31st May, 2007
|
|
|
|
|
|
|
Can i use(apply) in Asp.net2.0 window Application "Themes and Skin" Property .
If yes then how to use ?
Ashish
|
|
|
|