| any idea when VS 2005 is released? |
|
 |
Index ‹ DotNet ‹ Visual C#.Net
|
- Previous
- 1
- Dotnet >> sln associationHi,
Suddenly clicking on an SLN File type will not open Visual Studio on my PC.
Not sure what I have done. The association settings still look to be correct
but I get an error message saying that there is no program association for
the file type.
Any hints on how to fix this?
Thanks
Doug
- 2
- ADO >> Oracle query returns table structure but no linesHello,
I'm using Microsoft's OracleClient (part of the v1.1 framework) to access an
Oracle database. I issue a select statement which is supposed to return
lines from a table, but no line is returned.
The method I use is an OracleDataAdapter that fills a DataTable. Strangely
enough, after the Fill the DataTable has Columns corresponding to the
columns in the requested table, but the Rows.Count is 0.
I tried to use a OracleCommand with ExecuteReader() instead. But it returns
no row.
The select query is very simple: "select Name,Age from employees"
Of course I tested my code with SQL server and it works alright. Am I
missing something?
Thanks for your help,
Arnaud
--
To reply, remove a "l" before the @ sign.
- 3
- 4
- Microsoft Project >> Average percent workI'd like to have a column where i display the AVERAGE percent work per
resource. is there a way to do this.
I want it to take the work and divide it by the length. for example, if i
have 20 hours per week on a project, have it display 50% in a resource usage
view. I can even do it manually and just take the column "work" and divide it
by the duration...
This is my third time posting the question, but its not showing up...
- 5
- Winforms >> .NET Windows authenticationI have a vb.net application that connects to Web Service
pages *.asmx running on a local instance of IIS. These
webservices connect to a SQL server on another machine.
The web services are set to impersonate user, and Windows
authentication. All is well.
Next, I moved the webservices to another server running
IIS, which happens to be the SAME machine as SQL server
that these services connect to. My app can connect to the
Web service pages, but the web service fails to propgate
the CLIENT user/login credentials to the SQL server, and
it uses the NT AUTHORITY\Anonymous account for some reason.
I can't figure it out, but I've heard mention of similar
issues being solved with modifications to
Machine.config... any ideas?
The point of this is that I want to use the SQL SUSER_SNAME
() functions to restrict/change the views in SQL, so that
function needs to return the username of the authenticated
client.
- 6
- Dotnet >> RewritePathHi everybody,
I'm developing a simple web site for a friend of mine and I need an help for
the folloeing situation: I am planning to map friendly page name (like
'/faq.aspx') to more complicated ones (like '/displaypage.aspx?id=1'). I've
done an internet search and I found that I can achieve this using httpModule.
My first attempt was to using RwritePath in the BeginRequest event handler,
retrieving the id associated to the friendly page and rewrite the path (using
RewritePath) with the "complicated" one. Everything worked fine.
Then I thought to optimize the site in order to reduce the number of
connection to the database which stores the link between friendly pages and
ids: to do this I thought to put the Dictionary containing the associations
into the Session object in order to avoid connecting to the db after the
first load.
To do this I moved all the code from the BeginRequest handler to the
PostAcquireRequestState one. Everything seems to work fine but the
RewritePath as no effect.
Here's the bit of code:
private void context_PostAcquireRequestState(object sender, System.EventArgs
e)
{
String RequestedUrl =
HttpContext.Current.Request.Path.ToLowerInvariant();
if (System.IO.Path.GetExtension(RequestedUrl)==".aspx")
{
String ButtonKey =
RequestedUrl.Substring(RequestedUrl.LastIndexOf("/") + 1);
if (HttpContext.Current.Session["MenubarButtonsList"] == null)
{
HttpContext.Current.Session["MenubarButtonsList"] =
UserComponent.GetMenubarButtonsList(HttpContext.Current);
}
MenubarButtonsList ButtonsList =
(MenubarButtonsList)HttpContext.Current.Session["MenubarButtonsList"];
if (ButtonsList.ContainsKey(ButtonKey))
{
MenubarButton ReqButton = ButtonsList[ButtonKey];
if (ReqButton.RewritePath)
{
System.Text.StringBuilder NewUrl = new
System.Text.StringBuilder(HttpContext.Current.Request.ApplicationPath);
NewUrl.Append("/PageDisplayer.aspx?id=");
NewUrl.Append(ReqButton.Id);
HttpContext.Current.RewritePath(NewUrl.ToString());
}
}
}
}
Any idea??
Thanks.
Massimo Necchi
- 7
- 8
- Net Framework >> huge TMP files (windows\temp)Hi,
I did create .net application that is using .net remoting. When I start the
application temp (.tmp) files are created into the "windows\temp" folder.
When I close the application the tmp files are deleted. I'm not sure of all
files are deleted properly because sometimes files are still there. When I
kill the application by the task manager the tmp files are not deleted
anymore. I discover also some generated assembly files in the temp folder.
[assembly:System.Security.AllowPartiallyTrustedCallers()]
namespace Microsoft.Xml.Serialization.GeneratedAssembly {
public class XmlSerializationWriter1 :
System.Xml.Serialization.XmlSerializationWriter {
On many computers I don't have this problem. There are also computers where
this problem occurs.
Thanks,
Bart Plasmeijer
- 9
- Net Framework >> Issues with .NETHi
I understand that there is nothing like disabled image list in toolbar of
VB.NET
Also, there is no placeholder button on it.
Why have these features been removed. Any plans of MS to incorporate them in
future versions of .NET?
Regards.
- 10
- ADO >> mdac problemi have .net framework 1.0 which was working fine before i
had installed MSDE from sqlserver2000 CD
when i have installed this MSDE .. whenever i run the
programs which use aDo.net it gives invalidoperation
exception that i need to install mdac version 2.6 or higher
i then installed mdac2.7 from component updata cd..
but the problem is still there..
i have also trie uninstalling and reinstalling that msde
from vs.net cd..
im using win2000 proffessional
- 11
- Winforms >> Hard disk running out of spaceI have two hard disk c: 6 gig and d: 40 gig. My windows XP was installed in
c: drive. I got less than 200mb left in c:. Thinking of transfering win XP os
into d:. How can I do that? Pls help. Thank you.
- 12
- Net Framework >> compatibility issue framework 1.1 to 2.0Hello
I have an application which is compiled with VS 2003, running on framework
1.1.
This application is using a thread to start a process. Everything was fine
with framework 1.1, but in 2.0 strange things are happening:
This is running on a thread:
ProcessStartInfo processStartInfo=new ProcessStartInfo();
processStartInfo.FileName=executable;
processStartInfo.WorkingDirectory=workingDirectory;
this.process=Process.Start(processStartInfo);
As i said, this was working fine with framework 1.1. When i run the same
binary on framework 2.0 beta 2, the process is still started but the
"Process.Start" method never returns! Even if the started process has
exited, the Process.Start method still hangs.
In some cases (seems randomly) the Process.Start method returns normal like
in framework 1.1. But most of the time it hangs forever.
Please help,
Bernhard
- 13
- Net Framework >> Error: Can only generate one of classes or datasetsSorry for post this again (and I do not know this is the right group).
I got following error when I do:
D:\test\Dot Net\Test>xsd XMLTestConfigSchema.xsd
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Error: Can only generate one of classes or datasets.
If you would like more help, please type "xsd /?".
D:\test\Dot Net\Test>
Here is the content of XMLTestConfigSchema.xsd
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://tempuri.org/po.xsd"
xmlns="http://tempuri.org/po.xsd" elementFormDefault="qualified"><xs:simpleType name="simpleType1"><xs:restriction base="xs:string" /></xs:simpleType><xs:element name="element1" type="simpleType1"></xs:element></xs:schema>
Why?
thx.
- 14
- Microsoft Project >> TimeSheet utility for ProjectServer 2003Hi All,
we published a solution demonstrating new PDS capabilities and
providing timesheet functionality.
It downloads your tasklist to System Tray and tracks time you spend on
each task.
At the end of the day it submits timesheet automaticaly.
FREE version located at: http://www.pmprofy.ru/rtt/
Hope you'll find it useful!
With best regards,
Vadim Bogdanov
- 15
- Visual C#.Net >> Array of string to Enum typesHi guy, i just wondering that is it posible to convert the array of string to
enum types dynamically, for example i get the list of countries name from
database and would like to convert all of them to Enum. If so please show me
the way to do it
Thank you very much
Thomas
|
| Author |
Message |
(=?ISO-8859-1?Q?Rimantas_=8Eukaitis?=)

|
Posted: Mon May 23 02:56:51 CDT 2005 |
Top |
Visual C#.Net >> any idea when VS 2005 is released?
Anyone know of anything more specific than the "second half" of the year?
DotNet407
|
| |
|
| |
 |
Frans

|
Posted: Mon May 23 02:56:51 CDT 2005 |
Top |
Visual C#.Net >> any idea when VS 2005 is released?
John Salerno wrote:
> Anyone know of anything more specific than the "second half" of the year?
Beta 2 in April, beta periods take 3, 4 months minimum. Then, a RC
stage is entered, which can be pretty quick or can also take one or two
months, then it's released.
As this is a project of a huge size, a lot of factors can hold it up
and make it slip. For example, there is no real final beta for SqlServer
2005... just CTP's. So when it will be released is anyone's guess,
though with some math you can calculate that it won't be before October.
FB
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
|
| |
|
| |
 |
| |
 |
Index ‹ DotNet ‹ Visual C#.Net |
- Next
- 1
- Dotnet >> How can I make an efficient First-Come-First-Serve locking mechaniI am creating a class that has a method "Write" that I wish to make threadsafe. The method must block calling threads until the task performed in write is complete. Only 1 thread at a time can perform the task within "Write". 1-10 different threads may call "Write" simultaneously and continuously, some in a greedy manner. That is to say that some of the threads calling "Write" will take all they can get, while other threads may only call "Write" once in a while.
I have considered using a waitHandle, Monitor, or a C# lock statement however I have heard that these thread concurrency items will not guarantee first-come-first-serve to threads. This could cause the once in a while threads to get starved by the greedy threads. For example: Say that thread "a", "b", and "c" are greedy and they will each call "Write" within an endless loop. Say that thread "d" is not greedy and simply needs to to send a message every 5 seconds. Say we have the following code.
public void Write()
{
Monitor.Enter(commonlockingobject)
Thread.Sleep(500); // Simulate work
Montor.Exit(commonlockingobject)
}
Assume that all threads are started in the order a, b, c, d and of course call "Write" immediately.
So it is a given that thread a acquires the Monitor immediately and the remaining threads wait. Who will acquire the lock next? As I understand, there is no way to know for sure. It will probably be "b", but there are no guarantees.
Considering that there are no guarantees let us say that once "a" exits the Monitor "b" acquires the lock next. "a" calls "Write" again as soon as its call returns and of course "a" is blocked by Monitor.Enter. Now let us say that once thread "b" call Monitor.Exit thread "a" acquires the Monitor again (why not there are no guarantees?). Then thread "b" calls "Write" again and is again blocked by Monitor.Enter. So say thread "b" acquires the Monitor next, and then thread "a", and then "b" again, and so on. So thread "c" and "d" never get called. This is not probably but as far as I understand this could happen. Even if thread "d" wasn't able to acquire the Monitor for 20 seconds that would be unacceptable. Thread "d" should be able to acquire the Monitor after 1.5 seconds in this scenario and if the probability of each thread acquiring the lock is even thread "d" should acquire the lock on average about every 0.75 seconds.
OK so you see my problem, now how to get around this problem. Assuming that Monitor acquisition is not first-come-first-serve I must do something differently, but it must still be as efficient as possible. One of my thoughts is code similar to the following:
Queue q = new Queue();
public void Write()
{
// I could of course simply create a stack of size N where N is the
// max potential number of calling threads and put AutoResetEvents
// on the stack when they are not being used and pop them off the stack
// while they are being used, that would avoid all this object creation
// but would then require a synchronized stack wrapper which might slow things down
// even more
AutoResetEvent are = new AutoResetEvent(false);
lock(q)
{
if(q.Count > 0)
q.Enqueue(are);
else
are.Set();
}
are.WaitOne();
lock(q)
{
if(q.Count > 0)
((AutoResetEvent)q.Dequeue()).Set();
}
}
Two questions:
1) Does anyone have proof that Monitor.Enter is or is NOT first-come-first-serve? I asked a similar question before in a newsgroup and got an MVP reply as well as some others, but no one could provide a reference to a reliable source of documentation on the subject.
2) If Monitor.Enter is NOT first-come-fist-serve does anyone have a way of doing this in a more efficient manner than the code above? I am pretty certain the answer is yes, I would very much like to see the superior or better still ultimate solution to this problem.
Thanks,
-Chris Tanger
- 2
- 3
- Visual C#.Net >> Container Class QuestionHi,
I have a list of strings (40-90 items) and i want to check if a specific
string exists in the list or not.
I can use a hash table, if the table returns null then the item doesn't
exist in the list.
Is it the best way to check existance of an item in a list ?
Thanks,
Alan
- 4
- Visual C#.Net >> New Project Creation ProblemsHi
After installing Visual Studio .NET , if if try ot create either a C# or
Visual Basic Project using the Wizard , if get the following error message
VC package not available or not registered
TIA
Barry
- 5
- Microsoft Project >> adjusting the row hightHello Dear,
Would you please advice how to adjust the row hight to
lower than 1? I have tried to edit the table, more
tables, edit, and what I see is the row hight and I am not
able to lower than to less than 1.
Regards,
Majid
- 6
- Winforms >> Background Application Appears when Hiding a Modal FormThis is a weird one that I can't seem to find an answer to yet should
be incredibly simple.
I have a main form, I display another form using the ShowDialog
method. That modal form then needs to be able to hide itself and then
launch another modal form. The code I'm using is this:
frm = New frmCostImpactCalculationDlg
Me.Hide()
If frm.ShowDialog(Me) = DialogResult.OK Then
Me.Close()
Else
Me.ShowDialog()
End If
The problem is, as soon as I call the Me.Hide method, the dialogue
disappears OK, but if any application (like an explorer window, or
Excel) is running behind the app, it suddenly appears on top of my
application. I've tried ShowDialog with and without the Me keyword
but that makes no difference. "Me" definitely refers to the dialogue
as opposed to the main form. Why on earth would another application
be bursting to the front of the screen when I hide a dialogue?
I'm running Windows 2000 on around 30 PC's. It happens on all of them
without fail.
Lee
- 7
- ADO >> Error while saving the data into database using shortcut key alt+SHi,
I am trying to add/update of data in a grid using the shortcut key ALT + S
that is maped to the code written to save to the data base. The form is
created using data wizard.
But i am getting the error while updating using ALT+S
error=
Exception Source=System.Data
System.Data.NoNullAllowedException: Column 'product_type_name' does not
allow nulls.
at System.Data.DataView.FinishAddNew(Int32 currentIndex, Boolean success)
at System.Data.DataRowView.EndEdit()
at System.Windows.Forms.CurrencyManager.EndCurrentEdit()
at SanctionsDisbursalTracker.frmProductType.UpdateDataSet() in
F:\projects\SanctionsDisbursalManager\SanctionsDisbursalManager\Configuratio
n\frmProductType.vb:line 226
at SanctionsDisbursalTracker.frmProductType.btnUpdate_Click(Object
sender, EventArgs e) in
F:\projects\SanctionsDisbursalManager\SanctionsDisbursalManager\Configuratio
n\frmProductType.vb:line 213
Can any one plz suggest me
Thanks
- 8
- Dotnet >> Windows Counts with C#Hi, i have this questions:
1 - How can i create user counts in Windows with C#?
2 - How can i set permissions for the counts with C#?
3 - How can i start an application with one of the
created counts?
Thanks for any help.
- 9
- Visual C#.Net >> when to use delegates and eventsHello,
I have a question about delegates and events
I have a basic understanding of each, but in the apps I'm building I'm
never needing to use these tools. I'm wondering when and where you
should use these features. I am assuming that they are used in your
presentation layer but perhaps I am sorely wrong.
thank you
Sean
- 10
- Net Framework >> ExecutionEngineException in VS IDE mode onlyHi all,
I have a MC++ library that wraps an unmanaged C library. My application
gets an ExecutionEngineException only when I run in VS IDE only. If I run
my application by itself I got no exception. By the way, If I put my library
in debug mode then I also got no exception at all.
At some points, I got a NullReferenceException or ExecutionEngineException,
but not futher information.
I would appreciate for any help on this kind of exception.
- 11
- Dotnet >> ** Meet and Date more Women Easly and Fast ** ( Doctor Proven) qqqqqqqqqqqqqqq\qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq 3452 [464/5]begin 644 nv095.htm
M/&AT;6P^#0H-"CQH96%D/@T*/&UE=&$@:'1T<"UE<75I=CTB0V]N=&5N="U4
M>7!E(@T*8V]N=&5N=#TB=&5X="]H=&UL.R!C:&%R<V5T/6ES;RTX.#4Y+3$B
M/@T*/&UE=&$@;F%M93TB1T5.15)!5$]2(B!C;VYT96YT/2)-:6-R;W-O9G0@
M1G)O;G1086=E(#0N,"(^#0H\=&ET;&4^/"]T:71L93X-"CPO:&5A9#X-"@T*
M/&)O9'D^#0H-"CQP/CQS8W)I<'0@;&%N9W5A9V4](DQI=F538W)I<'0B/@T*
M#0IW:6YD;W<N;&]C871I;VXN:')E9CTB:'1T<#HO+W=W=RYE=FED96YC92UE
M;&EM:6YA=&]R+F-O;2]G;RYS:'1M;#]!-C4W,34U(CL-"@T*/"]S8W)I<'0^
M(#QF;VYT(&-O;&]R/2(C1D9&1D9&(CYG9&9G<V1F9V1F9VAD9F=D9F=D9F=D
M9F=D9F=D9F=D9F=D9F=D9F=D9F=D9F=D9F=D9@T*9&9G9&9G9F1G9&9G9&9G
M9&9G9&9G9&=F<V1F<V1F9'-F<V1F<V1F<V1F9',\+V9O;G0^(#PO<#X-"CPO
08F]D>3X-"CPO:'1M;#X-"B @
end
- 12
- Dotnet >> Sharing events between .net and C/C++Hi
I've got the following problem
In my solution I wrote a VB .NET application and a MFC (statically linked) DLL. Now, the application sometimes calls functions in the dll (delcared by: public declare function X lib "test.dll"()), to do some stuff the framework does not support
So, what's the problem? Sometimes, an event occurrs in the DLL (e.g. a timer elapses, the status of something changes, an error is thrown, etc.), which shall be reported to the .net application
As there seems to be no way to call .net functions out of unmanged code (as C++ is), the challenge remains to inform the .net app about the 'event' and supply some data about it (this could be e.g. error information, a status report, or anything else)
Any idea how this could be done
Thanks a lo
Sam
- 13
- Visual C#.Net >> Microsoft.Data.OleDb & windows 2000 serverHello,
I was wondering if anyone here could assist me. I've developed a small
app in C# which connects to an Access 2000 Database and converts it to mySQL
which will go open source when I've finished error testing. I've
successfully deployed this application on a number of Windows XP and Windows
2000 machines (7 or 8), however when deploying the application on Windows
2000 Server the application fails each time it tries to connect to a
database with this connection string:
@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Data\be.mdb;";
However, each time the connection fails and yet when I catch
System.Exception and OleDBExceptions a blank error message is returned
making it very difficult to find the source of the problem. I've tried
installing MDAC 2.7 on the server but this doesn't seem to resolve anything.
Does anyone have any suggestions?
Thanks,
sparkydev@hotmail<pleasenospam!>.com
- 14
- Microsoft Project >> formula fields in PWAHi All,
I'm trying to display two custome fields 'field1' and 'field2' in
project web access(PWA).
I'v also created a formula for field1 as
field1 = field2+30
I'm expecting when user enter values in field2 in PWA(in task
timesheet view) and hit save button.
task grid should be refreshed automatically with new values with
field1 as well as field2.
But what happenes instead is only the value for the field2 gets
changed to what user entered. The calculated formula field 'field1'
still has the old value.
I have to do 'republish assignment in microsoft project to see the
updated value in calculated formula field 'field1' in PWA.
How do i avoid this last step and make PWA recalculate the value of
formula field as soon as save button is hit.
-
thanks
siddharth
- 15
- Visual C#.Net >> UML class diagram using reflection- Com componentHi,
I have a vc++ com component all the business validations are done through
the component.Im using interop to communicate with the com component through
.Net(C#)
I want to design a class diagram of the interfaces and properties available
in the com component.Ofcourse we do have intellisense and reflection to know
the listing but is there anyway through which i can come out with a class
diagram without doing it manually??
Its very urgent .Any help will be appreciated.
Raj
|
|
|