Web Forms :: SSL Must Not Be Enabled For Pick Up Directory Delivery Methods
Feb 26, 2013i tried to send a mail..its showing the error...
ssl must not be enabled for pick up directory delivery methods..
i tried to send a mail..its showing the error...
ssl must not be enabled for pick up directory delivery methods..
Building an MVC 2.0 web site and using Content Delivery Network (CDN) in my Site.Master. I'm using the following CDN:
Yahoo's reset-fonts-grids.css
jQuery 1.4.2
jQuery Validation
All of these CDN are delivered using [URL]
My web site currently supports both SSL and non-SSL pages.
When navigating to SSL enabled pages, I get an error because the CDN are linked to [URL]
Although I'm aware that you can use an SSL version of CDN but my question is more like:
Since I have non-SSL and SSL pages all sharing the same *Site.Master* what should I do?
Should I simply get the SSL enabled version one for both SSL and non-SSL pages?
Or should I do some kinda of "if...else"?
I have a REST WCF service defined as follows:
[ServiceContract]
public interface IRest {
[OperationContract]
[WebGet(UriTemplate = "/test")]
int Test();
}
With the following web.config:
[code]....
EDIT: You can all reproduce this by creating a new WCF Service in VS2008 (new Project > WCF Service Application). Browse to the dummy method ('GetData')... you will notice it returns 400... that's fine because it shows it's still forwarding to WCF. However, if you enable wildcard mapping in IIS6 you will now get a 404, meaning WCF is no longer intercepting the request.
I'm a complete beginner with Active Directory, never having done anything with it. So here's probably a basic question.
Can I run a simple query from within an application to get all enabled active directory users?
In my asp.net 3.5 web site i have default.html page defined as first default document in iis 6 web site configuration window. I have URL rewriting module written and when the request for default.htm comes its pointed to default.aspx page.
View 1 RepliesSay If got these dates in a TextBox 2010/06/19,2010/06/20,2010/06/21,2010/06/22,2010/06/23, i want automicly my Start label to pickpup the lowest date and Label End to pickup the highest Date Start: [2010/06/19] End: [2010/06/23] between brackets is my label
View 16 Replieswhen I upgraded my root website from ASP.NET MVC 3 Preview 1 to the new Beta 1. I am using RavenDB, which needs to run as a virtual sub-application with Windows authentication instead of Forms authentication. I had raven working like described above just fine in preview 1, but with beta 1, now it won't work. It looks like no matter what I try, the membership provider system for my root website is redirecting me back to the login page, even though I've set my RavenDB virtual directory to use windows authentication and cleared out the membership and roles providers in it's web.config. I guess MS changed something to do with
either routing or authentication between preview 1 and beta 1. If anyone else sees this problem and knows how to fix it, I would be in your debt. I would guess that the easiest way to recreate the problem would be to create a new ASP.NET MVC 3 Beta 1 root website, then add a virtual directory marked as an application. See if you can get the root site to use the forms auth provided by default, but have the virtual directory use windows auth, denying all users but a specific one of your choosing. I can't seem to get this scenario working in the beta like I did in the preview.
So far, I've seen (and I'm using the following) scripts to show/hide a div or other controls depending on another control in ASP.NET
$('[id$=myRadio_0]').click(function() { $('[id$=myDiv]').show(); });
$('[id$=myRadio_1]').click(function() { $('[id$=myDiv]').hide(); });
and of course, my div in html like
<div id="myDiv" runat="server" visible="false">
and that works fine when the user selects either option of the radiobuttonlist. However, when I assign that radiobuttonlist a value of 1 or yes on my Page_Load on code behind, that isn't (and probably can't be) caught by jQuery, and my div remains invisible even though the control has a value of Yes/1. So, do I need to set the visibility of that div from code behind, or is there a way in jQuery to force a scan of these dependencies after i've set the values for the main controls in code behind?
How will we get failure msg when email is not send to sender address...
View 1 Repliespublic class CacheHelper { /// <summary> /// Removes object with the specified key. /// </summary> /// <param name="key">The key.</param> [code]....
I have this methods for caching..I need to change this methods to use in aDictionary<string,object>
How do I need to change this code Because I am new to asp.net I am still learning..
the app doesent pick up controls
View 5 RepliesHas anybody else had an issue with the sender address not being used as the return-path/bounce address when using system.net.mail to send email with a different address for the return-path/sender and the from address and using the SpecifiedPickupDirectory delivery method? This issue is particularly important when you need to send mail from a "user" address, but want bounce backs to come to a different address so they can be processed. Using the code below, I think you can reproduce the issue.
Imports System.Net.Mail
Partial Class emailtest
Inherits System.Web.UI.Page
Protected Sub test_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles test.Click
' Build Message
Dim mail As New MailMessage
mail.To.Add("user@gmail.com")
mail.From = New MailAddress("from@domain.com")
mail.Sender = New MailAddress("sender@domain.com")
mail.Subject = "Test Subject"
mail.Body = "Test Body"
' Drop in Pickup Directory
Dim smtpPK As New SmtpClient
smtpPK.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory
smtpPK.PickupDirectoryLocation = "C: emp"
smtpPK.Send(mail)
' Send Message Directly
Dim smtp As New SmtpClient("mail.domain.com")
smtp.Send(mail)
End Sub
End Class
I have combined my SQL result to display in drop down list in such manner:
" SAV 123-423-231 "
" CUR 234-234-212"
User selects which account to view. So if the user selects SAV 123-423-231, I have to pass in the bank account number. How do I do that?
By split? I tried doing this:
ddlAcc.text.split(" ")
how to cause an event to fire when picking a date from GMDatePicker?
Somewhat similar to SelectedIndexChanged from dropdown list...
I have two web services on two different servers communicating
WS1.asmx
Code:
<%@ WebService Language="VB" Class="WS1" %>
Imports System
Imports System.Web
Imports System.Web.Services
Imports System.Xml.Serialization
Imports System.Net
Imports System.IO
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' <System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="[URL]_
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
Public Class WS1
Inherits System.Web.Services.WebService
Dim IP as String = "192.168.0.174"
<WebMethod()> _
Public Function Function1(ByVal s1 As String) As String
Dim ReturnString As String = ""
Try.........................
I use a function that sends emails to some users.
I use the following code to send delivery notification failure messages to the sender email
when a message fails to reach the user.
I use the following code.
System.Web.Mail.MailMessage messagetest = new System.Web.Mail.MailMessage();
messagetest.Headers.Add("Disposition-Notification-To", txtFrom.Text);
now I want to enable the sender to receive a Delivered receipt message when the mail arrives successfully.
how can this be done ?
In my application I have a formview, used for inserting/editing records in a product details table.
My problem is now, that one of the fields is used for the filename of a productimage, uploaded to a folder on the server from another page.
When inserting - or editing - a record, it should be possible somehow to get list of the files in the productimages folder, select one, and then store the filename (no path needed) in the database. basically I need some kind of 'file-picker' to select the filename and put it into a textbox. It could be anything from a dropdownlist to something more sofisticated - as long as I can include it in my formview.
I have a DataList which I am populating using SqlDataSource. DataList has four columns as follows
1) Name
2) ProductID
3) ImageFileName <<<<< this DataKeyField
4) Unit Price
I want to pick "ImageFileName" whenever mouse hovers the row and then pass that ImageFileName to JavaScript function.
Why is this so hard? Seems like a simple task:
Here is what I am doing. Gridview to list a table. The table is mostly keys so I display one value and have a dropdown list to update the Instructor (key). Like one normally does, the dropdown list has a display value and a 'hidden' value which should be the value updated to the table, in the UPDATE event.
It does not work.
(1) When I click 'edit' the value in that field that was on the list of the grid is NOT the same value in the DropdownList, so the index of the ddl is not coming from the value on the grid (which is a hidden field on the grid).
(2) When I pick a new instructor, the value put into the table is basically random.
I would debug it but I have no idea what events to look at or how to look at the actions taking place during edit and update.
[Code]....
I have an extension method as follows:
public static class PageExtensions
{
public static int GetUserId(this Page targetPage)
{
var user = Membership.GetUser(targetPage.User.Identity.Name);
return (int)user.ProviderUserKey;
}
}
Now in a page I need to use this method in a static WebMethod, so I have added another 'extension method' to PageExtensions:
public static int GetUserId()
{
return (int)Membership.GetUser(HttpContext.Current.User.Identity.Name).ProviderUserKey;
}
and I call it as follows in my WebMethod: PageExtensions.GetUserId()
I am not getting email delivery status report in asp.net. if i am sending 500 email if 200 failed then how to know which 200 email failed?
View 1 RepliesI am trying to take advantage of the Content Delivery Network Support and have run into a snag
I set the script manager to look like this
<asp:ScriptManager ID="ScriptManager1" runat="server" EnableCdn="true">
I'm running a website and to keep my members informed I regularly send mails to our members by the following code :
[Code]....
But the problem is that some mails are not been delivered when I do this by this code.
This is especially not done for gmx.de or gmx.eu mails; but also for other type of mail addresses.
When I send the mail individually I don't have problems.
GMX refers to the following text to avoid SPAM [URL]
Any Example Microsoft Ajax Content Delivery Network & Jquery
View 1 RepliesI want to create a web page where a registered user picks a number from 1 to 10. When a user picks a number that number is removed from the available list.
Is there a way to guaranty that no 2 or more users can have the same number?