Greg Y's Q&A profile
SQL Server how to build a sql server instance in the network using sql express?
Hi, how to build a sql server instance in the network using sql express thank you. Have a look at the install documentation and books only for the setup command line switches, you should be able to get the data there to set up the instance, Then just do the install using the net setup config, you may have to add a setup.ini file to the same directory as the installer. (At least that is how we did it with MSDE). ...Show All
.NET Development Can not publish ASP.NET pages in IIS.
For some reson I cant deploy my webpages in IIS. I have been using VS.NET 2005 to develop some small assignments and using the internal webserver in 2005 to view them. But now I wanted to use some of my webservices remotely and I put them in my wwwroot. The errors I get is: Either when going to the webservice with my browser: -------------------------------------------------------------------------- XML-tolkningsfel: ej valformat (XML-interpretationfault: not well formed) Adress: http://localhost/affarslabben/ (Address: *) Radnummer 1, Kolumn 2: (Row 1, Column 1) <%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_gkpoqx7k" %> -^ ---------------------------------------------------- ...Show All
Visual C# GetMethods(BindingFlags.Public) not returning anything
I'm cross-posting because I don't think the language used matters. I assume people in this forum has more experience in assembly remoting. My brain is now "tapioca." This used to work, I can't figure out why it suddenly stopped working. VS2003 I'm using a LoadFrom(assembly) to get an instance of a form. asmExternal = System.Reflection.Assembly.LoadFrom( "Interface.dll" ) objClass = Nothing objClass = asmExternal.CreateInstance(ModuleName) Dim TypeInfo As Type = objClass.GetType When I use this it returns valid values. Dim methodInfo() As MethodInfo = TypeInfo.GetMethods() BUT Dim methodInfo() As MethodInfo = TypeInfo.GetMethods( BindingFlags.Publi ...Show All
Visual Studio 2008 (Pre-release) The image decoder cannot decode the image
I am using this code BitmapImage bitmap = new BitmapImage ( new Uri (uri)); img.SetValue( Image .SourceProperty, bitmap.Clone()); and on some images I get the error: "The image decoder cannot decode the image" Now whats wierd is that if I place breakpoint the error do not occur Maybe it is because some of the files are JPG's in windows forms I used the Image object. Weel seems to be the clone. as I delete the clone part it seems to work. Itzik ...Show All
.NET Development Retreive incoming IP Addresses?
Is it possible to get the incoming IP Addresses and display them in a listview Thanks, Loopback address prefix would only give you connections made to your machine to the loopback address i.e. connections from your machine to your machine. This would not help you. You dont need a web server, just a way to monitor traffic and connections to an existing web server. ...Show All
Visual Studio Team System Process Template change
I want to remove a few workitems I do not use in my process template. For example. I have no reason to create a "risk" workitem. I know that if you alter this xml. And remove the entries for the workitemtype that you don't want created it will work fine for any new project created using this template. (see xml below). However I don't want to create a new project, we only use one project. Is there a way I can remove the ability to create certain workitem, ie "risk" in an existing project It should no longer appear when you right click on workitems and choose "Add work item" from ProcessTemplate.xml <task id="WITs" name="WorkItemType definitions" plugin="Microsoft.Pro ...Show All
Software Development for Windows Vista In July CTP, using StateMachineWorkflowInstance to obtain CurrentState freezes workflows in that State
Dear all, I have a working StateMachineWorkflow hosted under asp.net 2.0. I have written a simple routine (shown below) to interrogate the current state of a workflowinstance: public string WfCurrentStateDescription(string WorkflowInstanceId) { // Get the workflowRuntime which was started in global.asax WorkflowRuntime wfRuntime = (WorkflowRuntime)Application[WorkflowRuntimeKey]; StateMachineWorkflowInstance wfInst = new StateMachineWorkflowInstance(wfRuntime, new Guid(WorkflowInstanceId)); return wfInst.CurrentState.Description; } I find that, once I have called this on a workflowinstance, that instance gets "stuck" in the current state and never transitions to the next state, even though code appears to get c ...Show All
Windows Forms Events and Delegates in Forms
I have a main form and a child form which I communicate through public methods. For example: frmMain ... frmChild frm = new frmChild(); ... frm.MoveNext(); The child window will obviously have a public method MoveNext. frmChild also implements an Interface class. What I now want to do is when data in the child window is saved to communicate this back to the parent, but I want to use an event. I can get events working and hooked-up in classes but I can't get them to work between forms, except when I am hooking up to form events like: parentForm.FormClosed += new Forms.FormClosedEventHandler(ParentForm_FormClosed); I want to do the above but with my own event in the parent called DataSaved. How can I do this ...Show All
Visual Studio Express Editions Can I use VBE 2005 classes in Excel 2003 VBA code?
I have a class library that I'm developing in Visual Basic Express 2005. I can use the classes in other projects in VBE, but I would also like to use them in VBA code in Excel 2003 (i.e. in the VBA code I want to be able to create instances of the classes from the class library). If that is possible, can someone please give me step by step instructions Yes, that seems to be the same error. Make sure that you sign the assembly with a strong name, and use the /codebase option when registering. If that still doesn't work, you could try adding the assembly to the GAC using the gacutil.exe tool. Blackwood, depending on how you intend to use/deploy your class, you should also consi ...Show All
.NET Development Programmatically determine calling method at execution time?
Without using StackFrame, how might one go about determining the method that called the current method I need this for logging but do not want to use StackFrame since it has difficulties outside of IDE environment. Looked and looked - no can find. For example, method A and B each call method C. From method C, I want to be able to log who the parent method was that called me. Thanks. Thanks guys - nothing like one more 2 by 4 across the head to get me thinking straight. Yes, indeed Nobugz's code does work, inside & outside the IDE. I guess I will have to parse the StackTrace.ToString to get just the file name and file line number, unless you know a better way. Thanks again for not giving up o ...Show All
Visual Studio Team System Email notifications for other bugs than those "assigned to" me
Hello, Is there an easy possibility to make TeamSystem send out Projecty Alert emails also for bugs that I found, or for other fields in which my user name has been entered (we have changed our bug.xml template quite a lot) Best regards, Martin See here a GUI tool to create such complex evening subscription: http://blogs.msdn.com/narend/archive/2006/07/26/679440.aspx . Note that not all fields are available to create filter on, so if you need to filter on more fields, you would have to create a webservice as Luis mentioned. ...Show All
Smart Device Development Beta of Microsoft Certification Exam 70-540
Microsoft Certification Exam 70-540 is available in Beta form right now! This is a Technology Specialist exam for application developers in the mobility space. The Preparation Guide is available for the Exam at: http://www.microsoft.com/learning/exams/70-540.mspx . To register visit one of our independent testing providers: * Thomson Prometric: http://www.prometric.com/ContactUs/T...rs/default.htm * Pearson VUE: http://www.vue.com/ms/ Please use the following promotional codes when registering: Exam 71-540: BTA540 Best of luck! Howard Dierking Product Planner Developer and Database Certifications Microsoft Corporation Tryst wrote: Isnt Sql 2005 Mobile Edition trhe same as SQL ...Show All
SQL Server NOT FOR REPLICATION Problem
Hi all, I have encountered the following problem with SQL Server 2005: I am trying to insert a row inside a table whose identity column is an autoincrement PK. I cannot insert a row into the table from my ASP page and get the following error: Explicit value must be specified for identity column in table 'Task' either when IDENTITY_INSERT is set to ON or when a replication user is inserting into a NOT FOR REPLICATION identity column. I figured out that I must set the NOT FOR REPLICATION property to 'NO' and then it works. However, when I create a merge replication for the table (I am synchronising with SQL SERVER CE), the value of the NOT FOR REPLICATION property is automatically set back to 'YES' and I am not allowed to change ...Show All
SQL Server how can i use comma like a decimal separator in Sql Server Express?
I need HELP "update product set price='1,99' where cod='001'" I need COMMA... not DOT In oracle i use "alter session set language='Brazil'"... but... in SQL SERVER ...Show All
SQL Server Pass parameters to complex procedure.
Hello, I have this Stored procedure, a very complex one, and it works fine with the parameters wrote on it. But when I try to change the number to variables @param1, I got errors, can somebody tell me how to replace this please. DECLARE @return_value int, @lvaIndicador varchar(4000), @ecuacion varchar(4000), @numerador int, @denominador int, @lvaIndicador2 varchar(4000), @ecuacion2 varchar(4000), @numerador2 int, @denominador2 int, @porcentajeCumple numeric EXEC @return_value = [dbo].[SP_CUMPLENCONNIVEL] @nmtipoCompetencia = N'12,13,14', @nmdivisioncorporativa = N'18,19,20', @nmciclo = 9, @nmcicloCompara = 12, @nmempresa = 72, @nmcargo = N'20', @lvaIndicador = @lvaIndicador OUTPUT, @ecuacion = @ecuacion OUTPUT, ...Show All
