405 POST Method Not Allowed using asp for Crystal report file - visual-studio-2012

We are moving a project from IIS6, Windows Server 2003 to Windows 7, IIS7, VS2012 now. Part of this project uses old asp files to open crystal report files. It was working fine on our old server. After I moved them to the new server. It throws me an error message: "HTTP Error 405.0 - Method Not Allowed."
We have a Report.asp file. It uses a form post method to display a crystal report file. Here is the code:
(form method="POST" action="/Reports/InfoNetOverDueDate1.rpt" target="_blank" id=frmOpenReport name=frmOpenReport>
I checked the Headers info. It only Allows GET, HEAD, OPTIONS, TRACE.
Here is what I tried. In IIS, under my Handler Mappings --> Add a Module Mapping. Request Path: .rpt; Module: ProtocolSupportModule; Verbs: GET, POST.
It doesn't throw me any error message, but it doesn't show anything either.
Anybody there can help me with this? Thanks a lot in advance.

Related

IIS configuration - web.config. Problem with redirecting to error page

I have problem with IIS configuration.
I have SOAP Service available via IIS.
When I create request with good values I will receive 200 and content type as text/xml and body as xml string.
When I create request with wrong values - in my code I will throw FaultException, but from Visual Studio I receive 500 and body as xml string with my values, but on my server environment somehow I am redirecting to error page.
I tried to setup this in web.config file, but after removing all values connected with errorPages - still the same problem.
Any idea how to fix this?

Asp.Net Custom Errors Default Redirect not working

In my web.config file I added a default error redirect page,
However I get this error,
"Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated."
I tried all suggestions found on internet and did not help me.
My project: MVC 5, Angular 5, Visual studio 2017.
Thank you.

OData service can be called in Browsers but in Excel 2016

I got a sample servlet using Olingo lib: https://odata-demoservice.run.aws-usw02-pr.ice.predix.io/DemoService.svc/Products. It works fine in Chrome/IE/FF or in Postman. But when I query in Excel 2016/OS Windows 10 with the steps like:
New Query
From Other Sources
From OData Feed
Got the error like: "We encountered an error while trying to connect. Details: Invalid URI: The hostname could not be parsed"
Any ideas are appreciated.
Thanks
#RodolfoOliveira: yes, I resolved this issue. the reason is that when I deployed it to Cloud, the uri in metadata is still http. What I did is implement a CustomProcessor and correct the url.
More detail is here: https://issues.apache.org/jira/browse/OLINGO-758
just need to do the custom Processor. Do the same as the original source but change a bit about the url. Detail in here: https://olingo.apache.org/javadoc/odata4/org/apache/olingo/server/api/processor/DefaultProcessor.html
Register it with the Handler at first, then the issue should be solved.
ODataHttpHandler handler = odata.createHandler(edm);
handler.register(new CustomDefaultProcessor());
Hope this help.

Microsoft sample WordCount does not work on Local Cluster

I am trying to learn the development process for Service Fabric
by using one of the popular samples from Microsoft, called WordCount.
I do not have Azure account yet, so I installed the Local Cluster
on my Windows 10. I went through the instructions on Microsoft
website and most of it works. I can see the Cluster Manager with:
http://localhost:19080/Explorer
where I can see the application:
fabric:/WordCount WordCount 1.0.0 OK Ready
From inside the Powershell I can connect to the Local Cluster
and run the cmdlets with output as expected
Get-ServiceFabricApplication
Get-ServiceFabricService -ApplicationName 'fabric:/WordCount'
Get-ServiceFabricPartition 'fabric:/WordCount/WordCountService'
The problem is when I run
http://localhost:8081/wordcount/index.html
the browser does not display anything. It is supposed to display
the counts of words generated by client-side JavaScript
and processed by ASP.NET Web API. My browser has JavaScript enabled.
I do not know yet enough about the code in the sample but I have its solution with 4 projects loaded in VS2017. I just want to make it work ASAP.
Below I attach a part of console output in my browser (FireFox). Apparently, the JS script is getting
[HTTP/1.1 404 Not Found 0ms]
in response to all requests.
POST
XHR
http://localhost:8081//wordcount/index.html/api/AddWord/WYVyl [HTTP/1.1 404 Not Found 0ms]
XML Parsing Error: no root element found
Location: http://localhost:8081//wordcount/index.html/api/AddWord/WYVyl
Line Number 1, Column 1: WYVyl:1:1
POST
XHR
http://localhost:8081//wordcount/index.html/api/AddWord/YcIMv [HTTP/1.1 404 Not Found 0ms]
XML Parsing Error: no root element found
Location: http://localhost:8081//wordcount/index.html/api/AddWord/YcIMv
Line Number 1, Column 1: YcIMv:1:1
GET
XHR
http://localhost:8081//wordcount/index.html/api/Count [HTTP/1.1 404 Not Found 0ms]
XML Parsing Error: no root element found
Location: http://localhost:8081//wordcount/index.html /api/Count?c=0.7465426272903215
Line Number 1, Column 1: Count:1:1
The problem is that you're trying to open up "http://localhost:8081/wordcount/index.html" while you should use "http://localhost:8081/wordcount/". Otherwise the javascript code builds incorrect url to access the services.

After migration to sharepoint 2010 search result error Cannot find ContentPlaceHolder 'SPNavigation'

I am migrating MOSS 2007 portal to sahrepoint 2010. I am not doing visual uplgrade. to check search setting i typed a keyword and pressed enter anfd it threw me below error. please let me know what to do as I am completely new in this.
Do I need to add the "SPNavigaation" placeholder in my master page. I dont know what custom.master page it is refering.
Error:
Server Error in '/' Application.
Cannot find ContentPlaceHolder 'SPNavigation' in the master page '~masterurl/custom.master', verify content control's ContentPlaceHolderID attribute in the content page.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Cannot find ContentPlaceHolder 'SPNavigation' in the master page '~masterurl/custom.master', verify content control's ContentPlaceHolderID attribute in the content page.
Dear all I solved the issue by adding "
<asp:ContentPlaceHolder ID="SPNavigation" runat="server"></asp:ContentPlaceHolder>
"in my master page

Resources