Predator14567's Q&A profile
Visual Basic cannot access http://localhost
Dear all, I'm having an error using visual studio 2003 when creating web application. the web server reported the following error when attempting to create or open the web project located at the following url: " Http//localhost/wepapplication1" HTTP/1.1 500 server error I have installed .net 2003 after that IIS on windows XP prof. I found that i cannot access my http://localhost/ , how to solve this issue and how to access local host Thanks and regards, Hello- I have isntalled IIS, VS2003. When I click New Project, I get the following error: The Web server reported the following error when attempting to create or open the Web project located at the following UTL: http:/ ...Show All
SQL Server Udding Users and Groups
Hi, I am using Sql Server and excel. I create an excel report using pivot tables and the likes that is connected to a sql database and queries three views. It works fine for me because I have access to the DB. But I want everyone in my office to beable to read this excel report. When another user tries to access it, it doesn;t allow them to connect to the DB through ODBC. I was wondering how to add a group, from active directory called Everyone, to my SQL server so that everyone in my office can read this EXCEL report. I can add a user but not a group. I was given the task of managing the DB as our IT guy left and I really was left to the wolves as this isn't really my area of expertise... redhanz ...Show All
.NET Development Using XPath for Identity Constraint of Elements and Attributes
Hi to all, I have an XML schema document that looks like this : < xml version="1.0" > <xs:schema id="Employees" targetNamespace=" http://tempuri.org/Employee.xsd " xmlns:mstns=" http://tempuri.org/Employee.xsd " xmlns=" http://tempuri.org/Employee.xsd " xmlns:xs=" http://www.w3.org/2001/XMLSchema " xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified"> <xs:element name="Employees" msdata:IsDataSet="true" msdata:EnforceConstraints="False"> <xs:complexType> <xs:choice maxOccurs="unbounded"> <xs:element name="Emp ...Show All
Visual Basic text box filtering
hi, i am new to the programming world and getting very lost. i have a assignment to complete for college, i need to filter to data in my data grid view using a textbox.text, can someone please point me in the direction of a simple explaination ofhow to do this, i am using Visual Studios Team suite and SQL server 2005. one other question once the information has been filtered i would like the user to be able to open the record (by click event) in a new window, i have got my two windows form 1 has my search, (textbox1, searchbtn, datagrid view) and form 2 has my details view, again can someone please point me in the right direction of a simple explaination (preferable with code or expamples). thanks for all your help. rob ...Show All
Gadgets Get the mouse position
Hello, I'm not familiar with javascript, and I'd liked to get the position of my cursor, and to display it in my gadget. My goal is to create a gadget that calculates the distance traversed by your mouse ... Thanks for your responses. You'll only be able to capture the mouse movement when it's inside your Gadget: First you want to trigger a function when the mouse moves and within that function grab the mouse coordinates: document.onmousemove=mouseMoved; function mouseMoved() { mouseXpos = event.clientX; mouseYpos = event.clientY; } clientX, clientY will return the mouse pos relative to your Gadget window. See the MSDN article on the onmousemove event for more options. ...Show All
Visual C# Is it safe to remove a delegate inside its delegated method?
This sounds a bit strange but it's a real world problem. Say I have an event Disposing and a method F() handles that event. obj.Disposing += new EventHandler(F); ... void F() { ... obj.Disposing -= new EventHandler(F); } Here's the problem, F() is going to remove itself from the invocation list of the Disposing event right at the time it's invoked. I don't find a statement for this in the spec. So could anybody tell whether this is designed to be safe or not guaranteed Thanks in advance. I think I haven't made myself clear. sorry. The problem I'm thinking is like this: Say I have an event whose invocation list contains three functions {E(), F(), G()}. And the invocation of the event shoul ...Show All
.NET Development Unable to convert input xml file content to a DataSet from DataSet Designer
First of all, here's the error: Error 1 Unable to convert input xml file content to a DataSet. 0 is not a valid value for Int32. Input string was not in a correct format. C:\Documents and Settings\dolan\My Documents\Visual Studio 2005\WebSites\ReproProject\App_Code\DataSet1.xsd 1 Second: I didn't do anything other than drag a table from server explorer into the designer. Immediately I save it and try to build the website as a test and get the error displayed above. The server is a SQL 2000 server, because I was hoping I could use ASP.NET 2.0 to replace our production site without having to bring up a SQL 2005 server. I'm not sure if that affects anything or not, but it's not working, for sure. I also see a bunch of attributes that are ...Show All
Visual Studio Team System BEST PRACTICES: Importing Common Libraries
OK, This is something that has bugged me for a while. I'm hoping someone with a little insight might be able to solve this one for me. Let's say I have two solutions. One is a "common base framework" of often-used classes and utilities. The other is a current project I'm working on that uses this framework. Now here's the stickler. The common framework is on one TFS server, and the current project is on another server altogether. I want the current project to use the latest bits, but I don't want to copy the source and include it into my current project. Then I'll have two codebases to maintain. I wish there was some sort of "Partial Solutions" that TFS could incorporate that would allow me to pick and ch ...Show All
SQL Server need help to make a SP
Hello everyone,i need a little bit help, here is my query that returns the record but based on Hours of each day,(e.g in todays date how many pin sales at different hours). Now i want to make a new SP for Chart, in this SP i give the Date parameter, it returns how many pins sales in different hours. Output shoule be come in this format: 26/1/2007 11:00:00.000 26/1/2007 12:00:00.000 26/1/2007 13:00:00.000 26/1/2007 14:00.0 2 10 30 0........... or 11 hours 12 hours 13 hours 14 hours 15 hours 16 hours ............. 2 10 30 0 57 0............. plz help me and check my query and format this with according to my output. Thanx in Advance. ...Show All
SQL Server Slowly Changing Dimension Historical Attribute causeing same row to be reinserted
I have a Slowly changing dimension that I am using to populate a dimension table. My problem is this when I run the package and any of the fields are marked as Historical Attributes it will add an additional row regardless of the fact that the incoming data and the data in the warehouse match exactly. I've tried several things to fix this problem but so far none of them have worked. Some of the things I have tried that haven’t worked are to match all the data types (which I have to do anyways) I've tried trimming the strings, I've also tried adding just one column I am using a data conversion to convert them from varchar (the source datatype) to nvarchar(the warehouse datatype) I'm at a dead end here and don't know ...Show All
Visual Basic Problem with Getfiles and Login Information on the source pc.
I am using the following code to get a list of filenames from a directory on a pc on our network. Dim query As String Dim x As New System.IO.DirectoryInfo( "\\shipping\ShippingC\KEWILL\CSWIN\ARCHIVE" ) 'Dim x As New System.IO.DirectoryInfo("C:\KEWILL\CSWIN\ARCHIVE") Dim s() As System.IO.FileInfo = x.GetFiles( "*.cs" ) Dim a As New ArrayList Dim tn As TreeNode tn = New TreeNode( "Dayfiles" ) TreeView1.Nodes.Add(tn.Clone) For Each dayfile As System.IO.FileInfo In s tn = New TreeNode(dayfile.ToString) 'tn.Nodes.Add(dayfile.ToString) TreeView1.Nodes.Add(tn.Clone) Next Everything works fine as long as I log into the p ...Show All
.NET Development i need help
i have 2 tables in my database. i want to select data from one table and insert into the other. i have written my query using the the table adapter for that table. say i have a table named products and another named sales. using the salestableadapter i wrote and sql select statement to select data from product table and insert to the sales table like INSERT INTO Sales (productName, unitPrice ) SELECT productName, unitPrice FROM Products WHERE (ProductName = ) where productName is a parameter ie the product name the user will enter. this query is named InsertItem(ProductName). I then add the 2 tables on my form and create a textbox named productNameTextBox and a button named addButton. on my addButtonClick_Event i ...Show All
SQL Server define row delimiter to fixed width files
hi all, is there a way to define a row delimiter to fixed width files such as this one: 1122333 4455666 7788999 in this file i have 3 columns that are fixed (col1.width = 2, col2.width = 2, col3.width = 3) but have {CR}-{LF} as the row delimiter. when i try to create a flat file connection to these kind of files- he always reads the CR-LF as part of the file text, and there is no place where i can define the row delimiter if i have. thanks for your help!!! Create and extra 2 byte field at the end for the import of the CR/LF and just ignore the field in your transforms. Or use the "Ragged Right" option for the file. ...Show All
Visual Studio Tools for Office VSTO SE, Vista RC2, Caspol, Oh My
Hello, I've been playing with my VSTO 2005 SE Outlook addin under Vista RC2 using Office 2007 B2TR and the VSTO 2005 SE beta loader (I also run around a lot with scissors) My first issue has been with the installer. I get a 'Error: 2869' that requires my users to go and either turn off UAC (can you imagine!) or run the MSI with 'Run as Administrator'. Obviously I don't like this and would feel bad for lots of good reasons. What seems to fail is some custom action [RunInstaller] code that allocates the .NET Security Policy around my wee Add-in assembly. This code seems to work fine under XP before. I had a look at how the VSTO Team recommends doing it and saw the tutorial/examples of SetSecurity/CaspolSecurityPolicyCreator. I ...Show All
Visual Basic rtf files and images
I'm creating a program that uses a richtextbox and saves to a rtf file. I'm ok with the whole saving and opening part, and can even copy and paste images into the file and save them, but I want to create an insert image button similar to that of Word where it pops up a box that allows the user to select the file they want to insert. Any suggestions niether works, vb expects the .ToString part and gives an error saying that bitmap cannot be typecasted to type string. the second one gives this error G:\Projector Lyrics Solution\Projector Lyrics App\Form1.vb(316): Overload resolution failed because no accessible 'GetData' can be called with these arguments: 'Public Overridable Overloads Function GetD ...Show All
