|
I have a problem that I'm not sure what to do about.
I have a asmx web service (as opposed to WCF) that I deployed to an existing website which resideson a secure server (https).
I have a silverlight 3 app on the same site that is supposed to use this service, but when it tries to call one of the methods, I get this exception:
The provided URI scheme 'https' is invalid; expected 'http'.<br />
Parameter name: via<br />
at System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)<br />
at System.ServiceModel.Channels.HttpChannelFactory.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)<br />
at System.ServiceModel.Channels.HttpChannelFactory.OnCreateChannel(EndpointAddress remoteAddress, Uri via)<br />
at System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)<br />
at System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)<br />
at System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)<br />
at System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)<br />
at System.ServiceModel.ClientBase`1.ChannelBase`1..ctor(ClientBase`1 client)<br />
at FMDashboard2.FMDashboardReference.FMDashServiceSoapClient.FMDashServiceSoapClientChannel..ctor(ClientBase`1 client)<br />
at FMDashboard2.FMDashboardReference.FMDashServiceSoapClient.CreateChannel()<br />
at System.ServiceModel.ClientBase`1.CreateChannelInternal()<br />
at System.ServiceModel.ClientBase`1.get_Channel()<br />
at FMDashboard2.FMDashboardReference.FMDashServiceSoapClient.FMDashboard2.FMDashboardReference.FMDashServiceSoap.BeginGetListOfOrganizations(GetListOfOrganizationsRequest request, AsyncCallback callback, Object asyncState)<br />
at FMDashboard2.FMDashboardReference.FMDashServiceSoapClient.BeginGetListOfOrganizations(AsyncCallback callback, Object asyncState)<br />
at FMDashboard2.FMDashboardReference.FMDashServiceSoapClient.OnBeginGetListOfOrganizations(Object[] inValues, AsyncCallback callback, Object asyncState)<br />
at System.ServiceModel.ClientBase`1.InvokeAsync(BeginOperationDelegate beginOperationDelegate, Object[] inValues, EndOperationDelegate endOperationDelegate, SendOrPostCallback operationCompletedCallback, Object userState)
When I try to browse directly to the web service, I get this asp.net exception:
Server Error in '/fm/tools/batsnet/FMDashboardService' Application.<br />
--------------------------------------------------------------------------------<br />
<br />
Configuration Error <br />
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. <br />
<br />
Parser Error Message: Could not load type 'BATS.NET.Auditing.WebAuthenticationFailureAuditEvent'.<br />
<br />
Source Error: <br />
<br />
<br />
Line 185: <add name="Audit Events" type="System.Web.Management.WebFailureAuditEvent" startEventCode="0" endEventCode="2147483647"/><br />
Line 186: <!-- Log authentication failure events --><br />
Line 187: <add name="Auth Failure Audits" type="BATS.NET.Auditing.WebAuthenticationFailureAuditEvent" startEventCode="0" endEventCode="2147483647"/><br />
Line 188: <!-- Log membership audit events --><br />
Line 189: <add name="Membership Audit Events" type="BATS.NET.Auditing.WebMembershipAuditEvent" startEventCode="0" endEventCode="2147483647"/><br />
<br />
<br />
Source File: D:\Web\aetc\fm\tools\batsnet\web.config Line: 187 <br />
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
I have a dropdownlist2 in a gridview whose datasource and select control parameter is based on the selected value of dropdownlist1 in the same gridview. Everything works great for insert, but when I edit the row in the gridview and change the selected value in dropdownlist1, I get an error of "'dropdownlist2' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value" This kinda makes sense to me. At what stage (maybe drowdownlist1 selectedindexchanged?) do I tell dropdownlist2 that it needs to requery so I don't get the error. I can just tell it to select the 0 index by default here for dropdownlist2. An example would be lovely.
|
|
|
|
|
HI all,
I have value stored in DATETIME variable in "2010-03-15 08:00:55" this format
but i want to know to 15 march 2010 is a sunday or monday .......how to do this
Thanks and regards,
Amit Patel
|
|
|
|
|
Hiding in plain sight in the documentation
DateTime dt = DateTime.Parse("2010-03-15 08:00:55");
if(dt.DayOfWeek == DayOfWeek.Sunday || dt.DayOfWeeek == DayOfWeek.Monday)
{
}
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I've added the AutoCompletExtender using a webservice to a textbox and all is well, except, the list is long (maybe 20,000 records from a dataset). How can I add a scroll bar and limit the number of suggestions? I tried adding the following except when I tried to drag the scroll bar, it triggered the onlick event. Any help would be greatly appreciated.
#AutoComplete
{
width: inherit;
overflow: scroll;
height: 200px;
}
Visual studio 2008
AjaxControlToolKit 3.5
C#
Web Page
Sql Dataset
|
|
|
|
|
Increase your MinimumPrefixLength. A dropdown with 20000 items isn't useful to anyone.
|
|
|
|
|
This is certainly a good suggestion; however, I would still be inerested in a scroll bar.
|
|
|
|
|
The one that comes in the AjaxControlToolkit has a scrollbar already. AutoComplete[^]
If you can't use that one, get the source for the toolkit and see how they implement it to provide taht scrollbar.
|
|
|
|
|
I've got the scroll bar working through thr CSS. Thanks for all your help.
|
|
|
|
|
In .NET 1.1, the machine.config file has an element processModel with the following two attributes:
1. maxWorkerThreads
2. maxIoThreads
Where can I set the same in .NET 2.0?
Thanks.
|
|
|
|
|
hi to all....
i have no so much experience in sql.
one query i want may be its simple but still i want it.
if there is table "EmpTbl" with fields
empid,empname and salary.
Then how i find the second max salary and second last salary of the Employee???
plz help me out ...
thanks
|
|
|
|
|
You'll get a lot of results if you search on google anyways..
Here the queries..
For second max.
select MAX(salary) from EmpTbl where salary < (select MAX(salary) from EmpTbl)
and For second min
select Min(salary) from EmpTbl where salary > (select MIN(salary) from EmpTbl)
|
|
|
|
|
thanks a lot ok from this i will search on google instead of asking in forum..
but thanks a lot .....
|
|
|
|
|
Here is one I did for freight_cost: You will need the second example.
-- max cost
SELECT MAX(Freight_Cost)
FROM Product_Freight_Cost
-- 2nd max cost
SELECT MAX(Freight_Cost)
FROM Product_Freight_Cost
WHERE Freight_Cost NOT IN (SELECT MAX(Freight_Cost) FROM Product_Freight_Cost)
|
|
|
|
|
|
I created div like this:
<br />
System.Web.UI.HtmlControls.HtmlGenericControl dynDiv = new System.Web.UI.HtmlControls.HtmlGenericControl("DIV");<br />
And hyperlink like this:
<br />
System.Web.UI.WebControls.HyperLink link = new System.Web.UI.WebControls.HyperLink();<br />
link.NavigateUrl = "http://blabla.com";<br />
link.Text = "Click here";<br />
link.Target = "_blank";<br />
Now I am trying to display this link in div that i could click on it. When I add link to div like this:
<br />
dynDiv.InnerHtml= link;<br />
It doesn't work.
Help plz.
|
|
|
|
|
What doesn't work?
Where is the code to place the DIV in your UI? You need to add DIV dynamic control to some container such that it is visible. Once the Div is visible, all the contents present in it will be visible.
Add controls to div and then add div to some container.
|
|
|
|
|
I added it to my module like this:
<br />
this.Controls.Add(dynDiv);<br />
And like i wrote before when i add innerhtml i get for link this output:
System.Web.UI.WebControls.HyperLink
|
|
|
|
|
Which line of my answer you were able to got?
Adding a div to any container:
You did: this.Controls.Add(dynDiv); totally WRONG
Where is the container to which you added it?
It would be something like if you have a panel in the page:
Panel1.Controls.Add(dynDiv);
Adding controls to the div:
You did: dynDiv.InnerHtml= link; again WRONG
Is this the add the controls?
It would be:
dynDiv.Controls.Add(link);
You are done!
I would suggest you to pick a book please. Read it. It will help improving fast.
|
|
|
|
|
If i add link as control to Panel, it works, but all the links are shown at the bottom. If i add links to div, i get error at page load.
I have one div. Is it possible to show few hyperlinks at random places in div? For example i am getting some info and i am adding info in single div with div.Innerhtml+=info
How could i add hyperlink at the end of one part of info?
Hope you understand what i am trying to do.
|
|
|
|
|
instead use Panel1.Controls.Add(MyDiv); try using Panel1.Controls.AddAt(0, MyDiv);
Where 0 is the position of the controls!
|
|
|
|
|
Hi, I have a tab container with two tab panels on default.aspx as
Default.aspx
===============
<ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server" />
<ajaxToolkit:TabContainer ID="LayerTabContainer"
runat="server"
ActiveTabIndex="0"
Height="600px">
<ajaxToolkit:TabPanel ID="CreateLayerPanel"
runat="server">
<HeaderTemplate >
Layer configuration
</HeaderTemplate>
<ContentTemplate>
<iframe id="LayerConfig"
style="WIDTH: 100%; HEIGHT: 100%"
src="Layers.aspx"
frameborder="0"
scrolling="yes">
</iframe>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="PreviewMapPanel"
runat="server">
<HeaderTemplate >
Preview Map
</HeaderTemplate>
<ContentTemplate>
<iframe id="Iframe1"
style="WIDTH: 100%; HEIGHT: 100%"
src="Preview.aspx"
frameborder="0"
scrolling="yes">
</iframe>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
The first tab panel hosts Layers.aspx and layer.aspx has a Button.
When I click this button from Layer.aspx, I want the active tab (on default.aspx) to change to second tab panel which hosts preview.aspx.
I can not get hold of the tabcontainer in the button click event in the child page.
Any tips how to achieve this?
Thanks,
Vijay
|
|
|
|
|
Hello,
I am trying to import gmail and yahoo contacts in my asp.net website. i m using OpenContactsNet.dll and using following code
GmailExtract extractor = new GmailExtract();
NetworkCredential nc = new NetworkCredential(txtUserName.Text, txtPassword.Text);
bool res = extractor.Extract(nc, out list);
But this code is'nt working. I got false response
what could be the reason??
The .Extract function gives the following error when executes the line of code
HttpWebResponse exportResponse = (HttpWebResponse)contactsRequest.GetResponse();
Error: The remote server returned an error: (401) Unauthorized
Please help me in this regard as i have tried every thing. I place the app on www root but still no luck.. plzz help
|
|
|
|
|
Asfand wrote: Error: The remote server returned an error: (401) Unauthorized
Hmmm, could it be the username and password are not correct?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I wish that could be the easiest reason but not on my case. Id and pass are perfect...
|
|
|
|