Rob Lynch's Q&A profile
SQL Server Error when I setup website to sub level
Hi, I am getting the following error when I use the Membeship Controls w/ Roles enabled. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. I use ROOT>USER>WEBSITE for FTP Directory Setup. If i need to change my old ways please inform me on the best direction. ...Show All
Visual FoxPro How to play a Windows Media Audio format (WMA) in VFP?
Hi all, I am now trying to create a small program to play media audio files. I'm now using the MultiMedia ActiveX control (mci.ocx) to play these files but this ocx seems can not play WMA files while this type of file is getting more and more popular to music-lovers. Could anyone tell me how to play WMA files in VFP. Note:I want to play them directly in VFP with MCI control or with some API function that VFP can handle, do not have to use ActiveX of 3rd party (If have to use ActiveX of a third party to play , i can create one for my own in VB6). Do you have the latest codecs installed, right my two cents, ...Show All
Software Development for Windows Vista Visual Studio 2005 on Windows Vista 5342
Hi, As anyone managed to install Visual Studio 2005 on this new release of Windows Vista Build 5342 Because, i've tryied and it crashes for several diferent reasons, no matter if i try to run it as an Windows XP app, or in safe mode or anything. Can't get past the setup main form. Did anyone installed it I am also facing the same problem. I couldnt install Visual Studio in Vista (both 32 bit/64 bit) can you tell me how you managed Thanks ...Show All
Visual Studio Express Editions SOS!!! Having trouble while installing VWD Express 2005
Hello David, I already made it during the installation process. Hello David, I think I did. But I'm not so sure. I made automatic error reporting feature. But I don't this is the one you're telling me. Now, I'm making it myself. NETallica PS. I'm so sorry coz I post the same thread twice. During the time while the Internet speed was so slow, I made some mistakes! Sorry!!! ...Show All
Visual C# How can I prevent others using my assembly?
How to trust the calling assembly that loads my assembly. I don't want anyother client load my assembly except specific assembly Sean Vikoren wrote: To get really secure code, you will need to compile to a native format. Of course when you do this, you loose the flexibility of running in the CLR. The security protections offered by the CLR would also be lost. Considering that no calling code restriction mechanism is guaranteed to be effective when implemented in native code either, this is hardly worth the trade-off if caller restriction is the main reason for the switch. ...Show All
Visual Studio 2008 (Pre-release) Error while trying to serialize Cyclic Dependencies
I have a following cyclic dependencies between two classes in my object graph: [DataContract] [KnownType(typeof(Person))] public class Company { [DataMember] private IList employeesList; private IList EmployeesList { get { if (employeesList == null) { empl ...Show All
Windows Forms Icon don't visible in Listview
Hello, i have problem In my programm i fill a listview with items and assign a icon from a imagelist. It works fine but: If i enable VisualStyles with Application.EnableVisualStyles(); then no icon is displayed. But if add items at design time than it works with both enabled and disabled VisualStyles. The code for adding Items: SqlDataReader sr = this.GetReader(DBQuery); &nb ...Show All
Visual Studio VSS 2005 Issue
At two of my XP machines I successfully setup VSS 2005. Issue is at the server which is an Windows 2003 Standard. It seems that when I check Server -> Configure then Enable SourceSafe Internet for this computer and corresponding option bellow Enable SourceSafe Internet for this database VSS Administrator does not properly create virtual dir, to be more precise, it does note create VssUpload_db1 and VssDownload_db1 sub-virtual dirs. Moreover, when I uncheck Enable Internet access it does not delete virtual dir, as it is case at my workstations. It’s the same build, and same steps, so problem should lay somewhere in server configuration. S ...Show All
Smart Device Development Set Focus After Event Raised
Hi all, Im hoping there is a simple solution to this, but i have a class in which a handle an event coming from that class. After the event is raised i then want to set focus to a control on my form but it doesn't work inside the event handler is there a workaround to this ...Show All
.NET Development VS User Interface Data Set Interconnectivity
Hi peers, I have experienced a problem related to simultaneous connection to the same dataset from the different child Windows Forms within the MDI Parent Form(VS UI). Problem is interconnectivity between the databases, and inhibernation of the commands on Binding Navigators in the run-time. Because i was using standardised procedure to connect to the datasource not much code has been written, that's why i will use words to explain the problem. For the creation of Dataset within the Solution I used common procedure of adding data connection in Server Explorer and then extracting relevant tables into the Solution b ...Show All
SQL Server ADOMD.NET AdomdDataReader + ASP.NET 2.0 gridview?
Anybody had any success with populating an ASP.NET 2.0 gridview using ADOMD.NET AdomdDataReader I am trying the following code: Dim oSb As New StringBuilder Dim sMDX As String Dim sCnnString As String = "DataSource=localhost" Dim oAdoMdCnn As AdomdConnection Dim oAdoMdCmd As AdomdCommand Dim oAdoMdRdr As AdomdDataReader '...build oSb sMDX = oSb.ToString sCnnString = "DataSource=localhost" oAdoMdCnn = New AdomdConnection(sCnnString) oAdoMdCnn.Open() oAdoMdCmd = New AdomdCommand(sMDX, oAdoMdCnn) oAdoMdRdr = oAdoMdCmd.ExecuteReader() Dim o ...Show All
Windows Forms ToolboxBitmapAttribute doesn't work
Could anybody explain me what happens Code is below: C#: [ System.Drawing.ToolboxBitmapAttribute(typeof(MyClass), "myicon.ico") ] public class MyClass: Component {...} VB <System.Drawing.ToolboxBitmapAttribute(GetType(MyClass), "myicon.ico")> _ Public Class MyClass Inherits Component ... End Class I have place the above component into Toolbox, but its icon remains "sprocket". No rebuilding and no replacing help. I have  ...Show All
Visual Basic deployment of vb.net application with MSSQL db
I built my application using VB.NET 2003, MSSQL database which is hosted locally. How can i build the deployment file plz help in details, i am new (apparantly i can only build the msi file for simple applications following walkthrough) Now you are a little outside my experience dealing with SQL Express error messages. They've got a forum. You can make sure it's running by going to the Computer Management app and going to the services node. I've also heard that you can't use Named Pipes with SQL Express. You have to use the default/standard protocols. If you use the wizards in the Data Sources window to create a connne ...Show All
Visual C# Migration from .net to vs2005
hello, Im writting test tools for different hardwares. I started with C# .net and everything seems to work normally. Then the company wants to migrate everything to 2005. So i opened my projects in 2005 and convert them. first of all i noticed that everything run slower (does 2005 mean better ). I have some cross threading issue but i turned the warning off with the system controls so it works like .net. And third thing which is the worst is that the program is not working with some hardware. I think the code is too slow for the hardware to respond correctly back. Is there any way to speed up the code. Im using VS2005 Professional edition. ...Show All
SQL Server Reuse of Recursive Queries
I have a recursive query which I use to retrieve a set of identifiers. Something like: WITH Set (Id) AS (/* recursive code */) SELECT Item FROM MyTable T WHERE T.ItemId = ANY (SELECT Id FROM Set) What I would like to achieve is to be able to reuse the code in bold in another procedure without duplicating the code (ie. reuse the query building up the set). What I've done is to create a user-defined function which returns a TABLE parameter. So now, I have something like: SELECT Item FROM MyTable T WHERE T.ItemId = ANY(SELECT Id FROM MyFunction()) My question: is this the righ way of doing it Does the use of a function incurs an ...Show All
