**mismatched input '\r\n' expecting RULE_AS_A** error thrown while editing in story file of Jbehave Editor - eclipse

[Here is the attachment for the format that appears][1]
Currently I'm working on BDD framework using Jbehave. When started of with my story file writing it with Jbehave Editor. Following Errors occured
mismatched input '\r\n' expecting RULE_AS_A
mismatched input 'Scenario:' expecting RULE_I_WANT_TO
missing RULE_IN_ORDER_TO at 'Testing'
Here is my story file:
Narrative: Testing Connected Caseloads Module
Scenario: To verify the permission check for Connected Caseloads tab
Given User launch the application
When User provide valid user email id
And User Password
Then User should be logged in into Platform Application
Then Go to Configure tabs visibility
Then Check admin role is present by default
Then Add buyer role to Connected Caseload widget
And Logout of the application successfully
It would be helpful, If anyone assist me why the error occurs
Note: I'm able to run the script successfully, even though error is there in the story file

Related

Why does view.officeapps.live.com present an error when accessing a file?

**Why does view.officeapps.live.com present an error when accessing a file?
**
Just got disconnected from a Microsoft get-help conversation after the guy couldn't solve the issue.So i take it to the omniscient strangers on the internet.
I am trying to access a file stored on a web server via view.officeapps.live.com . The file is linked bellow v
https://www.fileserver.kweb-systems.ml/Files/kai-young.ml/Personal-CV/CV.pdf
https://view.officeapps.live.com/op/embed.aspx?src=http://www.fileserver.kweb-systems.ml/Files/kai-young.ml/Personal-CV/CV.pdf
The error also occurs on the encrypted link to
https://view.officeapps.live.com/op/embed.aspx?src=https://www.fileserver.kweb-systems.ml/Files/kai-young.ml/Personal-CV/CV.pdf
The file to open in a word online window

Azure database works on localhost, but not when used with azure service app

So I've been trying to publish my first project to azure. I've got everything set-up, a service app and a sql database.
My initial page loads properly(It's the standard view for a .net core web application).
The first thing I need to do is register a new user. Whenever I try through my azure app (myapp.azurewebsites.net) it fails and the logs says it's db related.
However I try the same thing by running the application on my machine in production environment, again connected to the azure sql server and everything works perfectly. I can register users, I can create posts, I can edit them. The allow access to azure services option is turned on. This error is from the eventlogs. I have not included the stacktrace.
Category: Microsoft.EntityFrameworkCore.Query EventId: 10100 RequestId: 800001be-0000-ba00-b63f-
84710c7967bb RequestPath: /Identity/Account/Register SpanId: |1e5a93ae-43f424904f38ea9f. TraceId:
1e5a93ae-43f424904f38ea9f ParentId: ActionId: c3430236-e61c-4785-a3c3-4f60ba115b6e ActionName:
/Account/Register An exception occurred while iterating over the results of a query for context type
'MyApp.Data.ApplicationDbContext'. Microsoft.Data.SqlClient.SqlException (0x80131904): Server
name cannot be determined. It must appear as the first segment of the server's dns name
(servername.database.windows.net). Some libraries do not send the server name, in which case the
server name must be included as part of the user name (username#servername). In addition, if both
formats are used, the server names must match.
Those are the different ways I tried to add the connection string to the appsettings.json file. (Server name, catalog, user and password have been replaced, they are written correctly in the appsettings file)
Server=tcp:servername.database.windows.net,1433;Initial Catalog=db;Persist Security Info=False;
User ID=user#server;Password=mypassword;
MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
Server=tcp:servername.database.windows.net,1433;Initial Catalog=db;Persist Security Info=False;
User ID=user;Password=mypassword;
MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
Data Source=tcp:server.database.windows.net,1433;
Initial Catalog=db;User Id=#server.database.windows.net;Password=password;
Alright so after a day and a half, I finally managed to fix it. The solution is rather simple and it is most likely my newbie mistake, that caused so much trouble.
I was following a tutorial for setting up the application and database connection after that. In the tutorial, the connection string that was being used, was the default one, found in the "myApp -> Configuration -> Connection strings", the format was:
Data Source=tcp:server.database.windows.net,1433;
Initial Catalog=db;User Id=#server.database.windows.net;Password=password;
This one was working in the guide, but not for me. So what I did, was go to my "sqldb -> connection strings" and copied the one provided there. I then went back to the app configuration and added it as a new configuration string using SqlServer as the Type.
This string was in the format:
Server=tcp:servername.database.windows.net,1433;Initial Catalog=db;Persist Security Info=False;
User ID=user;Password=mypassword;
MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
After that, the app started working properly.

An internal error has occurred. The application may still be initializing or the URL used is invalid

When I try opening the dashDB console from Bluemix, I occasionally get the following error message:
An internal error has occurred. The application may still be
initializing or the URL used is invalid. Check the URL and try again.
For more information, view the server log files.
How can I fix this?
The problem seems to be a cookie caching issue.
Get the domain name from the browser window that is displaying the error message. E.g. awh-yp-small02.services.dal.bluemix.net
Open cookie page, for example in firefox:
Search for cookies with the YOUR domain name from step 1.
Select all those cookies and delete them by clicking the 'Remove Selected' button.
You should be able to launch now.
WARNING: the above worked for me, but use the above advice at your own risk.

How to prevent access to the Hidden Directories like Scripts, Contents, aspnet_client from browser in a asp.net mvc application?

I want to prevent the user from accessing the Hidden Directories like Scripts, Contents, aspnet_client directly from the browser in a asp.net mvc 2 application. Currently whenever I try to access the above mentioned Hidden Directories it is returning the following error message:
403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.
I want to show "404 Not Found" error page whenever one tries to access the above mentioned hidden directories.
Can anyone help me with to resolve this issue?
When attacker try to access the file with some random name, if given file name not exists then it will give error like "404 File not exists". if file name exists but don't have access to file then it will return error like "403 Forbidden" error. so attacker get idea of the file and file directory.
So the application should be capable of handling this issue
Solution is to show the return response in different way, recommended to show as 404 error.
To do this in IIS we can add customerError configuration in the web.config file.
Please check the below article for the details of issue and solution.
https://www.c-sharpcorner.com/UploadFile/092589/custom-error-page-in-Asp-Net/
You may want to add custom handler - something like this - http://forums.asp.net/post/4152906.aspx

SSRS Forms Authentication : Unable to Add web service reference of ReportExecution2005.asmx from visual studio 2010

Forms Authentication for SSRS has been successfully configured on my development box and i can succesfully log on to Report Manager and Report Builder using my security framework's credentials.
Now I want to make a console app which will consume the SSRS web services. however i am unable to to add reference of ReportExecution2005.asmx in console app project .
I get the following error on visual studio
The document at the url http://servername/ReportServer/ReportExecution2005.asmx was not recognized as a known document type.
The error message from each known type may help you fix the problem:
Report from 'XML Schema' is 'The root element of a W3C XML Schema should be and its namespace
While trying to add reference , In fiddler i can see the following error as response:
Server Error in '/ReportServer' Application.
<h2> <i>Access is denied.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
<b> Error message 401.2.: </b>Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.<br><br>
<b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.5
I wasn't able to duplicate the problem in Visual Studio 2010 connecting to my dev server running SSRS 2005. However, when adding the reference, try clicking the Advance button. In the next screen, click the "Add Web Reference..." button at the bottom of the dialog box. Perhaps that method will work better for you.