Wrong Autodiscover Server returned in XML
We are trying to migrate to new Exchange 2013 CAS servers, however the autodiscover xml information they handing out still has the old server name in it
X-CalculatedBETarget: old server
X-DiagInfo: old server
X-BEServer: old server
Persistent-Auth: old server
X-FEServer: old server
When we stop the services on the old server as a test Autodiscover fails even though dns etc points to the new server, we are not seeing any other issues, owa etc all works.
If I look at CN=autodiscover in ADSI there is no mention of the old server.
We are migrating from a single server to a loadbalanced pair, what entry should we use to ensure autodiscover doesn't fail in the even one server is down?
Hi Winnie, thanks for the response, in answer
Have the problematic user been moved to Exchange 2013? What’s the mailbox server version for the problematic user?
It's all the users and their mailboxes are actually on office 365, we are running hybrid mode as we have non Exchange\AD mail systems.
Please check the
Keywords
and
ServiceBindingInformationService attributes in the Service Connection Point (SCP) object in the following location of ADSIEdit:
It's not just the SCP record as non domain joined users get the same information returned when using dns to resolve autodiscover
The serviceBindingInformation is set as the dns name for the loadbalanced address of the front end servers
https://autodiscover.domain.com/autodiscover/autodiscover.xml
If you want to force all the old mailbox server users to connect to Exchange 2013 CAS server, please run the following command to have a try:
Get-ClientAccessServer | Set-ClientAccessServer -AutodiscoverServiceInternalUri
https://Exch13.domain.com/autodiscover/autodiscover.xml
Again AutodiscoverserviceInternalURI is already set to the load balanced front end server address.
https://autodiscover.domain.com/autodiscover/autodiscover.xml
Regards
Similar Messages
-
DI Server returning unescaped Xml
Hi All,
I have a slight issue with the DI Server, if, for example, I do a Get operation on a BusinessPartner - if there is any data that contains any of the characters required to be escaped in Xml (the Ampersand, Quotation Mark, Apostrophe, LessThan and GreaterThan) - the DI Server will not escape them and the returning Xml is Invalid according to the Xml specification and cannot be read by the XmlTextReader without error.
I also have a similar problem when using the CommandID attribute, the Apostrophe, Ampersands and Quotation Marks will not be escaped, despite them being so when passed in.
Note that in some circumstances I have seen escaped characters but the behaviour does vary, especially for the CommandID
I've had to implement some really unsightly work-arounds to help combat this issue, has anyone else come across it?
Thanks
GaryI've come across this same scenario for B1WS and am hoping for a solution from the community as well.
-
Server returning wrong status code
Hi,
I am using an applet in my weblogic application. The browser throws
"java.lang.ClassFormatError: Bad magic number" while trying to
load the applet. The httpd access log shows
128.163.140.61 - - [18/Jun/2003:15:17:15 -0400] "GET /marvin/MSketch.class HTTP/1.1"
200 5659
Though the return code is success (200), it is returning something else,
which cannot be interpreted as a class file by the browser, hence the error.
The same error is thrown, when I try to load a bogus applet, which is not present
at the server side.
128.163.140.61 - - [18/Jun/2003:15:38:32 -0400] "GET /dsds.class HTTP/1.1" 200
5659
The class file is deployed in the correct folder and I am able to access it
by
directly typing in the URL. In which case, the access log says
128.163.140.61 - "" [18/Jun/2003:15:52:38 -0400] "GET marvin/MSketch.class HTTP/1.1"
200 14362
Note the third feild (authenticated username, I assume) is "" instead of blank.
So what is going on here? The server is indeed doing the wrong thing by returning
the 200 code even when the class file is not present. Does this have something
to do
with the access control or other settings? Any help is appreciated.
-Thanks
PrasanthYou should check with portal server guys. What does your *obj.conf files look like?
-
CAS Server Returned in Autodiscovery Information
Hi,
I’m in the process of designing a new Exchange 2013 implementation for our business and I’m trying to get my head around something that I’m hoping someone here may be able to clarify for me.
My design will consist of multiple AD sites with a single CAS and MBX (collocated) in each. In regards to autodiscovery process I understand that the autodiscovery site scope parameter will/should point Outlook to a local CAS to retrieve the autodiscover
information. However the bit I don’t understand is what CAS server/s will be returned in the autodiscovery information (XML) that Outlook will then use to connect to. Will it be a local (site where Outlook client is located) CAS server?
Please note the InternalURL for the CAS servers will be their FQDN, there is no plan to use high availability for the CAS servers.
Thanks,
BenHi Winnie,
Thanks for your reply and your description on how Autodiscovery works.
I understand how Outlook connects to the Autodiscovery service, though the piece of information that I was after was in relation to WHAT information is returned in the XML file to Outlook. I presume that the URLs for all CAS’s are returned regardless of
what AD site they (CAS) are located at? If so then how does Outlook know which CAS server to connect to when it wants to talk to the mailbox server?
Thanks,
Ben
Hi,
Based on my knowledge, when the Autodiscover service connect to a CAS server successfully, an HTTPS response with an XML file would be returned. It includes the connection settings and URLs for the available Exchange services. Outlook uses the appropriate
configuration information and connection settings to connect to your Exchange messaging environment.
Generally, the Autodiscover service returns the following information to the client:
1. The user’s display name
2. Separate connection settings for internal and external connectivity
3. The location of the user’s Mailbox server
4. The URLs for various Outlook features that govern functionality such as free/busy information, Unified Messaging, and the offline address book
5. Outlook Anywhere server settings
For example, if the user in Site1 setup the Exchange account in Outlook. The Outlook would connect to CAS1 with Autodiscover service and retrieve all other services settings from CAS1 instead of CAS2 in Site2. When this user sends a service
request, the autodiscover would return service URL from CAS1. CAS1 will proxy the request to the local Exchange 2013 Mailbox server.
Regards,
Winnie Liang
TechNet Community Support -
Hi all,
having the following issue that started today,everything been working fine until now.
When Office 365 users send e-mail to some on premise users they get the following error in Return.
Remote
Server returned '550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found'
On premis users (Exchange 2013) can send to the same contact just fine.So for 365 users that failed we have tested the following:
Using OWA,says recepient cannot be found.
All 365 users fails to same recepients,for now a dosen People.
Address that fail,mailboxes are spread accross different databases.
Cannot see any error in event Viewer related to this.
Any tips?
thanks!
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2workHi Ed,
thanks for reply and sorry for late reply,been alot to do lately With lots if migrations and errors.
YEs you are correct that the problem is caused by useraccount was in wrong OU and was not sync to the "Cloud".
Move users Object to correct OU and all was working fine.Strange this is that it have worked before,so does it mean that if user is not in the OU defined to synced,it will be removed from the cloud?
Br
Ill put it as resolved :)
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2work -
Hi,
Any help appreciated!!
I'm getting this error: "The remote server returned an error: (401) unauthorised when I debug a provider-hosted app. I get the error on this line:
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
See code below
I created a high trust development environment following the instructions provided here:
http://msdn.microsoft.com/en-us/library/office/fp179901(v=office.15).aspx and
http://msdn.microsoft.com/library/office/fp179923
I created a provider-hosted app with the intent to:
create a SharePoint list in the appweb
Use self-signed certificate, tokenhepler.cs and sharepointcontext.cs to retrieve current user context and access on SharePoint. (No changes were made to tokenhelper.cs and sharepointcontext.cs)
retrieve list items from the SharePoint list in a button click event handler on a default.aspx of the remote web
What happens:
The app is deployed successfully to the Dev site
The SharePoint feature is deployed and activated
The default.aspx page of the remote web loads
The error (see image) is returned on clicking of the button
My environment is an on-premise SharePoint 2013 with AD and my dev box is standalone windows 8.1 running Visual Studio Professional 2013 Update 3.
The code block below is a copy of the default.aspx code-behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.Client;
using Microsoft.IdentityModel.S2S.Tokens;
using System.Net;
using System.IO;
using System.Xml;
using System.Data;
using System.Xml.Linq;
using System.Xml.XPath;
namespace Idea.GeneratorWeb
public partial class Default : System.Web.UI.Page
SharePointContextToken contextToken;
string accessToken;
Uri sharepointUrl;
protected void Page_PreInit(object sender, EventArgs e)
Uri redirectUrl;
switch (SharePointContextProvider.CheckRedirectionStatus(Context, out redirectUrl))
case RedirectionStatus.Ok:
return;
case RedirectionStatus.ShouldRedirect:
Response.Redirect(redirectUrl.AbsoluteUri, endResponse: true);
break;
case RedirectionStatus.CanNotRedirect:
Response.Write("An error occurred while processing your request.");
Response.End();
break;
protected void Page_Load(object sender, EventArgs e)
//// The following code gets the client context and Title property by using TokenHelper.
//// To access other properties, the app may need to request permissions on the host web.
var spContext = SharePointContextProvider.Current.GetSharePointContext(Context);
//var spContext = new ClientContext("MySPDevInstance");
//spContext.Credentials = new NetworkCredential("username", "password");
//using (var clientContext = spContext.CreateUserClientContextForSPHost())
// clientContext.Load(clientContext.Web, web => web.Title);
// clientContext.ExecuteQuery();
// Response.Write(clientContext.Web.Title);
string contextTokenString = TokenHelper.GetContextTokenFromRequest(Request);
if (contextTokenString != null)
// Get context token
contextToken = TokenHelper.ReadAndValidateContextToken(contextTokenString, Request.Url.Authority);
// Get access token
sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
accessToken = TokenHelper.GetAccessToken(contextToken, sharepointUrl.Authority).AccessToken;
// Pass the access token to the button event handler.
Button1.CommandArgument = accessToken;
protected void Button1_Click(object sender, EventArgs e)
// Retrieve the access token that the Page_Load method stored
// in the button's command argument.
string accessToken = ((Button)sender).CommandArgument;
if (IsPostBack)
sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
// REST/OData URL section
string oDataUrl = "/_api/Web/lists/getbytitle('Diagrams In Idea Generator')/items?$select=Title,Diagram,SharingStatus";
// HTTP Request and Response construction section
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + oDataUrl);
request.Method = "GET";
request.Accept = "application/atom+xml";
request.ContentType = "application/atom+xml;type=entry";
request.Headers.Add("Authorization", "Bearer " + accessToken);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
// Response markup parsing section
XDocument oDataXML = XDocument.Load(response.GetResponseStream(), LoadOptions.None);
XNamespace atom = "http://www.w3.org/2005/Atom";
XNamespace d = "http://schemas.microsoft.com/ado/2007/08/dataservices";
XNamespace m = "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
List<XElement> entries = oDataXML.Descendants(atom + "entry")
.Elements(atom + "content")
.Elements(m + "properties")
.ToList();
var entryFieldValues = from entry in entries
select new
Character = entry.Element(d + "Title").Value,
Actor = entry.Element(d + "Diagram").Value,
CastingStatus = entry.Element(d + "SharingStatus").Value
GridView1.DataSource = entryFieldValues;
GridView1.DataBind();
Any ideas what I might be doing wrongHi ,
Use the below code
Public string GetAccessToken(){
string sharePointSiteUrlHost = Page.Request["SPHostUrl"].Tostring();
string AccessToken = tokenHelper.GetS2SAccessTokenWithWindowsIdentity(sharePointSiteUrlHost, Request.LogonUserIdentity);
return accessToken;
Than initialize the ClientCOntext with the below Method
private static ClientContext GetClientContextWithAccessTokenString(string targetUrl, object accessToken)
ClientContext clientContext = new ClientContext(targetUrl);
clientContext.AuthenticationMode = ClientAuthenticationMode.Anonymous;
clientContext.FormDigestHandlingEnabled = false;
clientContext.ExecutingWebRequest +=
delegate(object oSender, WebRequestEventArgs webRequestEventArgs)
webRequestEventArgs.WebRequestExecutor.WebRequest.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
webRequestEventArgs.WebRequestExecutor.RequestHeaders["Authorization"] =
"Bearer " + accessToken;
return clientContext;
use this clientCOntext and it will work.
Do not use
SharePointContextProvider
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
Installed SP 2013 Foundation in my Hyper-V machine
Created and done all the steps mentioned here http://blogs.msdn.com/b/shariq/archive/2013/05/07/how-to-set-up-high-trust-apps-for-sharepoint-2013-amp-troubleshooting-tips.aspx && http://msdn.microsoft.com/en-us/library/office/fp179901%28v=office.15%29.aspx
for self signed certificate
copied those two certificates in my local machine(base machine) D drive
(D:\Cert)
Both VM and base machine are in same domain
Installed VS 2013 in my base machine and create a Provided hosted app with the copied certificates, (For creation i followed the above mentioned URL)
Just created and hit F5 to run in my base machine, but getting this error
Error occurred in deployment step 'Uninstall app for SharePoint': The remote server returned an error: (502) Bad Gateway.
Please help me to resolve this issue, trying to figure out from last 2 days
Thanks in Advance
ArunHi Harminder,
This happens because an app has already been deployed and you are deploying it again using the same version.
Resolution:
Open the AppManifest.xml file and change the version.
Vivek Jagga - MCTS SharePoint
SharePointExcellence -
Content-Type is net being set in HTTP header. Server returns 400 Bad Request error.
Hi,
I am trying to access an XML WebService. This service requires the content type of the request to be set to "text/xml". As you can see in the source code, I am setting the req.ContentType property to "text/xml".
However, this content type seems not to be added to the HTTP headers. The server returns a 400 Bad Request error as can be seen in the log.
I've attached a System.Net.trace log and it states:
[Public Key]
Algorithm: RSA
Length: 2048
Key Blob: 30 82 01 0a 02 82 01 01 00 bc 09 30 8a 1e 03 4d 7a ea 16 d3 a8 5e d8 5b 00 c4 8a c5 9f 26 bd 7d d6 cb 8b d0 db bd 93 2d 2b 3b 84 f6 20 79 83 34 67 51 37 21 ea 56 5e 18 d8 a3 db 72 43 0e 14 77 e2 64 cb 07 b6 2a 81 c7 f5 16 dd 19 c7 d9 68 0b 3a 81 5c f0 05 c9 ed 2b 37 00 31 41 37 8b 3a 73 4a 4d ab d7 d8 87 79 35 82 01 97 e3 3c be bb 84 e5 94 bb 87 52 e3 9f b5 fb 3e 33 38 c3 eb 73 42 ee ba 1e c5 4a 33 18 a1 0d 8a d2 10 a8 c5 3....
System.Net Information: 0 : [26780] SecureChannel#31884011 - Remote certificate was verified as valid by the user.
System.Net Information: 0 : [26780] ConnectStream#26966483 - Sending headers
API-VERSION: 1
Host: test.myhost.com
Content-Length: 329
Expect: 100-continue
Connection: Keep-Alive
System.Net Information: 0 : [26780] Connection#3888474 - Received status line: Version=1.1, StatusCode=100, StatusDescription=Continue.
System.Net Information: 0 : [26780] Connection#3888474 - Received headers
System.Net Information: 0 : [26780] Connection#3888474 - Received status line: Version=1.1, StatusCode=400, StatusDescription=Bad Request.
System.Net Information: 0 : [26780] Connection#3888474 - Received headers
0: Content-type
1: text/xml
X-Debug-Token: a810dc
X-Debug-Token-Link: /service/_profiler/a810dc
Connection: keep-alive
Content-Length: 3440
Cache-Control: no-cache
Content-Type: text/html; charset=UTF-8
Date: Tue, 14 Apr 2015 11:07:11 GMT
Server: Apache
...and here's the implementation of the web request:
private void ButtonSend_Click(object sender, EventArgs e)
WebHeaderCollection whCol = new WebHeaderCollection();
whCol.Add("API-VERSION", "1");
//whCol.Add("Content-Type", "text/xml; charset=UTF-8"); <-- That doesn't work in .NET. Content-Type has to be set on the ContentType-Property
string msg = _textBoxReq.Text;
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(_textBoxURL.Text);
byte[] data = Encoding.UTF8.GetBytes(msg);
req.Method = "POST";
req.ContentType = "text/xml; charset=UTF-8";
req.ContentLength = data.Length;
req.Headers = whCol;
req.GetRequestStream().Write(data, 0, data.Length);
string xml = "";
try
using (HttpWebResponse resp = (HttpWebResponse)req.GetResponse())
using (System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream()))
xml = sr.ReadToEnd().Trim();
catch (WebException we)
using (System.IO.StreamReader sr = new System.IO.StreamReader(we.Response.GetResponseStream()))
xml = sr.ReadToEnd().Trim();
_textBoxRes.Text = xml;
Can anyone help?
Thanks,
MiRiHi _MiRichter,
Well Done!
Thank you very much for sharing the solution to us.
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
hi,
im configured the as2 partner setup as per this http://msdn.microsoft.com/en-us/library/bb246129(BTS.20).aspx.
but when im process file , then file try hit partner url goes dyhradated state,then failed. then i got below error.
The remote server returned an error: (500) Internal Server Error.
please any help..
Thanks500 server error could be due to anyone of the following reasons:
Party configuration is wrong. Party properties/configurations have to be discussed upfront with the source/destination system and have to be in-line with
them.
Certificates have to be deployed in correct folders based on certificate types like private/public/signed etc.
Firewall (or network components) has to be opened accordingly for parties(systems) to interact. This change has to be done at the both the levels, source and destination.
If you receive it through HTTPReceive.dll (may uses this for AS2), you have to check its configurations.
Also 500 error, could occur even if your BizTalk artifacts has not been configured/deployed/enabled properly.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
hi
am using below code to get the byte array
byte[] myDataBuffer = client.DownloadData((new Uri(sourceUrl)));
for source of type .txt/.jpg no problem with accessing.but the file type with .master/.wsp/.cs
it is returning "The remote server returned an error: (403) Forbidden error for some file types" Error.how can i get rid of this.please help me
Thanks in AdvanceHi,
It seems there is something wrong with your code, from your code the account and key are the same, because their appsetting name are the same.
string account = ConfigurationManager.AppSettings["StorageAccountName"];
//string account = CloudConfigurationManager.GetSetting("StorageAccountName");
//string key = CloudConfigurationManager.GetSetting("StorageAccountAccessKey");
string key = ConfigurationManager.AppSettings["StorageAccountName"];
string connectionString = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}", account, key);
return CloudStorageAccount.Parse(connectionString);
If you use CloudConfigurationManager.GetSetting, please consider set azure project as the startup project, if not, this value will be null, this resulted in solution being started as a web project that didn't run inside the Azure emulator. Since CloudConfigurationManager.GetSetting
tries to get setting by contacting Azure (or Azure emulator in this case), and it is not running, it returns null.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Sync Java Proxy Server response in XML
Hi !
We've this scenario: File1 <-> XI <-> Java Proxy <-> File2
Using a BPM, we made a Async/Sync workflow. It works ok. It uses a SYNC Java Proxy Server.
The problem is that inside the java proxy, we query an http source that returns already XML formated data. We need this data to be mapped from the java proxy response message type to the File2 message type.
We know that we can parse the XML data inside the java proxy and fill the response message type structures (creating items, and array items for nested records), or directly code the mapping here.
But, is there any alternative to pass the received XML from the HTTP directly to XI, and map that XML structure with the File2 message type using graphical mapping ? instead of programming the xml parsing and creating the response structure?
If we create a message type for the response of the java proxy, as 1 field that contains the whole XML code, then we would not map it....Is there any way to complete or to add something to the received XML code, to convert it to the XI message format..so XI could interpret it as a true XI message and map it transparently via graphical mapping?
Thanks,
MatiasHi Akshay !
That's exactly what I don't know how to do it.
Inside the java proxy function I have a string variable, let's call it xmlResponse, that contains:
<customer>
<name>Matias</name>
<country>China</country>
</customer>
I also have a message type created in XI (let's call it MT_Response), that has the same fields as the above message structure. And my java proxy function is declared something like this:
public MT_Response.Type myFunction(MT_Request.Type myRequest) {
String xmlResponse="";
// http connection code goes here..
xmlResponse = httpConnection.getResponse();
return ??????? what ????
I don't want to parse the xmlResponse variable in order to fill the MT_Response structure. I need a more direct way, because the content of xmlResponse is already XML !
Thanks. -
IOException :server returned http response code:505 for url url
hi,
my program creates IOException server returned http response code:505 for url <some url>
I close the i/p stream.I dont know ,where is the problem.plz let me know.Thanks in advance.
Here is the code:
public class CallApplicationURL
private static final String className = "[CallApplicationURL] ";
private MailAlert ma = new MailAlert();
public String callURL(String purl, RequestObject ro, Debug log)
URL url = null;
String URLResponse = "No response from Provider";
ProxySetter ps = new ProxySetter();
try
ps.setProxy(ro, log);
url = new URL (purl);
catch (Exception e)
URLResponse = className+"Exception while URL assignment \n"+purl+"\n, Exception is "+e;
return (URLResponse);
try
HttpURLConnection h = (HttpURLConnection) url.openConnection();
h.connect();
BufferedReader br = new BufferedReader( new InputStreamReader( h.getInputStream() ) );
URLResponse = br.readLine();
br.close();
catch (Exception e)
URLResponse = className+"Exception while calling URL "+purl+", Exception is "+e;
return (URLResponse);
return (URLResponse);
}http response 505: http://libraries.ucsd.edu/about/tools/http-response-codes.html
This would indicate nothing is wrong with your applet but with your http server (not supporting http 1.1??)
A full trace might help:
To turn the full trace on (windows) you can start the java console, to be found here:
C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
In the advanced tab you can fill in something for runtime parameters fill in this:
-Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
if you cannot start the java console check here:
C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
add or change the following line:
javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
The trace is here:
C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
When you catch the exception you should print the stacktrace: (e.printStackTrace()). -
static class StorageUtils
public static CloudStorageAccount StorageAccount
get
string account = ConfigurationManager.AppSettings["StorageAccountName"];
//string account = CloudConfigurationManager.GetSetting("StorageAccountName");
//string key = CloudConfigurationManager.GetSetting("StorageAccountAccessKey");
string key = ConfigurationManager.AppSettings["StorageAccountName"];
string connectionString = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}", account, key);
return CloudStorageAccount.Parse(connectionString);
I have a web project and I converted it to "MS Azure Cloud Service Project"
I make the Azure project default and run CreateAndConfigureAsync() to create the container. It works fine and creates the images container in Azure storage.
Then I make my web project default and change CloudConfigurationManager.GetSetting to ConfigurationManager.AppSettings in StorageUtils class and run the web app project. Then I get "The remote server returned an error: (403) Forbidden" error whencontainer.CreateIfNotExistsAsync()
line get executed.
What is the reason for this?
async public void CreateAndConfigureAsync()
try
CloudStorageAccount storageAccount = StorageUtils.StorageAccount;
// Create a blob client and retrieve reference to images container
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
CloudBlobContainer container = blobClient.GetContainerReference("images");
// Create the "images" container if it doesn't already exist.
if (await container.CreateIfNotExistsAsync())
// Enable public access on the newly created "images" container
await container.SetPermissionsAsync(
new BlobContainerPermissions
PublicAccess =
BlobContainerPublicAccessType.Blob
catch (Exception ex)
}Hi,
It seems there is something wrong with your code, from your code the account and key are the same, because their appsetting name are the same.
string account = ConfigurationManager.AppSettings["StorageAccountName"];
//string account = CloudConfigurationManager.GetSetting("StorageAccountName");
//string key = CloudConfigurationManager.GetSetting("StorageAccountAccessKey");
string key = ConfigurationManager.AppSettings["StorageAccountName"];
string connectionString = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}", account, key);
return CloudStorageAccount.Parse(connectionString);
If you use CloudConfigurationManager.GetSetting, please consider set azure project as the startup project, if not, this value will be null, this resulted in solution being started as a web project that didn't run inside the Azure emulator. Since CloudConfigurationManager.GetSetting
tries to get setting by contacting Azure (or Azure emulator in this case), and it is not running, it returns null.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Server returned HTTP response code: 500.. i need help
i have this applet that communicates with a servlet.. when the applet connects to the servlet, i get the Server returned HTTP response code: 500 error.. when i am testing in my own pc, everything is fine.. when i tried deploying it in a server, the error occurs.. i do not have any idea what is wrong.. please help
sir, what do you mean by trace?
here is what i got from the java console..
java.io.IOException: Server returned HTTP response code: 500 for URL: http://mental_boi.s46.eatj.com/myServlet/loadMap?action=load&fileName=http://mental_boi.s46.eatj.com/CityNavigator/mapSpain.svg
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at edu.citynavigator.map.editor.MapEditor.loadMap(MapEditor.java:685)
at edu.citynavigator.map.editor.MapEditor.init(MapEditor.java:130)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at java.io.StringReader.<init>(Unknown Source)
at edu.citynavigator.map.editor.MapEditor.stringToSVG(MapEditor.java:703)
at edu.citynavigator.map.editor.MapEditor.init(MapEditor.java:131)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
and does the applet have to be signed?
Message was edited by:
hardcoder -
I am *almost* all the way through provisioning my on premise SP 2013 farm for SharePoint 2013 Workflows. Workflow manager is installed alongside Service Bus. Workflow Manager client is installed on the SP servers. I built a new simple list-based
workflow in SP Designer 2013, saved it, and published it without any errors. However, when I go back to the list in my portal and try to run the workflow, I get the "Sorry, something went wrong" page, and the logs say this:
05/15/2013 12:41:05.07 w3wp.exe (0x071C) 0x085C SharePoint Foundation
Runtime tkau Unexpected System.Net.WebException: The remote server returned an error: (500) Internal Server
Error. at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result) at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest
request, T content) 27be1b9c-f990-f096-34a8-7ac8816bc7a5
05/15/2013 12:41:05.08 w3wp.exe (0x071C) 0x085C SharePoint Foundation
General ajlz0 High Getting Error Message for Exception System.Web.HttpUnhandledException
(0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Workflow.Client.InternalServerException: Exception thrown from the data layer. For more details, please see the server logs. HTTP headers received from the server
- ActivityId: 0c03f692-8153-43a7-bed5-096214b06168. NodeId: VM22. Scope: /SharePoint/default/d386fdc7-ea7b-4d46-9a39-5c114096eef8/f203a564-e83a-47a3-b11b-e432ac1e6dab. Client ActivityId : 27be1b9c-f990-f096-34a8-7ac8816bc7a5. ---> System.Net.WebException:
The remote server returned an error: (500) Internal Server Error. at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(... 27be1b9c-f990-f096-34a8-7ac8816bc7a5
05/15/2013 12:41:05.08* w3wp.exe (0x071C) 0x085C SharePoint Foundation
General ajlz0 High ...IAsyncResult result) at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest
request, T content) --- End of inner exception stack trace --- at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) at Microsoft.Workflow.Client.InstanceManager.GetInternal(Int32
skip, Int32 count, String workflowName, WorkflowInstanceStatus workflowStatus, IDictionary`2 activationMetadataFilter) at Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider.EnumerateByMonitoringParameter(Guid monitoringParameter,
Int32 offset, Int32 count, Boolean checkPermissions) at Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider.EnumerateInstancesForListItem(Guid listId, Int32 itemId, Int32 offset) at Microsoft.Sh... 27be1b9c-f990-f096-34a8-7ac8816bc7a5
05/15/2013 12:41:05.08* w3wp.exe (0x071C) 0x085C SharePoint Foundation
General ajlz0 High ...arePoint.WorkflowServices.FabricWorkflowInstanceProvider.EnumerateInstancesForListItem(Guid
listId, Int32 itemId) at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPageBase.ConstructStatusArraysWF4(ArrayList running, ArrayList completed, Boolean onlyMyWorkflows) at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPage.ConstructStatusArrays()
at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStages... 27be1b9c-f990-f096-34a8-7ac8816bc7a5
05/15/2013 12:41:05.08* w3wp.exe (0x071C) 0x085C SharePoint Foundation
General ajlz0 High ...AfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 27be1b9c-f990-f096-34a8-7ac8816bc7a5
05/15/2013 12:41:05.08 w3wp.exe (0x071C) 0x085C SharePoint Foundation
General aat87 Monitorable 27be1b9c-f990-f096-34a8-7ac8816bc7a5
Some sort of "general server error" returns a 500 code, but I can't tell from this what the problem(s) might be. Has anyone seen this before?
Thanks.Go to the server running Workflow Manager and open the Event Viewer; Applications and Services Logs; Microsoft-Workflow; Operational; and look for the underlying error. In our case, the CU for Workflow Manager did something to the SQL permissions and
we ended up using the workaraound described here:
http://social.msdn.microsoft.com/Forums/windowsazure/en-US/054d2a58-8847-4a6a-b1ab-05a79f49fe65/workflow-manager-cumulative-update-february-error?forum=wflmgr
Joe
Maybe you are looking for
-
How to handle 'ENTER' Key on ALV Editable Grid on sub screen (Tabstrips)
Hello Experts , I have 2 questions with ALV Editable grid; please help me if you have answers. I created ALV grid on one of sub screens on a Tab Strip, As soon as user types one of the columns of the ALV grid and press u2018ENTERu2019 key, it has to
-
Problem in DAM video conversion
Hi, I am using Webcenter Content 11.1.1.8.0 and I configured IBR for video conversion. When I uploadmp4 video file, I am getting below error, Content item 'Content000242' was not successfully checked in. Unable to set the default rendition set for DA
-
Xorg 1.10 and catalyst 11.2 AUR are in conflict
Cannot upgrade Last edited by nikunjm (2011-03-19 07:08:51)
-
Settings tells me it can't verify my email see email for message how to set but I get no email
I get a message "photo stream cannot find iCloud account iCloud" there are buttons for "ignore" if I choose that it sometimes just brings up the error message again and crashes the app I'm in. Other button says "go to settings" if I choose that setti
-
IPhoto unable to connect to photostream
all i get is iphoto unable to connect to photostream, tried everything. Any suggestions?????