aguess's Q&A profile
Visual Studio 2008 (Pre-release) .Net 3.0 / Linq doubts
Hi, I have lots of doubts regarding .Net 3.0. I have installed .Net 3.0 final version runtime and vs 2005 extensions nov 2006 ctp. I am developing XBAP applications. After knowing about LINQ I installed linq May 2006 CTP. is this the latest version Any final version released In the new project window why i am seeing linq preview and in the right pane I see linq console / linq window app e.t.c is that not possible to use in WPF / XBAP applications I have mentioned my environment above now when i try to open the samples available in linq May 2006 CTP it says "This is unsupported version of Microsoft Visual C# 3.0 / Microsoft Visual Basic 9.0" Please guide me on all the above. Also is it advisable to devel ...Show All
.NET Development Object Already Exists error when trying to sign an assembly using a pfx file
Hi, I'm trying to sign my assemblies using a pfx file. This was working fine, until I changed the file I used to sign it (I used to sign it using xxxx.pfx, and now I'm signing it using another xxxx.pfx, so the name is the same but the file itself is different). When I point to the new file on the signing tab and build my solution, I am prompted for the pfx password. When I type in the pwd and confirm, I get the error message "Error Importing Key" "Object already exists". For me, it is not clear what is going on. Could someone clarify what I should do to avoid this problem. I already tried to apply the workaround suggested here http://www.pcreview.co.uk/forums/thread-1325523.php , but to no avail. ...Show All
Visual Studio Team System Fxcop IDE in VS 2005
From all the sites i have looked at on the web if i have installed FXcop1.35 on my machine and VS2005 then i should beable to enabled intergrated Fxcop checking on My Projects by simply clicking o the checkbox on the build properties page. Yet its not there. What am i missing i would appericated any help you guru's can give me Cheers Simon FYI: I've just posted a blog post on running FxCop during the post-build event: http://blogs.msdn.com/fxcop/archive/2007/02/24/faq-how-do-i-run-fxcop-during-a-post-build-event.aspx . ...Show All
.NET Development Webservice: "The ASP.NET process identity does not have read permissions to the global assembly cache."
I'm uncertain what the best forum is for this - I also posted this in the ASP forum. I am developing a distributed application with a client-side java calling a webservice serving a static binary database. The application works well with the VS2005 Development server on XP Pro SP2. However when I publish it to an IIS v5 environment, it fails with these errors. 3.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly 2.) Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache. Error: 0x80131902 1.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root Exception: System.Configuration.ConfigurationErrorsException Message: Exception ...Show All
Visual Studio Team System Difference between stakeholders and constituents?
Stakeholders and constituents sound like the same group of people. What's the difference between them Are they interchangeable For example, an end user is a stakeholder to a project, can I say he is also a constituent for that project Thanks in advance. Hmmm... it is a tricky thing to define a constituent that way because a constituent is a noun, concept or cause being advocated by member(s) on the project team. In other words, it can be a nameless user or a collection of users. In such cases, things like user profile(s) are used to represent them, their interests, their needs, their wants, etc. It is rare that a project team meets all of its constituents. Conversely, stakeholders are named and r ...Show All
.NET Development which assembly will be called?
Hi, I am studying .net and run it this question: Assembly A calls a private assembly B to do some function. B is located in the bin directory of A. Later you You assign B a strong name, set its version to 1.0.0.0, and install it in the global assembly cache. In this case, which B the assembly A will call is it still the B in bin or it is from global assembly cache Many Thanks Jerry Hi Suresh, The assembly in bin is not recompiled, so still the private assembly. Only the one in GAC is recompiled. So it should be bin first, isn't it Thanks ...Show All
Windows Forms How to pass data to DataGrid
I am new to C#, I create a WinApp with FormMain.cs & userControl.cs. userControl add to left panel of FormMain, and dataGrid1 add to right. When I click on btn_search and I get a run time error "Null Reference Exception was unhandled". How can I pass the search result to right side dataGrid1 in userControl.cs ... void btn_search_Click(object sender, System.EventArgs e) { ... ora_Connect(sql); } void ora_Connect(string strSql) { // Create and open a new connection m_connection = new OracleConnection("Host=vmtestxport=1521;SID=xe;User ID=abcassword=abc"); m_connection.Open(); adapter = new OracleDataAdapter(strSql, m_connection); cb = new OracleCommandBuilder(adapter); dataSet = new DataSet("DS"); adap ...Show All
.NET Development .NET framework 3.0 setup CPU problem
i try to install on windows xp sp2 (with visual studio 2005) and when it says please wait while loading components this could take 2-3 minutes bla bla bla....it just does that forever using up 50% of CPU.No log no nothing....any idea what i should do to install it First thing I would suggest is to disable your Anti Virus software. That should be the first rule of thumb. The next thing I believe someone else, or the guru Aaron (MSFT) will guide you correctly ...Show All
Visual Basic Setting MessageBox returnValue to Yes
I have created a dedicated WebBrowser application that is only used for viewing a program containing dynamic web pages that runs on my computer. Some of the web pages in the program utilize activeX controls so when I open up a page containing activeX controls in my dedicated WebBrowser application I get the following warning message box. An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction I click the “Yes” button and all is well. It is just that the repetition is annoying. If I set the “ScriptErrorsSuppressed” property of WebBrowser control to True, I don’t get the warning message boxes, but the activeX controls don’t work either. Is ...Show All
Visual Basic Topmost problem when used in a service
Got an odd problem. 9 months ago I wrote a windows service that displayed a message to staff. The service was set to interact with desktop so that the window would display when required. The Topmost property is set to true Now, with no change to the code and after many months of this working perfectly the window now does not display on top af all other windows on ALL work PC's. But on my development PC which is not part of the work network it still works perfectly. I use VB.net 2005. Hi Martyn775, I found this thread looking for a solution to the same problem - only my application resides in the system tray. I did confirm that it works fine under IE6, but not IE7, by testing in VirtualPC. I ...Show All
Visual C# List<> casting
I have one property, this receive a object, ArrayList or List<>. How i can get the first item in this list In Array work's perfect, but, in List<> i don't know how to procced. See the code: private object pDataSource; public object DataSource { get { return this .pDataSource; } set { this .pDataSource = value ; if ( value != null ) { if (value.GetType().IsArray) { this .SelectedObject = ( value as object [])[0]; } if ( value . GetType ().IsGenericType) { Type t = value. GetType (). GetGenericArguments ()[0]; List <t> list = ( va ...Show All
.NET Development generics and static methods question
I'm learning generics and c#. Is there a way to call static methods in the T class so I can streamline this I have two static methods in T named GetItem and SaveItem that I would like to invoke by something like T.GetItem(astring) and T.SaveItem(t). Reading some of the other posts seems to indicate that a static method can not be used. Thanks for any recommendations. public class FrmUpdateManager <T> : Form { T t; // etc // would like to do something like T.GetItem(tb.Text) to eliminate the if clause // for each type I implement i f ( typeof (T) == typeof ( InsuranceCompany )) { object obj; obj = ( InsuranceCompany .GetItem(tb.Text)); t = (T)obj; displa ...Show All
Visual Studio Express Editions How to compile a .cpp file in Visual studio
Hi, I have recently downloaded Visual Studio and have no idea of how to compile .cpp file using Visual Studio. Suprisingly the help menu offers no help. It would be very much appreciated if someone could tell me how to do this. I have done this but when i add my .cpp files to my project (which were created, compiled and run without problems in Textpad) I need to include a file called stdafx.h. When I do include it, it still doesnt compile, why is this How come I cant compile without the files Visual Studio creates as standard Thanks you very much for your help. ...Show All
Visual Basic create an on-screen keyboard
hello. i am programming using VB 2005 express edition. i want to create an on-screen keyboard to be integrated with my app, but i have no idea where to start. can anybody give me a direction thanks. There are some good articles on www.codeproject.com about this, so you can try them, but most of them have flaws of one sort or another. I've put together some information from two seperate CodeProject articles as well as some of my own trial and error and posted it on my blog as a solution for making an on screen keyboard that works with any existing window or input field. My solution uses one of the existing CodeProject articles to provide the visual keyboard (no point re-inventing the wheel), ...Show All
.NET Development Using Sockets
How can i use socket to establish connection between two compuers which IP addresses are not real IPs This question has been answered before. Please search the forum before posting. See: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=241548&SiteID=1 ...Show All
