SignalR issues with URL - c#

I'm having an issue that I can't seem to figure out. Thank you for any assistance you may provide.
I have a Server 2008 R2 SP1 server that is running a .net application that we are trying to implement SignalR on. It works on 1 of the 3 servers. The URL I have is
http://%SITENAME/signalr/negotiate?clientProtocol=1.4&connectionData=%5B%7B%22name%22%3A%22mediahub%22%7D%5D&_=1452535854677
The error I found in the logs is
2016-01-11 12:56:58,506 [65] ERROR ASP.global_asax [(null)] -
MESSAGE: A potentially dangerous Request.Path value was detected from the client (&).
SOURCE: System.Web
URL: http://%SITENAME%/signalr/negotiate clientProtocol=1.4&connectionData=[{"name":"mediahub"}]&_=1452536862615
REFERRER:
FORM:
QUERYSTRING:
TARGETSITE: Void ValidateInputIfRequiredByConfig()
STACKTRACE: at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)
= = =
Its on a server 2008 R2 sp1 server. I've found lots of instructions but haven't found this issue specifically.

I went into the web config and turned on displaying the compilation errors. I hit this url http://%SITENAME/signalr/negotiate?clientProtocol=1.4&connectionData=%5B%7B%22name%22%3A%22mediahub%22%7D%5D&_=1452535854677 and got an error about the machine.config key. After googling the error, I removed the ,IsolateApps from the web.config on the servers.
Here is the link I followed.
IsolateApps causes Decryption key specified has invalid hex characters

Related

IIS HTTP Error 500.19 - Internal Server Error 0x8007000d

IIS Have FULL Control On Folder And Webconfig And Have All Permissions
And When I Trying to Start Website I See HTTP Error 500.19 - Internal Server Error
with This Code 0x8007000d
And I Know Nothing Wrong With Webconfig
(All Of my Websites Have This Problem)
Picture
And When I Trying Open Any Components in IIS Features View I See This Error
(There Was An Error While Performing this operation.
Details:
Filename:\?\C:\Users\110pc\wwwroot\DivarService\web.config
Errors:)
I'm tired Can Anyone Help?
I installed asp core hosting module and it's works.
#The Solution#
1 . Install Urlrewrite
2 . set permission iuser and IIS_IUSRS Root Folder
3 . Change Sa Password Sql
4 . Install IIS on The Server Manager Full Package
good louck

Error not specified sqlcese40.dll

I have deployed my application to my customer. What happens is that I've tested my app in 4 different computers and works perfectly but not in my customer computer.
I'm using .NET Framework 4.0 in my code with SQL Compact and the customer has the .NET Framework 4.7 installed. I have also, just in case, installed the SQL Compact in his computer.
When I click in my app .exe a popup error is shown with the following text:
System.Data.SqlServerCe.SqlCeException (0x80004005): Error not specified [ sqlcese40.dll ]
in System.Data.SqlServerCe.SqlCeConnection.ProcessResults(Int32 hr)
in System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
in System.Data.SqlServerCe.SqlCeConnection.Open()
in LongStoryShort.LoadAllByItems(String[] columns)
So the error occurs when connecting to database. Any clue what am I missing?
Solved.
I couldn't even uninstall the .NET Framework 4.7 in my customer PC because I was getting the error:
The cryptographic operation failed due to a local security option
setting
After looking for answers about this error I end up in the microsoft website https://support.microsoft.com/en-us/help/2715304/error-message-when-you-try-to-validate-a-copy-of-windows-the-cryptogra and did the steps on regedit like they say.
This error occurs when the 'State' value of below mentioned registry
key is incorrectly set. This value corresponds to the Internet
Explorer security setting "Check for publisher’s certificate
Revocation" and "Check for signatures on downloaded programs"
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing You can find a key with the name
‘State’. By default the values is set to – ‘23c00’ Resolution To
resolve this problem, change the registry key to a valid setting, e.g.
State = 0x00023e00 - ‘Check for publisher’s certificate Revocation’ unchecked
State = 0x00023c00 - ‘Check for publisher’s certificate Revocation’ Checked
After changing the regedit value my app started working instantly!

Compilation Error - Server Error in '/' Application

