Matt Milner - Pluralsight's Q&A profile
Visual C# Can't read <mailSettings> from app.config file, why??????
Common sense tells me it should work. The code compiles but the host is always null. Whatever I try I can not get any data from the app.config file. I have a Class Library and I'm trying to build an email component that sends out email using the mailSettings in the app.config file. I'm using VS 2005. < configuration > < system.net > < mailSettings > < smtp > < network host = " smtp.mailserver.com " password = " password " userName = " username " /> </ smtp > </ mailSettings > </ system.net > </ configuratio ...Show All
.NET Development BIG BIG and little challengeing Tcp/Ip prb with C#
when sending throught tcp u can only send in bytes my problem is: I have server and client, the client send a string(transodrmed to bytes) command to server, in the server i have a On Data Recived method.. my problem is that my string doesnt come all in one it come trought multiple pakets, and i dont know when the string finished to recive.. so i can execute that command i know that u guys dont really understand (my fought) client send command to server This is The coomand S recived H recived U recived t recived ...... Client ------------------> ShutDown -------------> S client H client U client T cl ...Show All
SQL Server Script databsae does not compatible with SQL2000
I've created a databse on SQL2005, and I did not use any new data type for columns. I script the database, and select SQL2000 for "Script for Server version", howvever, the script generated cannot be run on SQL2000, it can be only run on SQL2005. The script generated by SQL2005 is not backward compatible like SQL2000 can generated script compatible wtih SQL7. CREATE TABLE [dbo].[Table1]( [Col1] [nvarchar](16) NOT NULL, [Col2] [nvarchar](100) NOT NULL, [Col3] [nvarchar](10) NULL, [Col4] [datetime] NULL, [Col5] [nvarchar](10) NULL, [Col6] [datetime] NULL, ...Show All
.NET Development Returning typed datasets from a Web Service
Hi Guys, Since the webservice design surface appears to have gone between .net 2003 and .net 2005, how do I use dataadapters with datasets to return typed datasets to my client application from a webservice I must admit to being a bit confused as to whether I should return typed datasets anyway. In the past I have used functions like the following to deliver and update data: <WebMethod()> Public Function FillDataset( ByVal strSQL As String ) As DataSet Dim DS As New DataSet Dim DA As New SqlDataAdapter(strSQL, Conn) Try DA.MissingSchemaAction = MissingSchemaAction.AddWithKey DA.FillSchem ...Show All
Architecture Architecture to access userdater of multiply sources
Hi! I've got a architecture question, wich might by very special and complex: We are developing a product for utilities, wich can be used to track issues (gas, water, elctricity). We use a three layer Architecture wich is: - Top Layer: Web Client (ASP.NET) - Business Layer (Clases with multiply access methods: web service, remoting, direct access) - Datalayer (DAO pattern) The Problem is, that we need a common way of acessing persons, wich might be employees or external contractors. We want to be able to save a reference to a persone in form of a foreign key in our issue-entity. These refences to persons are used in many other entities, t ...Show All
Visual Studio Express Editions VB + SQL server vs Access
I am very new to programming etc so I may be misunderstanding the situation, but my question is this: VB.Net Express is a programming language which comes with database functionality via SQL Server Express, whereas Access is a Database which is programmable via VBA. So, if one is developing a (fairly simple) database based application what are the pros and cons of using one set of software tools versus the other Thanks for any insights. Eric I never did program in VBA or VB6..... I do have a History though but History is History...... VBA, VB6, Access Data bases, Arrays, Etc. are History.... Why Persist ...Show All
Visual Basic How to read a shortcut in Environment.SpecialFolder.Recent
I need to read some data from a file in the folder pointed to by: Environment.GetFolderPath(Environment.SpecialFolder.Recent) The file I need to read is labeled as a "Shortcut" and I cannot find a way to read what is in it. How do I accomplish that Here's a sample of mine showing how to read and write shortcuts (aka shell links) http://www.msjogren.net/dotnet/eng/samples/dotnet_shelllink.asp ...Show All
Visual C++ Rationale for C++/CLI Value Types not having a default constructor
Given value class X { public: // Not allowed: X():i(100000),s(10000) { } // Allowed void InitializeDefaults() { i = 100000; s = 10000; } private: int i; short s; } How can: 1) X x; x.InitializeDefaults(); be better semantically than 2) X x; for setting the default values of 100000 for i and 10000 for s In other words what is the rationale for removing the natural user-defined default constructor for value types and forcing the user to default construct the value type object to its zero or null values and then have to call another function to set default values which the type may want I read that 2) can not be guaranteed to occur properly in ...Show All
SQL Server parameter help
Is there anyway I can pass column name and column value both as parameters to serach the rows Here is the example what I want: declare @colname varchar(15) declare @colval varchar(15) set @colname = 'LastName' set @colval = 'Smith' select * from client where @colname = @colval The idea is I want to develop one qurey for all possible criteria. How can I acomplish this Thanks. Here is a way: Declare @SQL Varchar(500) SET @SQL = 'SELECT * FROM Client WHERE ' + @colname + '= ''' + @colval + '''' if you want to add more statement, just do SET @SQL = @SQL + 'your statemen ...Show All
Windows Forms Little Problem with ContextMenuStrip
Hi all I have a little Problem with the ContextMenuStrip in CLR 2.0. Is there somewhere a sample how to find out which item is clicked The Click Event is working fine on ContextMenuStrip Level. I have created several "toolStripMenuItem" and I do not know how I can find out which item is clicked ... Thanks for any comment. Best regards Frank Uray ...Show All
Visual C++ Microsoft Dynamic Link Libraries (dlls) - What ones must be given to the end user?
Compiler: Visual Studio.NET 2002 Hi everyone, You will probably think I am a bit dim for asking this question but it is one that does confuse me. How do I know what standard Microsoft dlls (Dynamic Link Libraries) must be sent out with my software so Windows users (even the previous Windows release users) can use my programs I was going to link statically (as I got the impression that doing so would automatically put the dll in the final executable). Then I got some errors which got resolved when I linked dynamically instead. So even though the optimal answer would be to link statically, please answer assuming I link dynamica ...Show All
SQL Server asp.net confgiguration tool. tool keeps timing out
is it possible to change the settings on this tool. i want to have it so that it does not time out at all or is that possible I suggest you ask this on the ASP.Net forums http://forums.asp.net/ ...Show All
Visual C# is there any software to convert from C++ source to C# source?
any software you know If you can compile the C++ code in Managed C++, you should be able to use Reflector to read it in C#. Of course, the result would not take advantage of C#'s language features (properties, events...) or the .NET base class libraries. ...Show All
Visual Basic Inserting Sub-procedures into Module's ?
Hello all, I am new to Programming, Visual Basic and Visual Studio and have a general question about Modules. I want to send data out my serial port and was wondering if I could insert code to access the port into a moduel so that it would be accessable to various "Button_Click" events with-in the Windows program I am writing. From reading I understand that when I insert varibles or Sub-procedures into a module it is accessable to all parts of my program, am I on the right track JMLStamp2p Yes you can put the code into a module so that it can be called from various differe ...Show All
Visual Studio Team System Reports won't run
I have almost everything working I believe. I have work Items, source control and team build all running. However trying to run reports I get: An error has occurred during report processing. (rsProcessingAborted) Cannot impersonate user for data source 'TfsReportDS'. (rsErrorImpersonatingUser) Logon failed. (rsLogonFailed) Logon failure: the user has not been granted the requested logon type at this computer. (Exception from HRESULT: 0x80070569) Any suggestions on what to change Figured it out. Single Server install with AD. Had to change the policy of the system to allow TFSSERVICE to logon locally. ...Show All
