Mike_Toth's Q&A profile
.NET Development EventLogPermission
I am getting an EventLogPermission exception when calling my assembly from an ASP.NET 2.0 app. I tried setting the assembly to FullTrust via caspol.exe, but I still get this exception. Firstly, I am not attempting to log from ASP.NET directly, but from a dependent assembly (albeit in the same process space - effectively the same thing, I assume). I am loading the web app and assemblies over UNC. I am also impersonating a Domain Admin account in my web.config. My trust level is the default setting of "Full". I have tried various caspol commands such as "caspol -m -fulltrust \\mydomain\dfsroot\dfslink\myapp\bin\myassembly.dll " with n ...Show All
Windows Forms Detecting mouse click location for a DataGridViewCell
I have a ContextMenuStrip in which different options are shown depending on which cell of a DataGridView the user clicks on. My problem is that I am unable to get the x & y co-ordinates of cells. I get the mouse position by using : Point mouse = MousePosition; I tried getting the cell's location by saying: Rectangle cell = dataGridView.Rows[r].Cells[idx].ContentBounds; cell.Offset( this .Left + dataGridView.Left, this .Top + dataGridView.Top); However, the cell co-ordinates I get are completely wrong. Any ideas Thanks for the help in advance guys! Private Sub MyDataGr ...Show All
SQL Server Reporting Services 2005 on Windows 2000 SP4 Domain Controller
Hi all, I'm experiencing a problem with Reporting Services 2005 running on a Windows 2000 AD Domain Controller. Installation has been done correctly, SQL 2005 and SSRS 2005 are running correctly (I've followed Microsoft KB911846 to solve the "not dtarting after installation" problem). Accessing reports virtual folder ( http://machinename/reports ) from localhost, logged on with user Administrator Report Builder option displays correctly. Also accessing from LAN, but with user Administrator , displys Report Builder Option. Report Builder button is not displayed with other users (i.e. user Dave ) I've given user Da ...Show All
Visual Basic msg error with xp 64 pro
I reloaded my os and still get the same error when I boot DaleWitty wrote: I reloaded my os and still get the same error when I boot my error has nothing to do with visual basic but I am not sure what to contribute it to causes problems with my epson printer and Logic camera ...Show All
Windows Forms Inheriting form class: making MustInherit?
Is there any plan to classes inheriting from the Form class to be marked as MustInherit It's a bit of a nuisance that we can't do this, it'd be a really useful thing because then we can railroad other team members to be consistant in where they put code. The designer kicks off at the moment when you try. Unfortunately not - supporting this would require a complete re-architecture of the designer. When you design something in the designer, it instantiates the base class (e.g. the designer for 'form1' has created a System.Windows.Forms.Form), so if the base class is MustInherit/Abstract, ...Show All
Visual Studio Team System please help with web recorder
Hi! I'm trying to record webtest. 1. Create new web test 2. Window of recorder (IE) does not appears 3. Script is not recorded What solution can you suggest to resolve this problem Thanks for your reply! I'm wondering if the recorder has started but is hiding behind another window. Does a web test open in the IDE with a status bar across the top that says "Recording..." If so, does a link appear on the web test status bar that says "Show recorder" If so, click this link and see if the recorder appears. Thanks, Rick ...Show All
Visual Studio Team System Web tests resulting in Internal Server error due to Invalid ViewState
I am seeing an odd problem when testing our web site. I have no problems navigating through our website manually from a web browser and experience no problems when creating a web test that navigates through our web site. But, when I run the web test I created, then I keep getting an "Internal Server Error" on the first server page transfer. When I look at our server logs it indicates that the problem is caused by an invalid ViewState. But, this problem only occurs when playing back (running) one of my web tests. The ViewState appears to be formatted correctly (it can be parsed) but the error message gives no further indic ...Show All
Visual Studio 2008 (Pre-release) Interoperability and utility
XML, to me, has always been about interoperability, and XQuery was going to bring the promise of XML to the database world. The promise that my code could work as easily with an Oracle database as it could with SQL Server -- the database would become a black box, and data would become universally accessible. Is LINQ going to bring about an end to that dream My question is born out of ignorance, because I don't understand LINQ well enough. What I'm hoping for is an answer XQuery will continue to flourish, the time of language lock-in has dissapeared forever. You can read the XLinq (Linq for XML) overview her ...Show All
Visual C++ Basic ifstream problem
Hi, one of my C++ aplication I use an ifstream to read a file. I used to open it like this : ifstream myfile("C:\\Documents and Settings\\devj4\\Desktop\\CH_12\\ColorLinks.ini"); And read a line like this: myfile >> line; And that worked fine. But now I want to use a string variable that contains the path an file name so I have a variable like this : string Path = "C:\\Documents and Settings\\devj4\\Desktop\\CH_12\\ColorLinks.ini"; So it contains "C:\Documents and Settings\devj4\Desktop\CH_12\ColorLinks.ini" And I open my ifstream like this: ifstream myfile(Path); or like this : myfile.open(Path); Bu ...Show All
Windows Forms OKCancel dialog
Hi I have a button that displays an msgbox, and in that msgbox the user can click "ok" or "cancel". My question is, how do I know if the user clicked ok or cancel. I need to take proper action depending on that choise. Regards M <strong>MessageBox.Show(...)</strong> results in a <strong>DialogResult</strong> which should hold & ...Show All
Visual Studio Express Editions Standard Library missing?
Hi, I've recently started a Univercity course and I am required to do a small amount of C++ programming such as make calculators etc. These are made in the command line part of the compiler (looks like DOS) and they run there too. My question is how do I get the standard header files in Microsoft Visual Studio 2005 Express Edition to work I mean like when using: #include <iostream> The <iostream> part appears in red and says that it can't find it. In Uni I am using the Microsoft Visual Studio.net (I think that's it's name) and it has a similar look to this one I have, but I can't seem to call upon the head ...Show All
Visual Studio Express Editions 2003 -> 2005
Does anybody know what happened to GCHandle.op_Explicit() in VS .Net 2005 C++ The documentation says it is a valid method in the GCHandle class, but the compiler and intellisense disagree. It works in VS .NET 2003 C++. Please follow your other thread at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=217479&SiteID=1 . Avoid posting the same question more than once. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System Team Project Creation Failed (Error Log attached..)
Hi there, While creating a Team Project, I am getting the following error: Initialization for plugin "Microsoft.Pcw.wss" failed with error: "Client found response content type of 'text/html', but expected 'text/xml'. Can anyone help on this Just to mention: I have already tested my setup with the required permission for SharePoint and SQL Reporting. And It is working as expected. Would appreciate your help. Thanks. Regards, Keyur. 05/12/2005 06:01:37.362 | Module: ELeadServiceMediator | URL for eLead web service retrieved as " http://rac154:8080/bisserver/EleadWebService.asmx " from the registration service | Completion time: 0 secon ...Show All
.NET Development .ASP web project deployment hlp needed
Background Info ::::::::::::::::::::::::::::::::::::::::::::::::: i am creating a depolyment installer for my webproject, my webproject contains asp, and aspx pages and i connect to access database is there a specific way i should be creating my installer because everything i create my installer and run it my asp page that checks a access database doesnt work my project works if i just simply copy the files on to the computer and set the permissions but once i run the installer even if set the permissions it still does'nt work. my aspx pages work but none of my asp pages work because those check to ensure that u ha ...Show All
Visual Studio Express Editions Speed of binary parsing
Hi, I'm just getting started with c#, but the IDE and .net have made it quite easy so far. What I'm playing with right now is MPEG2 transport stream parsing. This is what I have: FileStream fs = new FileStream("C:\\Documents and Settings\\Administrator\\Desktop\\New Folder\\nun.mpg", FileMode.Open, FileAccess.Read); FileStream fsw = new FileStream("parsed.mpg", FileMode.OpenOrCreate, FileAccess.Write); byte[] payload = new byte[184]; & ...Show All