When hosting the application on local IIS all forms work fine without causing any errors but while hosting the application on the server some forms are showing the 'Compilation Error'
**To remove these error made following updations to the server side.
Restart the application pool.
Enable 32-Bit Application = true on server side.
Still getting the error on the forms.**
Is there any other way to find out the server side compilation errors.
What is exactly the compiler error code 1.
Detailed Error is as follows:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: The compiler failed with error code 1.
Version Information: Microsoft .NET Framework Version:2.0.50727.8009;
ASP.NET Version:2.0.50727.8015
Please make sure you have installed required windows features to run IIS on your hosting server.
You can do it by following
Control panel >
Program features >
Turn on Windows features on or off
Then on the pop up window, navigate to;
Internet Information Services >
Word Wide Web Services >
Application Dev Features >
Tick all required features (I have ticked all but CGI)
Hope this helps.

ADOMD Connection Error

I am receiving the following error from ADOMD while trying to connect to my SSAS Server.
An unhandled exception of type 'System.Xml.XmlException' occurred in
Microsoft.AnalysisServices.AdomdClient.dll
Additional information: Element 'return' was not found. Line 5,
position 2.
I can confirm the following:
My Connection String Is:
Data Source=<MyServer>;Catalog=<My SSAS DB>; UID=<MyDomain>\<MyDomainUser>;PWD=<MyPassword>;
I can confirm that my connection string is correct ( or at least the data I am using in the connection string above is correct). If I change any part of the connection string to an incorrect value the ADOMDConnection will return "Cannot connect to server". I have also looked at the audit logs on the server itself and confirm that I am successfully logging onto the server. And the contrary, with incorrect credentials the server logs confirm a failed login.
I am trying to connect to SSAS 2014 Enterprise
The failed connection returns within a few seconds. A few posts out on the internet suggest increasing the Connection Timeout property. This does not seem to be my issue as I have increased it to 120 and its failing within 5.
I am using ADOMD 12.0 Runtime 2.0.50727
My domain user is a domain admin and has been added to an admin role in the SSAS.
Im not sure what else could be wrong or how to debug this or is this a known bug in ADOMD?
Any advice would greatly appreciated.
thanks!
Jason
This happens routinely when the version of the ADOMD client DLL is not a version that matches the target version of the server instance. For example, Azure Analysis Services as of 09/13/2017 does not work with Microsoft.AnalysisServices.AdomdClient.dll version 13. Only version 14 and above.
For reference, the ADOMD DLL for Azure Analysis Service is available in the link below:
https://learn.microsoft.com/en-us/azure/analysis-services/analysis-services-data-providers
Double check to make sure the client DLL is the exact version needed for the target server instance. That solved this exact issue in my case.

Not able to load MicrosoftAjax.debug.js

I have an ASP.NET 3.5 web application which works perfectly fine on my local machine and when I deploy it on my Windows 2008 server. I am getting the following javascript error:
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Line: 4723
Char: 21
Code: 0
URI: http://localhost/ScriptResource.axd?d=e1Gld4LGHLsC4rWqevEI8zAMJKoVcCEVHBjdJIxcQLO9of6t7nNopbI1YyxJTv1QbaxN_lTSoz5Ly-VjBRHp08Mf3xxg5V9i5Z0AiXIkZRY1&t=6af1de90
I have a utility which can decrypt the URI and tell exactly what file is missing and it tunrns out that the file is ZSystem.Web.Extensions,3.5.0.0,,31bf3856ad364e35|MicrosoftAjax.debug.js|. Why am I not able to load this js file? Any help?
Possible options:
You've not installed .NET Framework SP1 on your server, so it can't find the 3.5 assemblies to generate the MsAjax file.
You've deployed your web.config file with <compilation debug="true"> while IIS has been configured to compile it in release mode.
I have run into a similar problem before when the development and production machines are set for two different time zones. When ASP.NET AJAX tries to load a script resource from an assembly, the last modified date/time of the assembly is validated. If the local time of the production server is "earlier" than the last modified date/time of the assembly, then an ArgumentOutOfRange exception is generated by ASP.NET AJAX when processing the request.
Really difficult to debug since the problem eventually resolves itself.
I suppose this might be possible with a System assembly if Copy-Local is set to true.
I was using some third party web services and the problem was with the following xml tag in the web.config:
<extendedProtectionPolicy policyEnforcement="Never" />
Once I removed this tag the error went away

Categories

Resources