Click here to Skip to main content
15,867,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
service is working fine in local but not working in iis

What I have tried:

string uri = context.UriTemplateMatch.RequestUri.OriginalString.Replace
(context.UriTemplateMatch.RequestUri.Query, "");
DataSet dsconsumersecretkey = GetApiSecret(pa["oauth_consumer_key"].ToString());
if (dsconsumersecretkey.Tables[0].Rows.Count != 0)
{
consumersecret = dsconsumersecretkey.Tables[0].Rows[0]["APISecret"].ToString();
}
//consumersecret = "Arun";

OAuthBase oauth = new OAuthBase();

string hash = oauth.GenerateSignature(
new Uri(uri),
pa["oauth_consumer_key"],
consumersecret,
null, // totken
null, //token secret
"POST",
pa["oauth_timestamp"],
pa["oauth_nonce"],
out normalizedUrl,
out normalizedRequestParameters
);
Posted
Comments
Suvendu Shekhar Giri 29-Sep-16 4:39am    
Any error?
F-ES Sitecore 29-Sep-16 4:50am    
Then there is something different between your local environment and your iis hosting, but we can't possibly know what that is, you'll need to investigate it yourself. Does GetApiSecret use config files and if so are the present and correct? Or if it uses a database is that data ok? There isn't much anyone can do to help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900