Christopher Hansen's Q&A profile
Visual Studio 2008 (Pre-release) IIS hosting does not work
Hi I have done everything written in the book to get IIS hosting. my svc file does not work. I tryed to put a dll in a bin directory I tryed to put the code inline My web.config is a copy from the book. Nothing. All I get is " The page cannot be displayed" error message. I tryed to register again using: xws_reg –i but "xws" is not recognized Was there a change in beta2 that I do not know of what can I do manu Hi Manu, xws_reg is now called servicemodelreg. You need to make sure of three things for IIS hosting to work: 1) IIS is installed 2) AS ...Show All
Windows Forms Help! Primary Key/Foreign Key not being added to my database?
I'm stumped. I have Parent/Child (i.e. Master/Detail) Form. The form is layed out using textboxes as opposed to a Datagrid. I have created everything using the Visual Studio Designer. When I run the form, everything works as it should! My Primary Keys and Foreign Keys are generated and I can see them. However, when I go to look at my database (MS Access) all the fields & records are listed except the Primary Key in the Parent Table and the Foreign Key in the Child Table They are just blank. Note: I have all my relationships setup via Visual Studio Dataset designer, currently I have removed all relationships and Keys from my Access ...Show All
.NET Development Shortcut to application launches windows installer repair program
On my Windows Installation project, I have a registry entry - to have the program run at startup - that's set during the install process. In my application, user can opt to have this feature turned off (the program will then delete this registry entry). However, when that's done, the next time user launches the program through the shortcut item, the windows installer repair is launched. This however is not happening when they launch the program directly (by launching the .exe file) So I know where it all occured, just not sure how to fix it (to make the shortcut ignore the existance of this registry entry. The closest sol ...Show All
Visual C# Deciding whether 2 images are similar(not the same)?
Hi everybody, I was given this idea for an application. The idea behind it is the following. You load one image, then the applications "slices" the image into small regions and compares each small region with another big picture from the same folder. If the small region is similar to another big picture from the sam forlder, the application replaces the the small region of pixels from the initial image, and puts small thumbnail of the big(similar) picture. It is like creating one big picture with small ones. Maybe you have seen the 2pac's clip of Changes, where his face is created of many small tv sets. The same shoul ...Show All
Visual C# Getting information about file extension handler aplication
I want to get information about the application that is registered with Windows for handling a particular file extension. In the application I'm developing, users can attach different files which they want to view later on demand. I don't know in advance which type of files they might attach. So, I want to get infromation from Windows about the application registered for handling a particular type of file. Once I get this information, I'll be starting that application with instructions to open the file the user is interested in. I guess this can be done thru Windows API. Any ideas See FindExecutable function: http://msdn.micro ...Show All
SQL Server Print Preview pagination for multipage data in single text box
I have a tried two different reports one with table and the other without The last textbox in both reports contains enough text which should fill half of first page and half of second page. In both reports the print preview and export to PDF keeps the first page blank and puts all the data in the second page. It appears that the textbox control doesn't know when to place a pagebreak when in print preview and export to PDF. The rdl file has no pagebreaks defined anywhere. Thanks in advance for your help! There is an implicit keeptogether on the text box. Only when the text box cannot ...Show All
Visual C++ need english
Getting ready to work on another lab for school and I'm having trouble understanding the lab. This is the program they want me to write: Write a program that declares two twenty-element, one-dimensional integer arrays. Your program should fill these arrays with random numbers by calling a function called Fill_It. You will call Fill_It twice, once for each array, and ask the user to enter two different seed values. Fill_It needs to have a seed value, and low and high range values, and all three integers should be passed to it along with the array. Fill_It will use the seed for srand and then fill the arrays with values between the low and hig ...Show All
Visual Basic InternalMyTemplate.vb : 'Visual Basic' is not a member of Microsoft
I had some VS 2003 project files. I created a new VS 2005 project from them by manually adding the files. I get the following error now even though InternalMyTemplate.vb is not a part of my project. File: InternalMyTemplate.vb Line no: 77 Error Message: 'Visual Basic' is not a member of Microsoft why could this be happening There is a related post on this forum but it does not talk about the solution. Any help will be appreciated. Thanks! Hi, The most common source of this error is a root namespace that includes "Microsoft". Is that the case here If not, please let me know--I'd like to take a look. ...Show All
Visual Basic Licensing information Visual Studio 2002, English
I am an English speaking person now living in Germany slowly learning to speak German. I purchased a German version of Visual Studio at a good price. As I near the possiblility to sell software I have written with Visual Studio I would like to know what I can legally sell. Would anyone be able to suggest where I can find this info in English that would apply to my VS Software I use Microsoft Developement Enviroment 2002 Ver. 7.0.9955 with the framework 1.0 Ver.1.0.3705 Best regards, Kevin Tough If it's not an academic version, you can sell anything you write, so long as it doesn't use MSDE AND comp ...Show All
SQL Server CLR trigger in another schema
Hi, I'm trying to write a clr trigger. I have created Myschema schema under schemas folder and Table1 under this schema (i.e.: Myschema.Table1). I created a clr trigger and tagged it with the Sqltrigger attribute as shown here: [ SqlTrigger (Name = "Trigger1" , Target = " Myschema.Table1 " , Event = "FOR INSERT" )] When I try to deploy my assembly from VS 2005 I got the following error: Cannot find the object "Myschema.Table1" because it does not exist or you do not have permissions If I move Table1 in the dbo schema the assembly is deployed succesfully If I add the assembly from the Assembl ...Show All
Visual Studio Team System Upgrades & Addons
I have Visual Studio 2005 Team Edition for Software Developers and would like to purchase some testing module's that are available with Visual Studio 2005 Team Edition for Software Testers (the performance testing and web testing modules) . Is this possible No, but you can upgrade to Visual Studio 2005 Team Suite using the Step-Up to Suite promotion (until 6/30) - http://msdn.microsoft.com/vstudio/howtobuy/renewal/#step . Or, you can purchase Team Edition for Software Testers separately and install it with Team Edition for Software Developers, which will integrate together. ...Show All
Visual Studio 2008 (Pre-release) WPF is going be absent in First Vista Release
Hello all, I am reading on some news groups that WPF is not going to be there in initial release of windows vista. Does anyone knows more about it I cannot imagine vista without WPF. Any thoughts from experts Thanks Basav Until it is final, it is not final. That said, the last I heard (At the Mobility group partner briefing this week), is that WPF will be on the Vista CD, but will be an optional component that the user must select to install. It will not be installed by default. This is largely because the WPF and WCF components install together, and WCF has a large security surface. ...Show All
Visual C++ Browsing in global objects
I need to create an application that will simulate the operation of a larger, native application for the purpose of creating a managed application that will communicate with it. Anyway, I have started a Windows Forms project and I need to add an unmanaged class to it. I could not instantiate an unmanaged class within a managed class (the compiler gave me an error) so I created a global instance. So far the problem with that is that when debugging I cannot browse the unmanaged instance - the watch thinks the object is out of scope. Is there any way around that Thanks! Kamen Maybe I am not being very clear. Let me provide some code. ...Show All
SQL Server Multiple MeasureGroups and Fact tables for a cube
Hi, I am creating dimensions and Cubes thru AMO. The data comes from a existing Oracle Olap datawarehouse. so there is no exact mapping between SSAS objects and the existing olap. When I need to update a cube, I might have new MeasureGroups which might be associated with new fact tables. Do I have to add a new partition when ever a new MeasureGroup is to be added to the cube What if the New MeasureGroup is associated with a new fact table and what if it is associated with the existing fact table in the cube.. can one partition have multiple fact tables please do provide an examples or links if avaliable. Thanks and Regards Vij ...Show All
SQL Server Error while trying to create a new connection in Visual C# Express 2005
Hi, the other day i decided to download and install C# Express and SQL Server Express 2005. I created a new project in C# Express then I decided to practice with database connectivity so I tried to create a new connection, in the wizard I specified SQL Server Authentication, typed the user name and password and when I pushed the button "Test Connection" I recieve this error message "Failed to generate a user instance of SQL Server. Only an integrated connection can generate a user instance. The connection will be closed". I also have tried Windows Autentication, but it displays a more complex error that says something about the database file ...Show All
