i used System.Net.Webclient to download a file from https address with username and password.I want to know if it is possible to get all file names from that https location, delete files,etc.
I am trying to make a little app that will tell me if my servers are online or offline, currently I am using my LAN to test my servers when this app is working then I will be adding IP Address from other hosts that are not on my LAN First of all I have got this working fine if I use a button for every server test but I don't really want that I want them all working from one click
So the exact site I'm trying to login to is GMail. I can send the POST data to login fine, but after that GMail performs an authentication (the redirect URL contains 'SetSID?'). Now with my HTTPWebRequest I don't see a way to enable support of HTTPs requests. Is there a way to get around this and successfully login?
I am adding code to use a proxy server to access the Internet.The code works fine when requesting a file from a normal (HTTP) location, but does not work when accessing a secure location (HTTPS).[code]...
I have code/support an application built on .NET framework that has always run on .NET 2. This year we are upgrading the application to use .NET 3.5 (or 4?). In preparing for this change we noticed that that Offline Installer (required for our customer base) for .NET 3.5 is 200+ MBs bigger than the .NET 4 offline installer.
Here are my questions.Why is the dotnet 3.5 installer so much bigger than the 4 offline installer?
Can we TARGET .NET 3.5 but distribute .NET 4. In other words, is .NET 4 backwards compatible? Assuming that .NET 4 was the only installed .NET could application still target earlier frameworks?
IF our application is compiled for x86 CPU (rather than Any CPU) do you still have to distribute the x64/x86 Client Profile or can we just distribute the x86 Client Profile? In other words, can we distribute the x86 Client Profile even though it will be installed on x64 machines if our app is compiled for x86 target CPU? Any risks or gotchas for doing this?
The issue is that if we upgrade our app to target .NET 4 there are a lot of application servers that we also have to upgrade which effects a number of other applications.
desktop application I need to refer and load some files to manipulate (Like dBase III .dbf files) or to show (ESRI .shp files). As the number of my files changes, I need to have these files on a server and then when I want to load them in my desktop application give the path on my server based on IP address and Port number
I have working on 1 program that is for Mu Online game. Its Mu Launcher program,but i'm having trouble with it. I can't make right "Server Status" to show Online or Offline I can't make autoupdater people to have using this for theyr server.
I make one file launcher.txt to get info the program but i need a lil help to finish thise program. The program is not for 1 server only its freewere . So here is the problem with the Server Status and AutoUpdater to get info from what server..
I created a project in vb.net and I'm able to connect to an Mssql server remotely using the host machine name. However, I can't connect using the IP Address. This is my connection String.
I want to request a page(file) of information from a web server using VB code running on a PC. What is a simple piece of code which does this and/or the libraries/calls I need to use.
I am trying to access VB.Net exe on a client system through LAN.Its working fine for server with static IP address.In case I try to access it with server having dynamic IP address, It doesn't provide access(config file containing server name).
In Order to access that exe with dynamic IP I need to specify current IP address of server in config file.
How it's possible to access that with server name as it's not feasible to change IP address in config file on daily basis
i need to know what will it take for me to access, insert, update and delete data to a database on a remote SQL Server. I already made some configurations to the SQL Server 2005 that I want to access by following the steps coming from this link -> [URL]. But somehow I am still getting an error. My primary concern is "What connection string should I use on my client VB.NET application to connect to the remote SQL Server?" Since I will be connecting to the SQL Server via Internet and not by LAN, I am wondering which IP Address and Port am i going to put on the 'connection string'? How can i get my 'TRUE' Ip address? Or is there any other way to go through with this? It will be very helpful if you could share your insights and knowledge. Here's my sample connection string:
I already made a project using Visual Studio 2010 (Visual Basic) and my database connected to SQL Server 2008 R2, also set up a PC 1 act as a server and the other is client i set this up for beta test.
I'm having issue about putting an IP Address to the server pc, actually if the IP setting of the server pc "Obtain IP Address automatically", i can open my application in the client pc, but once i put IP Address on the server PC i cannot open/run my application to the client pc, i cant figure it out how can i fixed this issue.
I'm allowing users to manage a distribution list stored in a database. Users are only allowed to enter emails that are @mydomain.com. A web based application then takes the distribution list and sends emails. I'd like to validate that the email is valid before sending an email from the application.
To send an email I'm using this code:
Dim SendTo As String = "ThisIsNotARealEmailAddress@mydomain.com" Dim SentFrom As String = "me@mydomain.com" Dim MessageBody As String = "blah blah blah"
[Code]....
Is there anyway to validate the email when the email address is added to the database, instead of a try catch block when sending the email?
I have a vb.net program using the MS SQL 2005 Database.I use the SqlClient.SQLdataAdaptor to insert the records in DB.Whenever i load the program and then use the SqlClient.SQLdataAdaptor to insert record into DB for the 1st time, it will take longer time to load. But if I use the same SqlClient. SQLdataAdaptor to insert record into DB again immidately, it will take shorter time to load. However, if I wait for 5-10mins, then use the same SqlClient.SQLdataAdaptor to insert record into DB again, it will take longer time to load again.Can anyone tell me this loading is due to the SQL Server itself / the VB.net?Can anyone suggest me a way to check the reason of this loading? [code]
I whould like to find the IP address of a game server that sends UDP packets to my PC. Of this server I know the fixed Port number, but not the IP address
I can read the netstat -anp udp data and store them in a text file... but this command don't displais the IP Address and the Port number of the external servers, only lots of asterisks
[code] What I want to know is, if this is the right way to load an XML of a server, If yes, How do I handle exceptions like "Server Error 500" etc.I also want a nice little progress bar to show the user that the XML is being loaded of the server, How do I change the responseTimeOut.If No, How do I load an XML of a server??
I am trying to retrieve data row by row from my SQL Server and load them into my respective textboxes, I was doing the below code but of course it doesn't work as the For Each loop will load every single textboxes with each data retrieved,
Imports System.Net Imports System.Net.Mail Public Class Form1 Sub sendMail() Try Dim AnEmailMessage As New MailMessage
[Code]...
I use this code to send an email through gmail account but the thing I want to do is, I want to check whether the given email and password exists or not and if it exists then pop out a text box with the body of the mail and type the text and then send it as a mail. But in the above code you have to log in and type body and when you send the mail , It verifies for the email and password while sending and if anything goes wrong says there is no such gmail account.but i want to check it whether the email and password exists or not, when the user enters the email and password at the beginning itself.So that he enters the right email to log on to compose a mail.Is there any way to check whether the given email and password is correct at the beginning only ?
I am trying to retrieve data row by row from my SQL Server and load them into my respective textboxes, I was doing the below code but of course it doesn't work as the For Each loop will load every single textboxes with each data retrieved, ran out of ideas.
Private Sub retrieve_Data() Dim con As New SqlConnection Dim cmd As New SqlCommand
I am trying to load CustomerName and PrintStreamACNO from tblCustomers to my dropdownlist. I am not getting the correct syntax on the binding and displaying.
Imports System Imports System.IO Imports System.Reflection Imports PSXSTL.Data Imports PSXSTL.Data.DataAccess
I have a problem loading data to a tree view control using SQL SERVER db as my backend...i just found out that sqlserver dont accept multiple SQLDATAREADER
The code below works in SQLCOMPACT EDITION..
CODE:
I have use this code in my applications using SQLCE as my backend, but when i transfered to sqlserver it doesnt work because of the datareader..
Output is like this Quote2011[January][February] 2010[January][February] something like that
If i put it in a single query(sqlYear & sqlMonth), the ouput will be like this Quote2011[february] 2011[january]
Assume a .NET class library code that, for example, writes to the Windows registry. Then this code has problem to run over internet, because default Internet policy does not give access to write to the registry.By adding a RequestMinimum statement in the assembly we can specify that the code requires permission to write to write to the registry. This will not alter the fact that the code does not have the permission, but will stop the assembly from loading; the runtime will throw a System.Security.Policy.PolicyException and identify the permission that is required.Do you now any other examples of using evidence, security policy and permissions (the key elements of code-access security) to prevent an assembly from loading on a web server?
trying to load a string that's in xaml format (to preserver formating) from an sql server db into the Windows.Controls.RichTextBox. I'll also be wanting to save to the db. I'm able to save and load to file by using a filestream and textrange but I'm having trouble figuring out how (and finding online samples) of how to go to and from a db. I've also tried using the .text property of the RTB but here i see the raw xaml text; the rtb didn't render the xaml.
Private rtb As New Windows.Controls.RichTextBox If System.IO.File.Exists("D: est.xaml") Then
I'm creating a small program to read from an SQL server, loading result into an array, pivoting the array to my liking and mailing it out to selected members of a group. It's going to be run once a day with Windows schedule. I have the connection, query and mail sorted, but not the datareader to array bit.