Damian Tran's Q&A profile
.NET Development System.AccessViolationException GDI+ System.Drawing
We are getting an access violation error when attempting to utilize the Frameworks GDI+ utilities. We are drawing an image that is outputed as a jpg file. Any help is appreciated. The stack trace is below. I can't figure out what to do with this. Is this a problem that microsoft should know about I couldn't find this error anywhere on MSDN, where it occurs in System.Drawing.dll. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Drawing.SafeNativeMethods.Gdip.GdipCreateSolidFill(Int32 color, IntPtr& brush) at System.Drawing.SolidBrush..ctor(Color color) at Hansen.UI.Web.Controls.ChartImage..ctor() in C:\\ ...Show All
Internet Explorer Development Simple Drop-Down Box Query
Hello all, I had seen a "heading" effect in a dropdown box somewhere before, but can't find it now. Its something like this: http://www.b3ta.cr3ation.co.uk/data/JPG/dropdown.JPG (heading1 in the picture) where you can create a heading inside a dropdown box with just a simple html tag, if I remeber correctly. I cant find the code for it now. What html tag or code should I use to display that type of a heading inside a dropdown box thanks in advance VatsaL I found it. It was the <optgrout> tag http://www.w3schools.com/tags/tag_optgroup.asp Thanks for directing me there. VatsaL ...Show All
Visual Studio Solution Events does not trigger properly
Hi, I tried to capture 'solution open' event and the 'solution before close' event using the Applition Object Model. It did not work when I first connect the Add-in and then open the solution, but it works fine when I first open the solution and then connect the Add-In. I went through the Connect.cs but I could not find any reason for this. Any idea why is this happening Best regards, Imesh Hi, Thanks for your reply. Actually I'm using class variables. As I mentioned earlier it works fine when I first open the solution then connect the Add-in from the Add-in manager but it does not work at all if i first connect the Add-in and then open the solution. <inside a toolbox window constucto ...Show All
SQL Server Windows 2003 SP1 Comaptibility with SQL Server 2000 (SP3)
Hello there, We got SQL Server 2000 Standard Edition SP3 running on Windows 2003 server. Now, we would like to apply windows 2003 SP1 to the Operating System. We are concerned that whether windows 2003 SP1 is compatible with SQL server 2000 (SP3) I was looking at the application comaptibility chart for Windows 2003 SP1.Among them SQL Server 2000 Enterprise Edition Service Pack 3a was listed but not the Standard Edition. My Question - Is windows 2003 server SP1 is compatible with SQL Server 2000 (SP3) Thanks ...Show All
Visual C# ProgressBar Dilemma
My user wishes to see visual proof that their app is processing files. I've never used a ProgressBar before and I'm trying to get a test to work before I 'muddy-up' my production app. I've gotten to the point that I can get the Value to display as each record in a file is read; however, when it gets to the final record it displays the following exception: Value of '1894' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'. Parameter name: Value I know what the problem is (there's 1893 records in my test file), I just don't know how to fix it. I've tried to set the record count to it's value +1 ( this . thisProgressBar . Maximum = Convert . ToInt32 ( m_strInputFile . Length / 1024 + 1 ); ), but still g ...Show All
Visual Studio 2008 (Pre-release) svcUtil / WSDL exposing private variables instead of public methods??
Hello all, I've been experimenting with WCF service exposing my a facade & common layer (that sit ahead of business / dal) but am having a strange issue with WSDL metadata generated by svcUtil that I hope you can point me in the right direction with.: For testing, my simple service is comprised of a 'common' layer that has all of my standard structures by which I will communicate data with across the layers (simple objects that expose public properties like [ID] and [CustomerName] which are mapped with get / set methods to private variables). For simplicity, all of the private variable names are prefixed with "_" and all public properties are generally the same name as the variable without the leading underscore. Th ...Show All
Visual Studio 2008 (Pre-release) role-security when the message reach the server
Hello everyone from Spain, I want to validate if an user can call a service or not, my idea is to use a dll that could be used by other projects. That dll should expose a method, something like HasPermision(userID). I don't want to use that dll into each procedure, i want to make a new layer and preprocess user info and give an exception or leave the call go into the service. Something similar to zip and unzip soap preprocess. Well, info about indigo is quite dispersed and i would like if someone can point me to any example or info. Thanks so much Hello: A good place to start would be the "Authorization Policy Sample" on the SDK and the presentation at http://wcf.netfx3.com/files/folders/teched_2006_chalk_talks/ent ...Show All
.NET Development Clarification needed on MembershipProvider
Hi, Can I use ActiveDirectoryMembershipProvider to authenticate the users on OpenLdap(one type of Authentication server like Active Directory). Regards, Suresh S No - sorry. The AD provider was only tested against Active Directory. Internally it also makes some calls that are AD specific. ...Show All
Visual Studio 2008 (Pre-release) Two questions about IQueryable<T> - Expression{get;} and CS0310
Dear group - I am prototyping a Linq provider for Mysql and have some questions. 1) The first point of entry on my IQueryable implementation is "Expression {get; }". I saw in Hartmut Maennel 's Linq provider for RDF that he returns a ConstExpression. I copied that, and it works. But what is the meaning of that Is that documented anywhere 2). My second question is more of a basic question about generics. I have my generic class, MySqlProvider<T>, and it calls into other generic classes. I get error CS0310 because the outer class can be anything, and one of the inner generic classes calls 'new()'. Code snippet below. The question - how can I cast for a 'newable' class to prevent CS0310 Thanks, George public class MysqlLinqP ...Show All
SQL Server MSDB database grows too much even though its empty.
In my SQL Server 2000 msdb database I have several DTS and a few jobs. I also do backups daily. All this should make the msdb grow but I've removed most of the logs and histories and, still, the database is almost 1Gb big. The log file is almost at 0. It is the data file that ocupies the whole size. I'm thinking it must be some kind of corruption of a table so I ran dbcc checkdb, checktable, cleantable, checkalloc, dbreindex and indexdefrag. Nothing seems to work in order to make it smaller. Any ideas Thanks Jag, I did that, but anyway, there's no available space to shrink the database. Although there is almost no data in the database it reports to be full and it won't shrink any smaller than the siz ...Show All
Visual Studio Team System Few newbie questions
Hello All, I am newbie in Team Foundation Server I have troubles: - I have mistake in specifying folders hierarchy and want to move some files to another folders. - I want to remap sources to another local directory on my HD. I can’t do it in VS2005 because I can’t find out where I can set working folder for project. Rename or Move doesn’t work because I don’t have local folders with new names. Thank You, Dmitry You can move files from the Source control explorer.right click the file and select the "move" option. You can also rename the directories in Source. Once you have the structure complete and correct, then you can edit the mappings for you local workspace and get the ...Show All
.NET Development ResolveEntity for File Entities
So the gist of what I want to do is copy an xml file like: < xml version="1.0" encoding="utf-8" > <!DOCTYPE chart[ <!ENTITY XAxis SYSTEM "XAxis.xml"> ]> <chart> <chart_data> <row> <null /> &XAxis; </row> </chart_data> </chart> The copyed file would contain: < xml version="1.0" encoding="utf-8" > <chart> <chart_data> <row> <null /> <number>1</number> </row> </chart_data> </chart> After looking around the web and experimenting this is what I have: XmlValidatingReader reader = new XmlValidatingReader(new XmlTextReader(@"")); XmlTextWrite ...Show All
Visual Studio 2008 (Pre-release) Cannot access a disposed object. Object name: 'Transaction'
Hi, I have created a website using blinq. when i tried to create a new record in my database i got the following error: "The partner transaction manager has disabled its support for remote/network transactions the partner transaction manager has disabled its support for remote/network transactions ” I applied the solution provided on the link: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=230390&SiteID=1 and after that this problem resolved and now I am getting the following error: “Cannot access a disposed object. Object name: 'Transaction'” Any idea Thanks, Hello there, Actually I got the same problem and I found a work around this. I know my so ...Show All
Visual Studio Express Editions Depth of Features
I am going through a book on VB that uses visual studio 2003, using visual basic 2005 express edition. But it seems that in express edtion the user is unable to create a solution within which multiple projects can reside. There is no option in templates to create a solution in express edition, is this right or am I doing something wrong TIA You cannot create a solution from scratch (I believe), but you can add multiple projects and 'create' a solution. you can see some additional overall differences between versions (Express, Standard, Pro, etc.) here: http://msdn.microsoft.com/vstudio/products/compare/default.aspx ...Show All
.NET Development how to download site in a temp folder
how can I download some ages of a site or the site itself -if avilable - in a temp folder or in a database , using C# Hi, you should have a look at the HttpWebRequest class. That class allows you to download the content of a web site to a stream and store that stream in a string or to a database or file. ...Show All
