SamuraiDan's Q&A profile
Visual Basic Doubts in internationalization of website done in VB.net
Internationlization problem Error with neutral culture I am getting the default browser language like this Dim strLanguage As String strLanguage = Request.UserLanguages(0) Thread.CurrentThread.CurrentCulture = New CultureInfo(strLanguage) Thread.CurrentThread.CurrentUICulture = New CultureInfo(strLanguage) Dim c As CultureInfo = New CultureInfo(strLanguage) Thread.CurrentThread.CurrentCulture = c Thread.CurrentThread.CurrentUICulture = c So when i select a neutral culture like "sv" for swedish it displays the following error.I am doin in .Net2003.Can I get a solution( other than choosing a language like sv-fr.....) ...Show All
Visual Studio Team System System.InvalidOperationException when calling TeamFoundationServer.GetService()
After working fine all day, calling this: Client. WorkItemStore store = server.GetService( typeof (Client. WorkItemStore )) as Client. WorkItemStore ; causes the following error: Please Advise, Michael S. Scherotter Business Solutions Architect Mindjet Corporation Error Message: MindManager.exe Error: 0 : System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS0103: The name 'WriteElementSt ingRaw' does not exist in the current context Stack Trace: at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, Stri ...Show All
Internet Explorer Development how do I make it work
I bought a copy of software that windows will not validate please any ideas how to resolve xp pro r o32-0202-5263 I bought it through a mlv but get no help through microsoft why I am losing money help ...Show All
Visual Studio Team System Upgrade problem : "TFS sql server exists and their schema doesn't match..."
Hi upon trying to upgrade to RC I encountered a problem : "TFS sql server exists and their schema doesn't match the version expected by setup" how do I workaround it all the upgrade steps went fine until this one.... 10x, guy Yes, I'm using those instructions and following the steps from Upgrading from Team Foundation Server Beta 3 Refresh to the Release to Manufacturing Version (RTM) of Team Foundation Server Document. I don't see the steps involving database upgrade. Please let me know which step you are talking about. Thanks, ...Show All
Visual Studio Team System Cannot open source code in Visual Studio in Windows Vista x64
When I click on Location link in a message to open the source code in Visual Studio (having the default “Launch in Visual Studio” selected in Settings) in Windows Vista (64-bit), it does not work, saying “Could not start Microsoft Visual Studio. Try specifying an alternate source code editor in Application Settings.” I tried to watch the process using SysInternals’ Process Monitor, and the only suspicious thing I have seen is: RegOpenKey HKCU\Software\Classes\Wow6432Node\CLSID\{BA018599-1DB3-44F9-83B4-461454C84BF8}\InprocServer32 NAME NOT FOUND Desired Access: Read RegOpenKey HKCR\Wow6432Node\CLSID\{BA018599-1DB3-44F9-83B4-461454C84BF8}\InprocServer32 NAME NOT FOUND Desired Access: Read (The keys really are not present in registry, t ...Show All
Visual FoxPro Same Report...Different Printers?
Hi all, What may be causing the same report file to print differently on different printers We are developing the reports in VFP9 and we make sure that tag and tag2 fields are emptied before compiling the exe. The differences are various like: 1. Difference in left/top margin. 2. Extra blank spaces left out in the middle of the report on certain printers. 3. Shift in borders printed along the edge of the report. The printers in question are HP LaserJet 4000, Brother MFC 3900, ADOBE PDF, Microsoft Fax/Document Image Writer. The latter 2 always leave a very small left margin. All thoughts are appreciated. Bini Different printers have different settings. Since you are not specifying anything in the report, you are getting whatever the de ...Show All
.NET Development How do I change the location of "|DataDirectory|"?
Background: My web project uses a MS Access database. The databse is located in the "App_Data" folder. The site is being hosted by a hosting company. Reading from the database has worked fine. While on the web site, when I attempted to write to the database I received permission errors (the writes work fine on my development PC). Using a tool provided by my hosting company I created a directory (and DSN) called "access_db" that is supposed to have folder and file permissions to allow writes. Question: How do I move my database from the "App_Data" folder to the new "access_db" My current connection string in web.config: <add name="MyConnection" connection ...Show All
Software Development for Windows Vista TypeFilterProviderAttribute dose not works...
Hi all. my custom activity has a type property defined below sample: i use TypeBrowserEditor to edit , and use TypeFilterProviderAttribute to filter Type browser. but it does not work. public static readonly DependencyProperty DataFormTypeProperty = DependencyProperty.Register("DataFormType", typeof(Type), typeof(WaitForDataActivity), new PropertyMetadata(null, DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) })); [Editor(typeof(TypeBrowserEditor),typeof(UITypeEditor))] [TypeFilterProviderAttribute(typeof(WorkItemClientTypeFilter))] [RefreshPropertiesAttribute(RefreshProperties.All)] [DefaultValue((string) null)] public virtual Type Dat ...Show All
Visual Studio Express Editions Problems Running Made Programs
Ok, I made my own little, "test" program, and when I tried to debug it, it debugged the file, but it didn't bring up my work. All it did was bring up a Command Prompt screen for a second, and then it closed the Command Prompt really fast. Any idea what is going on with this sorry Alex, I can't catch it. If you are deving a console app, then it is normal to show you a command prompt instead of the form. Are you deving a console one or windows form app What is the scenario at all Thanks ...Show All
Visual J# error VJS1581: Internal Compiler Error
Hi; On one system here (and only 1 system), when we build two of our J# projects (the rest build fine), we get the following problems: ... C:\src\WindwardReports\DotNetEngine\JFreeChart\Properties\AssemblyInfo.jsl(1,1): error VJS1581: Internal Compiler Error: f:\rtm\vjsharp\sdk\bjdev\compiler\vjsc\codegen\emitter.cpp Compile complete -- 1 errors, 5 warnings ... C:\src\WindwardReports\DotNetEngine\WindwardReports\Properties\AssemblyInfo.jsl(1,1): error VJS1581: Internal Compiler Error: f:\rtm\vjsharp\sdk\bjdev\compiler\vjsc\codegen\emitter.cpp Compile complete -- 1 errors, 0 warnings ... ========== Rebuild All: 12 succeeded, 0 failed, 0 skipped ========== So there are three major problems above. First/second - two projects don't build ...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
SQL Server Configuration File not always used
I have a simple SSIS package (stored in the file system) that gets a file path from a configuration file. The configuration type is an indirect XML configuration file that uses an environment variable to store the location of the configuration file. When I run the package using dtexecui, or just dtexec from a command line, the package successfully picks up the file path from the configuration file (for verification I am writing out the variable containing the path to the log file). However when I run the package from a SQL Agent job it appears that the configuration file is not being used (the path is set to the same dummy path that I used during development). I have tried running the job as both a CmdExec and an Integrati ...Show All
Visual Studio Team System Bug reporting in TFS via web access and snapshop functionality?
Hello I have been looking for a solution for external users to report defect in TFS. I have seen teamplain who can provide us with a web interface to report bugs, and it looks very nice. But it's missing the important camera snapshot functionality that we today have in Test Director. It there any other solutions can provide this functionality I would like the user take a snaphop of the screen that will be attached as a file to the bug in. There is also a utility to syncronize test director and TFS, but I think it can be better to only use TFS for our needs. Ok, thank you. I'm aware of the Bug Snapper but for our users (not all with so much IT knowledge) it would be better if they could use a web solutio ...Show All
Windows Forms This BackgroundWorker is currently busy and cannot run multiple tasks concurrently.
I have such a message like above when I try to run Background worker again after doing cancel. I though if it was cancelled (CancellationPending == true) - I can run it again but not! This is a part if code. I guess it is connected with race condition but I do not know how to solve it :-( private void btnStart_Click( object sender, EventArgs e) { backgroundWorker1.RunWorkerAsync(); } private void Run( BackgroundWorker worker, DoWorkEventArgs e) { if (worker.CancellationPending) { e.Cancel = true ; } else { SomeTimeCounsumingMethod(); } } private void backgroundWorker1_DoWork( object sender, DoWorkEventArgs e) { BackgroundWorker worker = sende ...Show All
Visual Basic Limits on Memory Use?
Hi all, I was testing the VB2005 Express and decided to create a large array in the IDE. My 32bit XP Pro machine has 3.5GB available and I thought I'd check to see how much I could use with VB. I understand that there is a 2GB process limit, but I thought I just check that out. My code: Class Form1 Private Sub CreateArrayToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateDataTableToolStripMenuItem.Click Dim bigarray(1000000, 250) As Single End Sub Private Sub ExitToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click End End Sub Private Sub Form1_L ...Show All
