[Message Deleted]
ZenyukIV
Posts
-
[Message Deleted] -
System.Web.Mail.MailAttachment problems with sending a message with attachment fileThanks for everyone. I've refused using System.Web namespace becouse I've solved the problem with System.Net The problem was pretty stupid. I've downloaded update for Framework 2.0 link[^] and installed it to ALL CUSTOMERS' PCs.
-
System.Web.Mail.MailAttachment problems with sending a message with attachment fileDave Kreskowiak wrote:
And why's that?
I don't know why MS update for System.Net does't work for me. So I use System.Web
Dave Kreskowiak wrote:
Was there any return message?? Some kind of error message?? Anything on the recipients end at all??
Return message - "protocol is unknown" Exception data - "System.Collections.ListDictionaryInternal" Nothing on the recipients with attached file. But works well without attachment. Thanks for help
-
System.Web.Mail.MailAttachment problems with sending a message with attachment fileHello everyone! I know that System.Web is obsolete, but I can't use System.Net. becouse MS update for System.Net does't work for me. So I have to use System.Web.Mail.MailMessage instead. It works fine. But when I try to attach file with
mailMessage.Attachments.Add(new System.Web.Mail.MailAttachment(Settings.Default.LicenseFilesStore + licenseFilePath));
My e-mail simply could't be delivered Could someone please provide me with an advice. M.b. suggestion to download & use some custom developed smtp class. Thanks in advance. -
publishing resource folder [modified]The solution is to use Application.UserAppDataPath instead of Application.StartupPath
internal sealed partial class Settings { public Settings() { this.SettingsLoaded += new System.Configuration.SettingsLoadedEventHandler(Settings_SettingsLoaded); } void Settings_SettingsLoaded( object sender, System.Configuration.SettingsLoadedEventArgs e ) { String dataDirectory; if (( AppDomain.CurrentDomain.DomainManager != null ) && AppDomain.CurrentDomain.DomainManager.ToString().Contains("VSHost")) { dataDirectory = Application.StartupPath; } else { dataDirectory = **Application.UserAppDataPath**; } this["test1ConnectionString"] = Settings.Default.test1ConnectionString.Replace(".\\", dataDirectory + "\\");
} Thanks to http://blogs.msdn.com/smartclientdata/archive/2005/07/15/439008.aspx[^] -
publishing resource folder [modified]Dear All. When I publish an application, there are 2 root folders created something like the first one
...\Apps\2.0\N2NJKNK\JHKJ7897KJ\**appl..tion**_ace7blkjnjn_0100.0000_534535
- where my app.exe file stored and the second one...\Apps\2.0\N2NJKNK\JHKJ7897KJ\**appl..exe**_ace7blkjnjn_0100.0000_768976
7 - where my resource files stored (some.exe, data.sdf) So to access to my resource (eg data.sdf) I have to do like that:"..\\appl..exe_ace7blkjnjn_0100.0000_7689767\\data.sdf
" The question: is there any proper way to get to that"...\**appl..exe**_..."
foldermodified on Friday, December 28, 2007 9:32:45 AM
-
Publish app for multi user usageHello everybody! I would like to know how can I publish an application with VS2005 to make it works not only for a single local user purpose. After installation I can launch my application on local computer only from current (which has installed) user account. But I need this application to be available for any local user account. Thanks in advance. Igor Zenyuk
-
WebBrowser control NewWindow event catch & retreive requested URLI have an WinForm and WebBrowser control on it. WebBrowser generates a NewWindow event (many web links have that settings by default) than I catch it, make it
e.Cancel = true
. But the question: how to retrieve full requeted URL The code:... webBrowser.NewWindow += new System.ComponentModel.CancelEventHandler webBrowser_NewWindow); ... void webBrowser_NewWindow( object sender, System.ComponentModel.CancelEventArgs e ) { Console.WriteLine("New window" + (sender as WebBrowser).Url.ToString()); e.Cancel = true; }
Thanks in advance!:cool: -
Nickname changed & I can not find my messages under MessageBoard/C#Thanks
-
Nickname changed & I can not find my messages under MessageBoard/C#I have changed my nickname from ZenyukIV to ZeniukIV and now I can not find my messages under MessageBoard/C# Sorry for troubling You.
-
Send a string from one form to another fornCreate win app, name main form Sender, add another form - Reciever and code:
namespace WindowsApplication1 { public partial class Sender : Form { **Reciever reciever;** public Sender() { InitializeComponent(); reciever = new Reciever(); reciever.Show(); } private void button1_Click( object sender, EventArgs e ) { reciever.Controls["label1"].Text = textBox1.Text; } } }
-
webBrowser.Url == null ?Thank for all I created additional dictionary to collect URL, becouse it seems to me that WebBrowswer has URL property resolved after "web paged displayed", But I can't create additional thread to wait while it will be finised -- modified at 8:29 Thursday 1st November, 2007
-
webBrowser.Url == null ?Could You please provide me with solution I have a panel and only one control on it - WebBrowser control. When I try to access to webBrowser.name is OK, but webBrowser.Url == null
WebBrowser webBrowser = webBrowserTabControl.SelectedPanel.Controls[0] as WebBrowser; webBrowsersCollection.SelectedWebBrowser = webBrowser.Name; currentURL = **webBrowser.Url**.ToString();
Thanks in advance