MuscleHead's Q&A profile
Visual Studio 401 Unauthorized When Accessed Remotely
Hello, I am trying to deploy my application to a test server. The application has a ReportViewer control embedded in the page and connects to a remote Reporting Services server. Everything works fine locally in my development environment. However, when I deploy to the test server, I get a 401: Unauthorized exception on my reports. I am using Windows Authentication and Impersonation (the application is on the local intranet). If I log onto the web server locally and try to access the web site through localhost, everything works fine. I realize this is probably not a problem with the ReportViewer control itself, however, I don't know what the problem is, or where to start to find a solution... Any suggestions would be appreciated... ...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# Sample, as you wish :) ' Create a web request to get the content of http://www.microsoft.com Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create( "http://www.microsoft.com" ) ' Get the response from the request. The reponse holds the result. Dim response As System.Net.HttpWebResponse = request.GetResponse() ' Get a stream reader that holds the content of the web page. Dim reader As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream()) ' Get the content of the web site. Dim content As String = reader.Rea ...Show All
SQL Server CreateProcessAsUser in SQLCLR
I'll keep trying new threads here... sooner or later, I'm sure an expert Microsoft CLR employee will gladly lend a helping hand! The pieces: 1. SQL 2005, MS Windows Server 2003, Standard Edition, SP 1 2. .NET 2005/C# 3. Instance of SQL 2005 running locally. Trigger on local SQL2005 DB table INSERT calls 2 CLR Functions: 1. Retrieve data from SQL2005 DB table and populate local DBF through OLEDB 2. Call external 16-bit application (written in Clipper) that iterates through local DBF records (added from step 1 above) and populates DBF on domain resource. Step 2 detail: External 16-bit application is called by CreateProcessAsUser after impersonating token. THIS IS SUCCESSFUL - IF: I populate SQL2005 DB t ...Show All
SQL Server SQL Server 2005 Install fails on Vista
During the install, I get the following message: Setup has detected a problem with Microsoft .Net Framework installation and cannot proceed. Microsoft .Net Framework 2.0 is either not installed on this system or is corrupt. I cannot uninstall 2.0, as its part of the Vista. I have tried repairing it. I tried downloading 2.0 and installing it, but it says that its allready installed. I was able to install Visual Studio with Sql Server 2005 express. I am stuck. Is the case that Sql install dosent know about the latest version of 2.0 that came with vista Can you post the contents of two log files The ones we need are these: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files\SQLSetup0021_JAZZ_Cor ...Show All
Visual C++ How to build image viewer?
Hi, I am trying to learn windows programming again, many years since now so I have forgot a lot. I want to build an imageviewer and need some advices on how to do it. Dont need a lot of code just an overview. I want to do it this in small steps so I can understand how everything works together. The first thing I want to do is to create a form which shows my thumbnails. When it is done I want to move on with other functions like showing a full image, categorising them and so on. I have created a form and in it a floatlayoutpanel. Then I have a usercontrol consisting of a form with one thumbnail. I add usercontrols into the floatlayoutpanel so they organise well. Then if I click a thumbnail I will change border color inside the usercon ...Show All
SQL Server Displaying selected parameters in a report
Hi, In the report I'm working on, I want to display a list of the parameters selected by the user, as in: Selected Cars: Toyota Camry Ford Taurus Chevy Corvette Saturn Ion Note that these are selected items from a multi-value parameter. How can I go about doing this with Reporting Services 2005 In ASP.NET, I'd just use the parameter array as the datasource for a repeater/datagrid/gridview. Could I do something similar with SSRS I'd really like to use the format specified above, whether or not it is in a table; I really don't want to do the following: Selected Cars: Toyota Camry, Ford Taurus, Chevy Corvette, Saturn Ion. Thanks, Mark I tried that earlier and got an error, but I must have done something els ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Numeric performance on 360
A question for the framework/VM guys... I have ported one of my simpler benchmarks to the 360, and find that the numeric performance is running 5x slower than my 2.8GHz P4 desktop. Now I was expecting a drop in performance on the 360, allowing for the difference in CPU implementation (in order execution / branch prediction etc), but nothing like this magnitude! The benchmark simply transforms a source array of Vector4s to a destination array of Vector4s, using a 4x4 matrix. Have you guys done any benchmarking of pure numeric perf, and if so is this in line with what you get Andy. The Xbox 360 CLR runtime is based upon the .NET Compact Framework 2.0 runtime, which is not currently optimized for ...Show All
.NET Development How to update an element's value?
I am building an xml file in SQL Server 2005 (SSIS). The problem is that one of the first element that is written I won't know the value until I have processed all of the records. So I was wondering if there is a way to open up the file that was generated and update the element named "DeclaredValue" Thanks. Have a look at XmlDocument and it's ReplaceChild method... ...Show All
Visual C++ use templated base class declared in 1 C++/CLI assembly in another C++/CLI assembly?
Hi, In C++/CLI, is it possible to take a template base class declared and defined in one assembly and use it as a base class in another assembly If so, how IOW: assemblyA: template < typename T > public ref class Wrapper : PtrWrapper< T > { protected: Wrapper( T* pObj ) : PtrWrapper<T>( pObj ) { // do something } ~Wrapper( void ) {} }; assemblyB: public ref class Batch : public CoreAPI::Wrapper< cBatch > { }; where T is an UNmanaged type (and cBatch is also). Both assemblies are DLLs, and both are CPP/CLI, if that matters. Wrapper is being successfully used as a base for many classes in AssemblyA. I can't get this to work. If I just have a reference in B to A, ...Show All
SQL Server Very High CPU during Full Text population
I am building my first catalog on my 2005 server. It currently has been running for almost 3 hours now when in 2000 it took a little more than an hour. It seems the bottle neck is my sqlserver. I know that there are 2 other services associated with populating the catalogs but they don't seem to be doing much but the sqlserver.exe is sitting at 98% cpu or more. This obviously is not good. I tried searching for solutions and found nothing that helps. I increases the available memory to the server to 2gb from 1gb but the server is only using 40mb anyways so that did nothing. I am not sure what to do next... The table that is full text has 3 varchar(max) columns plus 10 other varchar fields but I wouldn't think that has anything to do with ...Show All
Visual Basic Drawing is not a member of System?
I have a namespace called "Jimmyware.GameLibrary" which contains a form called "Game". Apparently Drawing is not a member of System. I have ensured that System.Drawing is referenced in my app, and I added "Imports System.Drawing" at the top of my code, and it still doesn't work!!! What's going on I've tried adding Imports System.Drawing, but Drawing isn't recognized as a member of System even at this level. I've also double-checked that Drawing is imported, and even removed then re-imported it, to no avail. ...Show All
Windows Forms BindingSource question about saving updates.
I have a very simple table setup in SQL Express 2005. Category - ID int identity PK - Description varchar(100) NOT NULL - SetupDate datetime NOT NULL - ChangeDate datetime NOT NULL SetupDate and ChangeDate have a default value setup in the database. I used the wizard to add a connection to the database. I dragged the fields onto a test form and then ran the app. I tried adding a new record by putting in just the Description and then saving (since ID is auto generated and there are default values for SetupDate and ChangeDate), but it is giving me an error on the BindingSource1.EndEdit() saying Null values are not allowed in the SetupDate field. Which is true, but it should be getting the default value from the database when ...Show All
Visual Basic Question about executing a program written in Java from an application being developed in VB .NET.
Hi, I would like to execute a program written in Java from an application that I am developing in VB .NET. Can this be done by writing: System.Diagnostics.Process.Start("java MyClass", "arg1, arg2, ..., argn") Any advice will be helpful! Thank you. You won't get it to start that way but you can get it to run as a script as long as you have a script host registered on your system: Dim P As New Process P . StartInfo . FileName = "MyClass.js" P . StartInfo . Arguments = "Arg0, Arg1,.... ArgN" P . Start () ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX functionality removed from VB.NET?
From reading through the information on the Microsoft DirectX web-site, they are saying that the DirectX2.0 is deprecated and is being replaced by what they are calling "XNA Game Studio Express". Further, from reading the following : "..One problem with the first path is that XNA Game Studio Express is supported only through Visual C# Express" It seems to say that you will only be able to use managed DirectX with C# Is this true Can anyone clarify if this is the case I have quite a few applications that make use of DirectX in vb.net for display elements (like "loading bars", neat effects on forms like spinning logos, etc), and I have no intention of switching to C# at any point in the future and GD ...Show All
SQL Server data in sqlserver is not case sensitive
I am facing problems as the data in sqlserver is not case sensitive. The data in parent key may be capital/lower case and the same data in the child table may be lower/capital case. While migrating the data from sqlserver database to other databases(like oracle) its giving error as the data not found in parent key, though the data found in parent table . This is just because the case sensitive in oracle. But according to my knowledge its better if the sqlserver also supports data case sensitive. Take a small example Need a table to store all the alphabets in a table the table structure is CREATE TABLE [dbo].[ALPHABET] ( [Alphabet] [varchar] (1) NOT NULL , [Description] [varchar] (50) NOT NULL ) GO The data is ...Show All
