Software Development Network Logo
  • Visual Basic
  • .NET Development
  • IE Development
  • Audio and Video
  • Visual Studio
  • SQL Server
  • SharePoint Products
  • Visual FoxPro
  • VS Team System
  • Smart Devicet
  • Visual C#
  • Game Technologies
  • Microsoft ISV
  • Visual C++
  • Windows Forms

Software Development Network >> Greg Allen's Q&A profile

Greg Allen

Member List

jkidd01
Deepu.MI
MurtazaH
Greenstrike
Corbin Hoenes
dHan61
FlashFan
Laurent P.
AngusHuey
Ken_Bussell
Qingbo
shagshag
Paul Yau
Mary-Rosey
Michaelliu
RayClark096
David C Baldauff
mcomroe
Deepa7476
IanO
Only Title

Greg Allen's Q&A profile

  • .NET Development Webservice C# issue in VS 2005

    1. I have Employee business object class developed in C# which is referenced both by client and Web Service project. 2. I have webservice class with method to add employee. Here is the Windows Forms c# client code public void AddEmployee(Emp emp) { localhost.Employee.Emp obj = new localhost.Employee.Emp(); obj.AddEmployee(emp); } Here is the Web Service method public void AddEmployee(Emp emp) { //Calls data class to add employee } Question: 1.Do i need to specify the Employee business object class with serializable attribute.Is that mandatory 2.In the web service,Web methods call data layer classes.Do the data layer classes also needs to have Serializable attribute specified in the class. 3.I generated prox ...Show All

  • .NET Development using with try-catch or try-catch-finally ?

    What do you use using statetment or try-finallly With the using statement... what is the best way to catch a exception Now, i'm using a try-catch-finally for the connection and using for the commands, dataadapters, datareaders ... etc.., but i don't know if is the best way. Regards. When disposing a connection it automatically closes the connection. You can verify this with a tool called reflector that shows you the code from .NET. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All

  • .NET Development Atlas framework

    Are atlas framework and the provider model linked in any way Try posting your question on one of the ASP.NET forums... ...Show All

  • SQL Server IS Package doesnt ship with password

    Hi, I tried many times checking "Save password" in connection manager editor. But everytime I open the editor again and I see the password field blank. I took it as normal, and deployed my IS Package, It couldnt run because of login failed for user 'sa'. How do I force IS to save password  on any ProtectionLevel Thanks, Fahad First, /SET option isnt working I am trying it this way U sa /P gama /SET "\Package.Connections[TRIMURTY.TMDB.SA].Properties[ConnectionString]";"Data Source=TRIMURTY;User ID=sa;Provider=SQLNCLI.1;Persist Security Info=True;Auto Translate=False;Password=gama" Second, I have to run this IS Package from another IS Package as well by using Execute Package Task. How would I supply these things on there Plea ...Show All

  • Visual Basic Decrypting a file without writing to disk

    Hello, I am currently trying to decrypt a file that was encrypted. Problem is that i cannot seem to convert it byte to to memory stream, which in turn would then spit out a string. code: Public Function ReadDecryptFile( ByVal EncryptedFilePath As String ) Dim retStr As String = "" Try Dim encryptor As ICryptoTransform encryptor = mProvider.CreateDecryptor() Dim decStream As CryptoStream decStream = New CryptoStream(File.OpenRead(EncryptedFilePath), _ encryptor, CryptoStreamMode.Read) Dim readStream As BinaryReader readStream = New BinaryReader(decStream) Dim writeStream As MemoryStream writeStream = New MemoryStream Dim myByte As Byte ...Show All

  • SQL Server planning a replication

    hallo we have a sql2000 in the headquarter, and 3 new remote branches opening in few weeks with no sql servers installed yet. We plan to setup a merge replica. The headquarter will have the highest activity on the replicated tables. Shall we use all SQL2000 in the remote branches Or could we use SQL2005, using a 2005 as a publisher and distributor TIA ok thanks. we're not going to upgrade the only sql2000 server we have, but i'd prefere to use sql2005 in the remote branches: in this scenario, i could set one of the 2005 as distributor and publisher. This would be in contrast with the network topology, that centers everything in the main plant; BTW there will not be a big traffic of replicated data: a theor ...Show All

  • Software Development for Windows Vista Audio Playback problems in Vista and Windows Server 2003

    We make a dll that is able to play any number of Audio files using subgraphs patched one or to any number of audio renderers present in the machine. It also does samplerate conversion and scales any bitdepth of sample. The problem is that on XP/2000 it works fantastic and when you try and run it on either Vista or Server 2003 it becomes unpredictable/unresponsive and you loose control over the subgraphs. I have trie reading all sorts of documenation and what others experienced but found nothing that explains or helps me to correct the problem. I suspect (pretty sure) the threading have been altered in the directshow but would like to have this confirmed and what im supposed to do about it. BMS-Joppe Thanks G, I wish i ...Show All

  • Windows Forms publish error

    I had to reformat computer and reinstall VB2005 express I saved the visual studio folder and copied it back after installation, my program runs fine within VB and the .exe but when I try to publish using clik once I get the following error The 'sign file' task was not given a value for the required parameter 'certificate thumbprint' ok if you get this simply go into project properties and select 'signing' make sure under sign clik once manifests in certificate window if there are no details regarding certificate 'i.e issued to none' then simply clik on create test certicicate and you will be able to publish ...Show All

  • Visual Studio Team System Create Db Project by Schema vs By Object

    I tried creating a project of each type of organization and both appear to have the same structure. Are they different What is the folder structure of each It is listed as one of the known issue with CTP5. It is already fixed, and will be available in CTP6. Once it is available, object s folders will be organized differently based on the option. -Sachin Kumar ...Show All

  • Visual Studio Team System Strange behaviour converting tests from NUnit to VSTS

    I am converting NUnit tests to VSTS tests and came upon the following problem. I have some class that acts as a base classs for all my tests [TestFixture] internal abstract class BaseTest {     [TestFixtureSetUp]     public void Init()     {        // Some init method for all tests inside test fixture...     }     ... } and some test class [TestFixture] public class SomeTest : public BaseTest {     [Test]     public void SomeTestMethod()     {         ...     }     ... } When I run SomeTestMethod using NUnit framew ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA Starter Kits

    Where can i find starter kits for XNA Game Studio Express MS will be releasing at least one (XNA Racer) soon and possibly others in the future. The TorqueX open beta comes with 5 starter kits (which are pretty cool). Oh, and I might take a stab at one at some point. ...Show All

  • .NET Development FtpWebRequest GetResponse throw The server committed a protocol violation :(

    Hello. I have some trouble with FtpWebRequest class. I use it for connection to two ftp servers The first server is working perfectly, but when i use the same programm to connect to another one the "The underlying connection was closed: The server committed a protocol violation." exception is thrown when I call GetResponse method. I found only one difference between servers. The first server returns: 220 Hello k-net ftp server The second FTP return the same banner but ON RUSSIAN Lang!!! 220 ! ! Is any UseUnsafeHeaderParsing property exists for FTPWebRequest, like for HTTP P.S> I'am not using SSL! The sources is here: ///... FtpWebRequest listRequest = ( FtpWebRequest ) We ...Show All

  • Internet Explorer Development MSHTML based scraper

    Hi, I'm writing a web scraper toolkit in C++ which I'll be using to write several web scrapers. I decided to save myself some time by using MSHTML to parse pages, but I've run into a number of problems with it. I'm not sure if this is exactly the right forum for this issue, but it's the closest I could find. Getting a single page in and parsing it is no problem. I can walk the DOM nicely and pick off whatever info I want. Pretty easy. (At least, after writing some wrappers for the otherwise laborious COM interfaces.) The problem is getting to the next page. If I do anything that would normally cause navigation, such as inducing a click on a link or submitting a form, it launches IE to browse the page interactively. According to MS ...Show All

  • Windows Forms Toolstrip: strange behaviour after items adding programmatically and at design time

    I have discovered two strange behaviours with the toolstrip control only at design time. I have implemented a custom toolstrip, derived from the standard one, and added a set of toolstripitems after initialization, so that users can see them when they wnat to use my custom toolstrip. First strange behaviour: the toolstripitems added cannot receive focus and selection, so it is impossible to set event handlers or properties directly. Second strange behaivour: when I add a new toolstripitem at design time, the newly created control is shown (and has the selection ability) with all the others, but as soon as I recompile the project, all other items are lost. The only way I can see them is to open the "items" property entry in toolst ...Show All

  • Visual Studio Team System SQL not found

    I thought I did well following the install instructions but I must have missed something because when I install the application tier in dual-server I get warnings that the data tier can't be found. "Can't find SQL agent and about 4 other SQL errors. This would be just after entering the database server name. I've verified that all the new database are there and the setup account is a sysadmin. I've login to the database with the setup user from the foundation server and all seems fine. Any help on troubleshotting this would be appreciated. make sure the services are running on the data tier make sure (use the surface area configuration tool if desired) that remote TCP connections are allo ...Show All

©2008 Software Development Network