|
Just want to clarify that I'm only an idiot occasionally. I meant to say SQL Server 2005 server, not 2003....
|
|
|
|
|
I am not an expert in that field, so I have no more ideas. Sorry.
Public Sub GetOffTheComputer()
Throw New NotImplementedException()
End Sub
|
|
|
|
|
That's okay, thanks for your input.
|
|
|
|
|
I figured this out and it's so simple I want to shoot myself. But I won't; no need to dial 911. I'm calling my code on a new Windows 7 machine. To check if MSDTC was enabled for this machine, I went to Administrative Tools -> Component Services -> Computers -> My Computer and right-clicked for Properties. All I saw was a screen telling me that "use local coordinator" was enabled. Okay, I thought, it looks different from the SQL Server settings because it's a client. BUT - I discovered today that there's a whole host of other MSDTC settings on my machine. You get to them by going to Administrative Tools -> Component Services -> Computers -> My Computer -> Distributed Transactions -> Local DTC and right clicking for Properties. Sure enough, my machine wasn't set to allow DTC. Once I changed this, every works fine (well, now I've got another issue, but so what else is new?). I'd probably read this a million times on different websites and it just hadn't taken. Thanks to http://pongsathonkeng.blogspot.com/2011/02/msdtc-setup.html[^] for showing me in pictures what I needed to do.
|
|
|
|
|
I figured this out and it's so simple I want to shoot myself. But I won't; no need to dial 911. I'm calling my code on a new Windows 7 machine. To check if MSDTC was enabled for this machine, I went to Administrative Tools -> Component Services -> Computers -> My Computer and right-clicked for Properties. All I saw was a screen telling me that "use local coordinator" was enabled. Okay, I thought, it looks different from the SQL Server settings because it's a client. BUT - I discovered today that there's a whole host of other MSDTC settings on my machine. You get to them by going to Administrative Tools -> Component Services -> Computers -> My Computer -> Distributed Transactions -> Local DTC and right clicking for Properties. Sure enough, my machine wasn't set to allow DTC. Once I changed this, every works fine (well, now I've got another issue, but so what else is new?). I'd probably read this a million times on different websites and it just hadn't taken. Thanks to http://pongsathonkeng.blogspot.com/2011/02/msdtc-setup.html[^] for showing me in pictures what I needed to do.
|
|
|
|
|
Your code can easily become a target for SQL injection attacks. To avoid it, remove the string concatenation and use parametrized queries or stored procedures.
|
|
|
|
|
Is there any one who know Unibasic/pickbasic programming language ?
|
|
|
|
|
Lots of people. My wife does, for one. Not sure how this is .NET related though.
|
|
|
|
|
There is no separate discussion link for Unibasic and we can connect unibasic/unidata using redback server with .net easily .So many unibasic developers know .net as well
|
|
|
|
|
It's not a .NET question. Just because they can connect together doesn't mean that it has anything to do with it.
|
|
|
|
|
Hello,
My program have two threads using a byte list.
Every time some of them manipulate the list i use the lock statment:
lock(byte_list)
{
.Do some work on the byte_list
}
But it seems that the synchronization doesnt work i get strange thigs it looks like both threads work simultaneously on the list.
Any one have an idea whats the problem?
Thanks.
|
|
|
|
|
Try using a separate object for the lock
private static object lockObj = new object();
lock(lockObj)
{
... Do some work on the byte_list
}
Also, format you code snippets when posting
No comment
|
|
|
|
|
I do think it is good practice to have a seperate lock object but i don't see why it wouldn't work on the bytearray itself. I would like to know if there is a difference though.
All i can think of is that the byte array is locked in one place but marrely used without a lock in another.
Alternetively he could be adressing a ref to the same array.... And as such locking two seperate objects.
No doubt he'll get back and tell what was wrong.
Cheers, AT
Cogito ergo sum
|
|
|
|
|
Addy Tas wrote: No doubt he'll get back and tell what was wrong.
Don't hold your breath on that.
No comment
|
|
|
|
|
Still holding my breath... starting to turn blue
Cheers, AT
Cogito ergo sum
|
|
|
|
|
Hi,
I have a C# Forms application that hosts an ActivX control. I added a new method to the ActivX control called “GetRange()”. I then deleted the control from the Form, deleted it from the Toolbox and deleted the two interop dll references. I then re added the control. All works fine in debug build but in release mode I get an error...
“AxChart_v2Lib.AxChart_v2' does not contain a definition for 'GetRange' and no extension method 'GetRange' accepting a first argument of type 'AxChart_v2Lib.AxChart_v2' could be found (are you missing a using directive or an assembly reference?)”.
I have noticed that of two interop dll references only one has the new method in it, AxChart_v2Lib does not contain the new method, however Chart_v2Lib does.
Any ideas?
Thanks.
|
|
|
|
|
Looks like you forgot to rebuild one of your libraries with the updated source.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hi Richard,
Thanks for the reply.
What libraries should I be building?
Thanks.
|
|
|
|
|
I fixed it by deleting the obj folder from my C# project.
Probably only needed to delete the interop dll's from that folder but I deleted the whole folder.
|
|
|
|
|
I have a requirement where I have to playback .ts files.
I used a simple Media Element to implement a media player. When I played the file in .net 4.0, playback was scrambled.
However, on changing platform to .net 3.0, file plays perfectly fine. Even in .net 3.5 it played fine.
Can anyone advice about the cause and solution for the issue.
|
|
|
|
|
revengeoffallen wrote: I used a simple Media Element
"Simple"?
You mean "easy to use"?
revengeoffallen wrote: Can anyone advice about the cause and solution for the issue.
The Framework doesn't care much which decoder is used. It's probably using different versions of the Media Player libraries, and possibly even different decoders. You could start with installing SysInternals' Process Explorer[^] and compare the versions of the libraries loaded and work from there.
Bastard Programmer from Hell
|
|
|
|
|
Hi
I've installed Visual studio 2005 but the user ASPNET hasn't been created. I need this user to configure reporting services.
Note that I installed Visual studio 2005 first followed by SQL Server 2005..
Any help would be appreciated.
Cheers
Berba
|
|
|
|
|
|
thx for the link...got some maintenance to do...
|
|
|
|
|
Hi all,
I hope I put this question in a right category.
I have a base class (let's call MyWindow) in C# which is based from UserControl.
MyWindow is used as a base class in other projects of the same solution, and the projects are written in different languages, some C# and some C++(CLI).
In C#, it's working properly. The Load event of the inheriting control is fired when the control is created in our application in run-time.
But for CLI/C++ projects, the Load event of the inheriting control is never fired.
Can you please give me some information to settle this?
Thanks for your help and time,
Zaw Min Tun
|
|
|
|