Johanvdk's Q&A profile
Visual Basic EMAIL
I am using this code in vb.net 2005 to sent an email but an error FAILURE SENDING MAIL is allways appearing. Can someone show me where I am duing wrong. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send("glennzarb@gmail.com", "glenn_zarb@hotmail.com", "Test", "hi") MsgBox("sent") Catch ex As Exception MsgBox("Send failure:" & ex.Message) End Try I haven't installed any other programs or smpt's Do you have the smtp service installed ...Show All
.NET Development WSE 3.0 UsernameTokenManager not working plz help!
Hi, Im using a custom UsernameTokenManager in WSE 3.0 but it always authenticates when it should'nt. I'm missing something but don't know what. my Web Service code is: using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; [WebService(Namespace = " http://tempuri.org/ ")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [Microsoft.Web.Services3.Policy("usernameTokenSecurity")] public class Service : System.Web.Services.WebService { public Service () { //Uncomment the following line if using designed components //InitializeComponent(); &nb ...Show All
SQL Server db_dtsadmin role
Our DBA has given me access to MSDB on the SSIS service on one of our servers as db_dtsadmin. When I try to connect to the server using Integration Services in the connect drop down menu, I get the following generic error msg: connect to SSIS service on server 'xxxx' failed: access is denied. I'm told this role should be sufficient to give me access. Do I need other server access roles to use in conjunction with db_dtsadmin or are we missing something really easy here. Thanks. Thanks. We're still trying to work on this. We followed the instructions on the link (connecting to a remote integration services server) but I still can't connect and still receive the same generic 'access denied' error me ...Show All
Windows Live Developer Forums Dynamic TileSource not showing up in 3D
Hi all, I'm using sharpmap to render some shapefiles as dynamic tile sources, and I've run into an issue with 3D mode. The same code seems to work flawlessly in 2D mode, so I'm kind of stumped. Here's the nefarious javascript: function AddHazardLayer(layername, zorder) { try { var bounds = [new VELatLongRectangle(new VELatLong(42,-127),new VELatLong(29,-108))]; var tileSourceSpec = new VETileSourceSpecification(); tileSourceSpec.ID = layername; tileSourceSpec.TileSource = GetTilePath3D() + "&LAYER=" + layername + "&QUADKEY=%4"; alert(tileSourceSpec.TileSource); tileSourceSpec.NumServers = 1; tileSourceSpec.MinZoom = 1; ...Show All
Visual Basic splash screen and login screen focus problem
Hi I'm using vb.net 2005 sp1 I have a splash screen, invoked by selecting a form on the project properties window, and a login window, which is called from MyApplication_Startup I have two problems a) if the user cancels from the login window, I set e.cancel = true from the Startup event - but the spash screen doesn't terminate so the program doesn't close b) The login box ends up going behind the splash screen - I tried setting frmlogin.topmost = true, but it still doesn't result in that form getting the focus - so they have to click on it with the mouse before typing in the username / password thanks bruce a) if the user cancels from the login window, I set e.cance ...Show All
Smart Device Development MS Access database and VS 2005 .net2
I'm looking at the feasibility of using MS Access on a Mobile 5 device. Using VS 2005 if I attempt to create a new data source I ca select an access database and the test connection works OK, however when I proceed I get an error "The new connection uses a data provider that is not supported" Theres no error number. Can anyone tell me if Access is supported by Windows mobile 5, .net 2 and VS2005 Thanks Rob No, Access (both Pocket and desktop versions) are not supported on devices. Pocket Access is deprecated and no longer available, desktop Access is generally not accessible remotely at all as it's in process database. You can use Web Service as proxy though: ht ...Show All
Visual C++ how to return a array in a function?
i write a function like this : void firstScan(int bitmapArray[][],Bitmap*bitmap1) { int bitmapArray [640][480]; int greyRangeMax; int greyRangeMin; System::Drawing::Color tmpColor1; for(int inty=0;inty<480;inty++) { for(int intx=0;intx<640;intx++) { //get pixel color tmpColor1 = bitmap1->GetPixel(intx, inty); //calculate grey color range int temp = Math::Max((int)tmpColor1.R, (int)tmpColor1.G); greyRangeMax = Math::Max(temp,(int)tmpColor1.B); greyRangeMin = greyRangeMax-20; //calculate skin color range double I = (Math::Log(tmpColor1.R) + Math::Log(tmpColor1.B) + Math::Log(tmpColor1.G)) / 3; double Rg = Math::Log(tmpColor1.R) - Math::Log(tmpColor1.G); double By = Math::Log(tmpC ...Show All
Windows Live Developer Forums PushPins, GeoRSS LatLong for lookup/postal addresses. Web Service?
After searching, I found that there is another recent post on here asking much the same question as I am posting. Unfortunately, that thread was extremely short and most replies were rather terse -- some bordering on unflattering arrogance. I am looking for a web service, or method call that will return the LatLong for an address provided. Of course, as stated in the other thread, one can use VEMap.FindLocation() using the postal address provided to do a lookup. This is fine when you have a system that is singular in nature and accepts input from a user. In my case, I have a couple thousand addresses stored in a SQL Server database that require pushpins. Some are straight forward and well formed. Some are not as well formed. The address ma ...Show All
Software Development for Windows Vista using correlation token to decide which activity to be executed.
Say you have a parallel activity, with two eventSink activities on either branch. Is it possible to have both eventSink activities “listening” to the same event, and use correlation token to decide which activity to be executed Mikael This is possible as I found out. Please look into the Hands-on Labs Beta 2, Lab 05, Exercise 02. There is a complete source code example. I use Beta 2.2 and it works. ...Show All
Visual Studio Team System Work Items not deleted from warehouse when project deleted by TFSDeleteProject
Deleted a project with TFSDeleteProject and later created it again with the same name. Work Items from the original incarnation of the project continued to show up in reports for the new incarnation of the project. Eventually found that work items created for the original incarnation of the project were deleted from the TfsWorkItemTracking database but not from the TFSWarehouse database. Found a fix in the Warehouse Troubleshooting Guide . This was an issue relating to project name collision in [TFSWarehouse].[dbo].[Team Project]. Per Jimmy Li, "When there's a project name collision, the reports will not be able to find the proper project by name." ...Show All
Visual Studio Tools for Office Events are not getting fire in the project , VSTO 2005 tools for office 2003
Hello, i have created a small project to generate word document, initially when i have tried out solution its worked fine,means the document i had to created from specified location its was generated and showing results as i intented. but now when i try to run the project it automatically generates document1.doc, without firing ThisAddIn_Startup() and shutdown and InternalStartup() events. When i debug the solution as setting breakpoints on following event, control does come on breakpoints. I am really stucked with this issue, Can you help me out to resolve this issue. I look forward to speaking with you soon Thank you in advance. private void ThisAddIn_Startup( object sender, System. EventArgs e) { C ...Show All
Internet Explorer Development Clean Access Agent
I attend college and in order to get onto the college's intranet I had to uninstall IE7 beta because the computer people on campus said that IE7 does not support clean access agent. I really got used to IE7 and I hated having to go back to IE6, is what they said true (that IE7 does not support CCA) or did they make a mistake and I could finally go back to IE7. ...Show All
Visual Studio 2008 (Pre-release) Error Downloading Meta-Data from Service
Hi I have a created a service that uses https for metadataexchage. The service is hosted as a console application. Now when i try to create a proxy using the "SVCUTIL" i am getting the follwing error Error: Cannot obtain Metadata from https://www.banca.com:7001/sample/trust/usernamepassword/mex If this is a Windows (R) Communication Foundation service to which you have acce ss, please check that you have enabled metadata publishing at the specified addr ess. For help enabling metadata publishing, please refer to the MSDN documentat ion at http://go.microsoft.com/fwlink/ LinkId=65455 . WS-Metadata Exchange Error URI: https://www.banca.com:7001/sample/trust/usernamepassword/mex Metadata contains a reference ...Show All
Software Development for Windows Vista Enabling Theme Support via Manifest
My application (using the WIN32 API) enables XP Visual Styles under XP with a manifest. But when the app is run under Vista, Visual Styles / Theme Support does not get enabled. (Buttons have square corners, no highlighting, etc.) What can I change in the manifest (or in the C code) to enable Vista Themes Manifest: < xml version="1.0" encoding="UTF-8" standalone="yes" > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="SabioNet.AshWin.ashw32" type="win32" /> <description>AshWin</description> <dependency> <depen ...Show All
SQL Server Merge Replication not replicating updates
I have an issue that is only occurring in a production environment. The architecture is filtered merge replication between two SQL Server 2000 SP4 databases. The publisher is standard edition and the subscriber is personal edition. The issue is that is I update certain rows on the subscriber the data is not replicated to the publisher. Inserts and deletes seem to replicate correctly. The issue is specific to certain rows in some tables. If I update other rows the updates replicate correctly. The subscription has been re-initialized once and it did not fix the issue. The replication process indicates that there was not data to merge and the subscriber updates remain and are at that point different form the publisher row values af ...Show All
