Mario Spanicciati's Q&A profile
.NET Development Failed to access IIS metabase
Getting the following when am trying to run a web client in Visual Studio 05. I have already set the permissions using "aspnet_regiis -ga aspnet" for the web service I created and it works fine. Switch projects to the client and i get this. Switch back to the web service and it works. Failed to access IIS metabase. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Any ideas Hi Mark, Thanks a lot.Ur suggestion was valuable. I ...Show All
Visual C# Convert to VB
how would this look in basic uint somevar = 100; int x &= ~(int)somevar; uint somevar = 100 ; converts to Dim somevar As Uint32 = 100 int x &= ~(int)somevar; converts to Dim x as Integer = CType(somevar, Integer) HTH ...Show All
Visual Studio Express Editions How do I clear a PictureBox to the System.Control color?
Visual Basic 2005 Express Edition: I am using System.Drawing.Printing to draw text in a PictureBox. I would like to clear it to the same background color as System.Control, but, the system colors are not available with the .Clear(Color.) command. ...Show All
Windows Forms ToolTip Control Related problem
Forms.ToolTip Control is not behaving properly. From MSDN " AutoPopDelay property enables you to shorten or lengthen the time that the tooltip window is displayed when the mouse pointer is over a control." But setting AutoPopDelay more than 5000 is not working at all.ToolTip is not hiding even after long time. Will somebody suggest what to do if I want to see tooltip for time larger than 5000. ...Show All
Visual Basic DataAdapter & query
kind of a 2 part question: I need to query on 3 parameters: i.e. Name AND <X AND >Y at one Table in the DataAdapter. In using the DataAdapter.SelectCommand approach I find that one can pass only 1 parameter. So I simply put 3 separate commands - - and this seems to work (when there is a match) though I haven't rigorously checked it. so part 1 - is this approach ok In this DB there can only result in 1 match or no match. part 2 where I'm stuck is that finding no match is a good thing for the user - but I get a ServerError message of Not non-Zero index....... I was hoping that by having a bound textbox/label to one fi ...Show All
Windows Forms Newbie to Windows Forms...
I would consider myself a high level programmer with VB.NET and ASP.NET, but I am new to the world of Windows Forms. Is there a book that offers great example examples on getting started I am having trouble with finding code examples that fit what I need. For instance: 1. Is there a Windows Forms equivalent for web.config Can I load an .XML  ...Show All
Windows Forms converting image in a clipboard to memory stream
suppose i have copied an image to clipboard and then pasted it onto a picturebox. using: IDataObject iDataObj=Clipboard.GetDataObject(); //determine the format of data if (iDataObj.GetDataPresent(DataFormats.Bitmap)) { pictureBox1.Image=(Image)iDataObj.GetData(DataFormats.Bitmap); } in order to save this image to database. i would then have to convert the contnts of the clipboard to a memory stream object and then serialize to byte[] object. how do we do that. i figured it ou. the problem was with the memory stream. the problem was created when saving multiple images to the clipboard and the memory stream was filled with m ...Show All
Windows Forms DataGridView - How do I STOP sorting it?
Hi, I have a DataGridView that I sort using the DataGridView.Sort(myColumn, ListSortDirection.Ascending) method. How do I tell the DataGridView to STOP sorting I'm trying to stop it from automatically sorting (moving) new rows as they are added. I want new rows to stay at the bottom of the DataGridView until the user has finished editing, then I want the DataGridView to sort again. I'm using VS2005 Beta 2. Many thanks. Ben S. IF ANY BODY KNOWS HOW TO COMMENT THE SORTING OPTION IN MS ACCESS PLEASE REPLY TO THIS MAIL. AFTER ADDING SOMETHING IN TABLE IF I REOPEN THE TABLE IT IS ...Show All
.NET Development How to install SQL Server Express as a ClickOnce prerequisite?
Hi, Besides just checking it in the prerequisites list, what else I have to do to properly install the SQL server. I have somehow : - specify instance name - set authenfication to "SQL" - setup users - configure network protocols - etc I have found information how to configure the server through command line, etc. But can not find anything how to do it during ClickOnce installation. Thanks PS. I already have asked the question in the ClickOnce forum.Seems like nobody there knows the answer. If you read the article (I did, several times) you will find out what it does not p ...Show All
SQL Server XML Data Sources Extension
Hello, My query string, <Query> <SoapAction>...</SoapAction> </Query> calls a webservice method that returns a dataset with the following xml representation: <ArtworkDataSet> <ArtworkDataTable> <Season></Season> <Name></Name> <ImageName></ImageName> </ArtworkDataTable> </ArtworkDataSet> The problem is, if any of the elements do not return with a value, then that element does not display. For instance, if the result set is the following, where ImageName is empty, ...Show All
.NET Development Get connection string from app.config file
How do i read my connection string from app.config file I also know that connection string is saved in settings.settings, but i don't know how to get value from there either (I found info about this only for vb, not for c#) Here is the app.config file: < xml version="1.0" encoding="utf-8" > <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section n ...Show All
Visual C++ Runtime Error! Program IExplore.exe - Answer to your Problems
Is this the message you get Runtime Error! Program IExplore.exe The application has requested the runtime to terminate it in an unusual way. Screen Shot: http://www.geocities.com/playpolly/runtime.gif If so, well Read Below. Short Form (for Experts only): Delete the file Vgraph.dll from \WINDOWS\ OR any other place resident Long Form: (Estimated Burden: 1-5 Minutes) STEP 1: DELETE ALL YOUR INTERNET EXPLORER (IE) TEMP FILES AND COOKIES BEFORE YOU CONTINUE. METHOD: If your IE is hung up: Click on Start/Settings/Control Panel/Internet Options/# If your IE is not hung up: Click on: TOOLS/INTERNET OPT ...Show All
SQL Server Is there a property in the report designer to set a report, datasource, etc to be hidden in report manager?
Is there a property you can set in report designer to make a report or datasource hidden in report manager I am making a rss script to deploy all datasources and reports, but some I want hidden. If you can't set it in report designer is there a way to set the property in the rss script for the reports and datasources Thanks. There is no property that can be set from report designer. You can hide report or datasource by setting property "Hidden" to true Dim Properties() As Property = New Property(0) {} Dim hidden as new Property   ...Show All
SQL Server Problem to install SQL Server 2005 CTP June edition...
Hi When I tried to install, I kept getting the following problem with System Configuration Check: A previous installation required a reboot of the machine for changes to take effect. To proceed, restart your computer and then run SQL Server Setup again. I've rebooted many times (with AntiVirus turned off) and yet the above problem remains. Anyone has a solution to the above problem Thanks. Rgds OngCF ACtually worked it out and if anyone comes across this then: 1. Hit Start > Run type SQLServerManager.msc or if you have the shortcut on your start menu feel free to use that. 2. Expand SQL Native Client Conf ...Show All
Visual FoxPro Context sensitive help in VFP
Hi! I have a little problem with context sensitive help. I have a .hlp file(SET HELP TO MyHelp.hlp) and I assigned context Id's for calling the file. But it doesn't work. But if I set WhatsThisHelp Property to true and assign a WhatsThisHelpId all works fine, as I want it to (pop-ups appear when I press F1). I wonder what the problem is. Thanks ...Show All
