|
Hi,
I have framework 1.1 and 2.0 on my local machine and I have installed framework 3.0 on my machine but my local IIS manager propertiws shows only framework 1.1 and 2.0 in the list it does not shows the framework 3.0. Sop that I am not able to use farmework 3.0. Please give me some solution so my local machine cam use framework 3.0
Thanking You!
Rock Star
modified on Wednesday, March 12, 2008 5:50 AM
|
|
|
|
|
.NET framework 3.0 is only framework extensions to 2.0 (WPF, WCF, WF and CardSpace). .Net 3.0 still uses the same 2.0 CLR.
So there is no 3.0 CLR, so no IIS settings. it's all run with the 2.0 CLR.
for more info:
http://msdn2.microsoft.com/en-us/library/aa479861.aspx[^]
Simon
|
|
|
|
|
i want to create a windows service. In the config file i have defines list of ports. What i want is, to know the defined ports request time,process id and request end time whenever any request is coming for the specified ports in config file.
i am using "netstat" command,with this i m getting pid,port and process start time.
But i want to do it an another way(socket programming). can anyone help me in this regard how to forward.
|
|
|
|
|
Hello,
I want to create an XML file using System.Xml.XmlTextWriter (.NET 1.1) with:
xmlTextWriter = new XmlTextWriter(fileName, System.Text.Encoding.GetEncoding("ISO-8859-1"));<br />
xmlTextWriter.WriteStartDocument(true);<br />
...
This results in:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?><br />
...
Unfortunately, the programm reading the XML file doesn't accept the
lowercase "iso-8859-1" . It only accepts encoding="ISO-8859-1" .
Is there a way to get an uppercase encoding value?
I've tried to inherit System.Text.Latin1Encoding
to overwrite the headerName member,
but this class is not public.
Uwe
|
|
|
|
|
Hi guys,
I want to setup scrolling in a textbox (or a label), which I intend to do using a combination of string methods Remove and Append, however I want to extend the concept slightly and only scroll when the text overflows the limits of the textbox. Unfortunately I can't seem to find any way of determining that the text has overflowed the boundary. Has anybody got any ideas?
Cheers,
Chris.
|
|
|
|
|
You'd need to create a graphics object to call MeasureString and see if the current text, with the current font, is bigger than the control.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ok Christian, thanks for your advice. I'll give it a try and let you know how I get on.
Thanks,
Chris.
|
|
|
|
|
Excellent stuff Christian, that worked a treat.
Cheers!
|
|
|
|
|
I couldn't find any sample where they have shown the exact use of calling garbage collector explicitely. For example what I think is if I am using Interop, say object of Excel file in .Net, it is good to call GC.Collect to free up the memory.
Is what i think correct? What are the other scenarios when we should use Garbage Collector ?
Thanks for your help in advance.
|
|
|
|
|
Het2109 wrote: it is good to call GC.Collect to free up the memory.
It's almost never a good idea to call GC.Collect directly. Just because you are using Interop, it will depend on what you are doing. If you are directly allocating memory or translating structures to pointers (or back again) using any of the methods on the Marshal class then you need to be very careful about allocating and deallocating memory using the appropriate methods on the Marshal class.
Het2109 wrote: What are the other scenarios when we should use Garbage Collector ?
Any time you are writing managed code you're using the garbage collector. If the class you are using implements the IDisposable interface (or provides a Dispose method) you should call Dispose as soon as you can after you're done using that class. See this article[^] for more information.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Thanks Scott for your reply and article, it really helped me get rid of my confusion and get to know more of GC.
|
|
|
|
|
Het2109 wrote: Thanks Scott for your reply and article, it really helped me get rid of my confusion and get to know more of GC.
Glad to help.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Yeah it can be counterproductive to call GC.Collect directly. IIRC one side effect is that objects that survive collection will move quicker into higher generations, and be less likely to be looked at in following collections.
|
|
|
|
|
Hey all,
I was wondering if there was a utility to generate c# classes from database tables?
|
|
|
|
|
seanwright wrote: I was wondering if there was a utility to generate c# classes from database tables?
Are you talking about Object-Relational mapping?[^]
led mike
|
|
|
|
|
Yes, there are several. Search for "Object Relational Mapper" or "O/RM". Some that come to mind are NHibernate, SubSonic, and the ADO.NET Entity Framework.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
I've been looking at O/RM for a while. I guess I'm just looking (right now) at creating custom collection classes based of data from a database. Now, I don't want every column from the table I'm querying, just a few key columns.
So basically I'm looking for a utility which will generate a class and I'll just delete what I don't need afterwards. Make sense?
|
|
|
|
|
Yes, that makes sense. Take a look at http://SubSonic[^] as I think it will allow you to do what you want.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
If you want to use Linq, there's always SqlMetal.
|
|
|
|
|
Generators are great until you modify the generated code, and then you are stuck maintaining it.
I, of course, recommend Diamond Binding[^] for an end-to-end ORM solution. We plug into VS, and are probably the fastest to get off the ground with. (Check the example section)
Subsonic use a build provider approach which is quite reasonable. Subsonic also provides some UI framework, which is either a blessing or a curse, depending on how you feel about separation of concerns.
NHibernate is great, but difficult to use. Diamond Binding uses NHibernate to do the heavy lifting behind the scenes.
But avoid code-generators like the plague, they tend to give you a very inflexible model, which can be difficult to extend.
|
|
|
|
|
Hi,
I need some help to clarify some confusion I have. If I access some data from the db and then create objects which hold the data--for example, access the customer table and create a customer object--am I using Connected technique or Disconnected? My understanding is I am using disconnected, however my teachers disagree.
I think to use connected technique I will query the db and keep connection open and every time a change is made it is made directly in db.
In other words, if the changes are made anywhere except the data storage source--the database in this case--then it is disconnected.
Furthermore, when you bind controls to the db, is it using connected or disconnected?
Please write a detailed answer and you can assume I am well familiar with ADO.NET.
CodingYoshi
|
|
|
|
|
The best explanation can be found on MSDN. From ADO.NET Architecture[^]:
<blockqoute>
The ADO.NET DataSet is the core component of the disconnected architecture of ADO.NET.
(emphasis added)
If you create a custom business object and then populate fields internal to that business object from a database, you are only connected to the database long enough to retrieve the data. The same applies for data binding.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
CodingYoshi wrote: am I using Connected technique or Disconnected?
In classic ASP, you could use a connected recordset to access the data in the table more or less directly. In .NET this technique isn't used any more. There is no object in .NET that uses that kind of direct connection.
A DataTable works as a disconnected recordset. A DataReader works as a read-only forward-only recordset. There is no object that works as a connected recordset.
CodingYoshi wrote: when you bind controls to the db, is it using connected or disconnected?
Data binding in itself actually doesn't have anything to do with the database at all. A data source can be a data reader that reads from the database, but it can also be a data table that contains data that was previously read from the database, or even a list of objects that has nothing to do with the database at all. The data binding always reads from a data source, never from the database directy.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hiiiii friends
i m using asp.net2.0
i want to off right click in my application....
thanks...
yogesh
|
|
|
|
|
yogeshpan wrote: i m using asp.net2.0
Then post your question in the ASP.NET forum.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|