justMaveric's Q&A profile
.NET Development ERR - WebClient.DownloadData returns "protocol violation"
I'm getting a "protocol violation" from a site that is working perfectly fine when I issue WebClient.DownloadData as such: WebClient WebClient_Temp = new WebClient(); byte[] zbyteTemp = WebClient_Temp.DownloadData ( "http://MySite/MyWebPage.htm" ); I have heard of the app.config file fix, but my app is a UserControl, and as such, I can not keep the "MyApp.dll.config" in the same directory as such: <configuration> <system.net> <settings> <httpWebRequest useUnsafeHeaderParsing = "true" /> </settings> </system.net> </configuration> I've also tried putting a <link> element into m ...Show All
SQL Server Finding database size in SQL Express
Our system guy wants me to find out just exactly how much room is being taken up by the SQL Express databases (I am using two). I am not sure how to do this. Is there any way to find the size, or, lacking that, how many records overall We will probably need to move up to SQL 2005 soon, but he needs to figure out the memory requirements, etc. Thanks, Michael try select [size] from sys.database_files This will give you a row for each primary datafile and log, to get it all in one statement you could use select Sum([size]) as total_file_size from sys.database_files ...Show All
Visual Basic 2 Textfiles in DataSet
Hey there I have a problem: I import 2 textfiles (they are saved in the same folder and TabDelimited) with the Visual Studio 2005 wizard into a DataSet. Now I'd like to do a SQL query which gives me all the records that are in one table but not in the other one. But here I got an error. I tried some ways in query builder but it seems that a query through 2 textfiles isn't possible. When I select a row from only one textfile the query runs without problems. As soon as I add the second table it doesn't work. Can you tell me if it's really impossible to do a query through 2 textfiles And if yes, how could I solve ...Show All
Visual Studio Team System How do I derive from TestContext class and implement from base members
So, I see a lot of people are looking at this. But no one is responding to it. It would be great if someone would be able to at least check the answer to verify it. ---------- Im lazy, and somewhat new to OO. I am attempting to derive trom the TestContext class. But am not able to use the base class methods when overriding the base class methods... namespace TestPlay{ public class newTestContext : Microsoft.VisualStudio.TestTools.UnitTesting. TestContext { public override void AddResultFile( string fileName){ throw new Exception ( "The method or operation is not impl ...Show All
Visual C++ Converting System::String to Int32 and back again in hex in C++
OK, I have a simple question: I have a window where a user can enter a hex value, like 10BF00D1. Another one where the user can enter a pure binary number like 1000011101101001. I want to grab the String and put the data into an integer, manipulate it and turn the result back into a String. How do I do this with the managed System::String class in Visual C++ 2005 It was easy to do back in the "C" world, why is it so hard to find the new way Thanks, Dale Hi, To do the conversion you should use Convert::ToInt32. By the way, if your are going to do a lot of .NET programming Managed C+ ...Show All
SQL Server What is the performance difference between using varchar fields of vastly different sizes?
I was wondering what the performance diffeneces/issues there are between using varchar fields of largely different sizes ie varchar(100) vs. varchar(5000) From what I have read SQL Server only stores the actual bytes of the data written to the field, so data 50 bytes long would be stored the same in a field of varchar(100) or varchar(5000). Everywhere I look people say to use the smallest size possible but given few if any reasons for this logic. I would love to hear from someone that knows the inside details of why if any this affects performance. The reason I am interested is that we are building an application that may ...Show All
SQL Server Packages not executing right on production server?
Hi, I have developed about 20 to 30 packages that are executed on a specific order by a parent package that iterates a foreach cycle... Has in development server all packages run just fine... when deployed to the production server and executed the first child package to run gives error and says that the logging text file was unable to find the file It was supposed for the log to create and send information to the file right So i think this is a little bit weird... Any idea of what is going on here Regards, Does the lggoing file folder exists, and does the execution security context (account) used have permissions to wr ...Show All
Visual Studio Express Editions Error after deployment
I have created a Windows app in VB 2005 Express and it runs OK on my development machine, it does give one error which I assume is to do with a demo version of a componenet which has a nag screen. When the nag screen goes away, so does the error message. I have published the app and installed it on another machine. Whenever I try to run it, I get a 'has encountersed a problem and needs to close' error. My question is: is this error the same one I see (that goes away) on my dev machine or something more fundamental to do with the deployment I would prefer to not install VB Express on the other machine and compile the projec ...Show All
Visual Studio Team System Cannot access project portal from remote computer
I'm running TFS in single server mode. When I'm working local on the server everything works great. I can visit the portal and I can create new projects. But - when I try to visit a project site from a remote computer, I get this error in the browser: -------------------------------Start of message ----------------------------- The page cannot be displayed You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed. Folks, Can you double check again that both the default web site and the admin site are configured to use integrated windows authentication (NTLM) please - ...Show All
Visual Studio Tools for Office CDOEX help needed
Hello Finally i have decided to use CDOEX (CDO for exchange 2000) in my application with ASP.NET and C#. But till date i didnt found any detail document on how to use CDOEX to access Exchange data. In my application i need to access Calendar(i.e. Meetings) data and display that data on the web page. please anybody knows how to retrive meeting data from the exchange servers public folder. if possible plz provide me with example. Thanx a lot Kalpesh Hi Mike Thanks for help. but its an example of creating meetin ...Show All
Visual Basic Can't Make A New WorkBook In Excel From VB2005
When I try to make a new workbook from excel it doesn't work and returning the following error: System.Runtime.InteropServices.COMException was unhandled ErrorCode=-2147319784 Message="Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))" Source="Microsoft.Office.Interop.Excel" StackTrace: at Microsoft.Office.Interop.Excel.Workbooks.Add(Object Template) at The_TestMaker.Form1.Command1_Click() at The_TestMaker.Form1.Check_Click(Object sender, EventArgs e) & ...Show All
SQL Server Problem in registering external dll using Create Assembly
Hi, I have created CLR Trigger project using SQL Server Project. In that project i want to add external dll which is located in disk. For that first i have placed the external dll in one folder. Than i have placed all the supporting dlls for the external dll in that folder. Then using Create Assembly i tried to register it(i have give PERMISSION_SET=UNSAFE). But it gives the following error. I have placed the system.web.dll also to the external dll folder. How to solve this problem. Warning: The Microsoft .Net frameworks assembly 'system.web, version=1.0.5000.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a.' you are ...Show All
.NET Development Problem to connect to AD
I'm not sure this is the best forum to ask the asnwer because the problem is hard to surround... I have a web application using Forms Authentication and doing the authentication by checking in AD. I will also retrieve some other information from AD on the user or its group. Then I have some unit tests that will use the application by generating some HTTP GET / POST web request. Each night, my application is built on the Team Foundation Server and all the tests are run without any problem. But when I run my tests on my local machine, I have some error when I try to do the authentication. The exception is "The server is not opera ...Show All
SQL Server How can I get value from data flow control?
How can I get value from data flow control when it returns to the Control flow I want to use values in the data flow to decide what I'm doing next - using an expression on the 'line' (i.e. @Step == 10, 20 , 30 ...) @Step - is user defined variable. How can I set @Step according to the data flow It seems to be that I can't change @Step in the data flow. Seems like you are editing Script Task instead of Data Flow Script Transform (or maybe Data Flow Script Component, but Source instead of Transform). Of course, it is possible the script task (or existing task, e.g. Execute SQL Task) is ...Show All
Visual Basic Positioning the text cursor in a TextBox control
Hello I have a routine that iterates thru a collection and I want to print each iteration into a TextBox without having the second iteration overprint the first and so on. How do I position the text cursor between each iteration thru the 'For Each' that I am using Thank you for each ... TextBox1.Text = TextBox1.Text & CStr(...) next ...Show All
