Rename
Rename
Explore posts from servers
CDCloudflare Developers
Created by Rename on 3/26/2024 in #general-help
Protecting Windows RD connection with Cloudflare?
thanks again!
6 replies
CDCloudflare Developers
Created by Rename on 3/26/2024 in #general-help
Protecting Windows RD connection with Cloudflare?
thanks for the quick reply, could you point me on how I'd be able to make it work via Cloudflare only?
6 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
it required a system restart for it to take effect but works perfectly now, thanks for helping guys
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
I ran out of options, the error in httperr as mentioned above was simply URL and not about the length. but i figured what the hell nothing else makes sense. so I added registry key UrlSegmentMaxLength as mentioned here: https://stackoverflow.com/questions/42243211/increase-max-url-length-in-asp-net-core there was no need for the webconfig section to be added
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
finally fixed it!
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
no luck still! am I supposed to add something in program.cs maybe
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
yep tried with true also, nothing changed..
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
made a new path C:/iis-websites/website1 and deployed there. webconfig had
<aspNetCore processPath="dotnet" arguments=".\website1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
<aspNetCore processPath="dotnet" arguments=".\website1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
added C:/iis-websites/website1/logs/stdout folder also on C:/logs/stdout tried with stdoutLogEnabled = false and true while requesting that page/url and no files there
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
yep I understand, they threw me on this issue and it's already been setup like this!
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
C: / intepub has got a few folders: ftproot, history, logs, wwwroot wwwroot has all the websites there meanwhile the logs folder had no stdout in it. I added stdout there also but no logs yet
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
huh, well that's where the new website is also
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
not the application's wwwroot obviously
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
no that's inetpub > wwwroot dir
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
path seems relative in webconfig ./
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
it should be in inetpub then?
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
yes that's windows
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
restarted website, tried the same endpoint/url, no other files generate in there
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
created those in wwwroot/applicationName > log folder > stdout folder
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
that's the web.config but there's no logs folder within the website path and the appsettings.json:
{
"ConnectionStrings": {
"DefaultConnection": "Data Source=localhost;Initial Catalog=Example;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
"UAT": "Database=Example; Data Source=IP;User Id=example;Password=example;MultipleActiveResultSets=True;"
},
"Logging": {
"LogLevel": {
"Default": "Debug",
"Microsoft.AspNetCore": "Debug"
}
},
"AllowedHosts": "*",
"EPPlus": {
"ExcelPackage": {
"LicenseContext": "Commercial" //The license context used
}
}
}
{
"ConnectionStrings": {
"DefaultConnection": "Data Source=localhost;Initial Catalog=Example;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
"UAT": "Database=Example; Data Source=IP;User Id=example;Password=example;MultipleActiveResultSets=True;"
},
"Logging": {
"LogLevel": {
"Default": "Debug",
"Microsoft.AspNetCore": "Debug"
}
},
"AllowedHosts": "*",
"EPPlus": {
"ExcelPackage": {
"LicenseContext": "Commercial" //The license context used
}
}
}
73 replies
CC#
Created by Rename on 2/14/2024 in #help
Bad Request for URL containing token route on server
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\example.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\example.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
73 replies