stupidimg's Q&A profile
Visual Studio Installation Problem?
Got VS2005 Profesisonal installed. Went to create an Windows console application and got an error. Then proceeded to comment out the few lines of code to leave an empty main(). Tried to run the application again and get the same error. Here's the error: Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=Some Number' failed. Is this an installation error I tried using Permview to look at the permissions but I couldn't find Permview. Where's it normally located. I did a search and couldn't find the file on the drive. ...Show All
Windows Forms Assembly redirection during application launch using Reflection
I am trying to launch a windows application App1.exe (based on .Net 1.1) using reflection from another windows application. App1.exe has an associated .exe.config in which I put assembly redirection for few assemblies. The assembly redirection is working fine when App1 is launched individually. But when launched using reflection, it is not working. It still expects the original version of assemblies. Is there a way to make it work Thanks. I found a way. I just copied my other assembly's .exe.config file in my host application's directory. It just worked! Thanks. ...Show All
Visual Studio Team System Is it possible to install the Trial version and they "upgrade" it to a "real" version later?
I am currently running the RC version of TFS. Is it possible for me to install the Trial RTM version and later on when I have bought a real license upgrade it a "real" version ...Show All
.NET Development Additional information: COM object with CLSID {00020819-0000-0000-C000-000000000046} is either not valid or not registered.
I am using excell 2000 and vb.net when i am opening a workboob using vb.net then this problem comes - Additional information: COM object with CLSID {00020819-0000-0000-C000-000000000046} is either not valid or not registered. pls tell me solutions as soon as possible with regards thanks Hi I am using the similar code as u have given, but when it executes the following line, TestExcelWb = oApp.Workbooks.Open("D:\myfile.xls") the exception message is " Object reference not set to an instance of an object " When I checkd it, TestExcelWb prior to execution of this line is "nothing" ...Show All
Windows Forms Please can anybody help (1 month before release)?
Hello everyone, I am writing a desktop .net application that willl be released in one month.......The problem I am having is very strange and seems only to occur on windows 98 not NT based OS's. The error I get is: Failed to load resources from resource file Please check your setup. It occurs when moving around the application window and invoking different MDI& ...Show All
.NET Development Exceptions generated by SqlCommand.ExecuteReader()
Relevant documentation: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdatasqlclientsqlcommandclassexecutereadertopic1.asp SqlCommand.ExecuteReader throws by Exception and SqlException. Under what conditions does it through Exception instead of SqlException I don't think the documentation is correct; I'm pretty sure I've seen SqlExceptions raised in circumstances other than executing a command against a locked row. Could you paste some code which illustrates a situation where you got an Exception and NOT an SqlException while you expected an SqlException IMHO ...Show All
Visual Studio Express Editions LessonResources File not found Help!!!!!!!
Hi Guys, In Lesson 2 the guy says around the 31 min. mark that a file call LessonResources can be found where I downloaded the video (http://lab.msdn.microsoft.com/express/beginner/). But its not there. Can you please help me get that file so I can continue the lesson. Thanks for the help Winchester1897 Dear Mr. Fernandez, You point us to the "...final download VB/C# in the "rss_icons" directory", and states: &q ...Show All
Smart Device Development Use digital certificate
Hi, can we use digital certificate along with Pocket PC application . The applications is developed in C#(VS 2003) and uses SQL CE database to synchronize with a publication created in SQL Server 2000. Regards, Shanavas You mean sign the application with a digital certificate Yes you can turn on the code signing through project properties dialog. Btw, PPC doesnt require any code signing as they are 1-tier devices. thanks Siva ...Show All
Visual C++ static_cast raises an error bcos of const?
hi, POSITION pos =controlBars().GetHeadPosition(); while(pos!=NULL) { CToolBar* bar =DYNAMIC_DOWNCAST(CToolBar, static_cast<CControlBar*>(controlBars().GetNext(pos))); //some code } where const CPtrList& controlBars(); is the declaration of the controlBars(). I am getting an error as below 'static_cast' : cannot convert from 'const void *' to 'CControlBar *' This compiles fine in VC 6.0. But the above error is displayed in VC 8.0. Any workaround for this Is it because of the "const" bcos when i remove it, compilation i ...Show All
Visual Studio Express Editions 'Exclude From Project' in Solution Explorer
Hi All, Visual Studio .NET 2003 and Visual Web Developer both have a 'Exclude From Project' menu command when right-clicking a file in the Solution Explorer. I can't find this command in Visual Basic Express. How can I remove a file from my project, while in the IDE, without deleting it Thanks, Gordon Bell So, there is no way to remove a file from a solution, without Deleting it ...Show All
Software Development for Windows Vista Embedded designer with ifElseActivity does not compile.
hey all, I've been building an application, based on lab10 for a while now, and i've mannaged to do some realy nice things, thanks to allot of great posts here. the thing is, somehow i cant seem to get the embedded designer to run (or compile), when there is an ifElseActivity placed inside it. i get no problems composing different kind of rules, but when i press the "Compile" / "Run" buttons, i get the following exception: error 1342: Activity 'ifElseBranchActivity1' validation failed: Can not find the condition \"Condition2\"." string does enybody have a solution thanks ...Show All
Windows Forms attachment problems on pop3 server
Hello, I've got a couple problems with my pop3 server, both having to do with attachments. We have a couple domain names and mailbox on our server (in the office network behind a router) which are fmsdesign.com and lexingtonmarketing.ca. Our OS is Windows Server 2003 Web Edition. We've been experiencing difficulty with receiving attachments on a few accounts. These difficulties can be broken down into 2 problems: 1) [user1]@fmsdesign.com cannot send attachments to [user2]@fmsdesign.com, [user3]@fmsdesign.com, nor [user4]@lexingtonmarketing.ca. [user1]@fmsdesign.com CAN send attachments to her home email account and to my telus account. If ...Show All
Visual Studio Debugging multi-threaded operations problem
You'll love this one... I've ran into a rather odd problem, both in the application I'm in the process of developing and in a test project I threw together just to replicate the issue. When debugging code that is run on a thread other than the main execution thread the non-main thread will exit for no apparent reason. Here's the kicker... It only happens if you have the autos variable window selected i.e. the problem will not show if you're viewing the watch list. Here's how to replicate: Visual Studio 2005 Standard 8.0.50727.42 1 Create a new Windows Application for C#. 2 Create 1 button. 3 Use the following for your class code. public part ...Show All
Visual Basic Operator Overloading and Enumerations?
Is there any chance that in future versions it will be possible to overload operators for enumerations I was very skeptical if it was really necessary to introduce this feature to VB. I almost never missed it. As someone with Pascal background I like speaking numbers, so I often use enumerations. <Flags()> _ Enum SampleEnum Value1 = 1 Value2 = 2 Value3 = 4 Value4 = 8 End Enum I would like to write Code in this way: Dim e as SampleEnum e = SampleEnum.Value1 + SampleEnum.Value4 and not: Dim e as SampleEnum e = CType (SampleEnum.Value1 ...Show All
Visual C# saveFileDialog
Hi, I need your help with that saveFile code that seams to compile but hit with an exception: private void saveAsToolStripMenuItem_Click( object sender, EventArgs e) { SaveFileDialog saveFileDialog1 = new SaveFileDialog (); saveFileDialog1.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*|RTF Files (*.rtf)|*.rtf" ; saveFileDialog1.FilterIndex = 3; saveFileDialog1.RestoreDirectory = true ; if (saveFileDialog1.ShowDialog( this ) == DialogResult .OK) { childForm childForm = new childForm (); String filename = saveFileDialog1.FileName; using ( StreamWriter writer = new ...Show All
