Quantcast
Channel: All Forums
Viewing all 26310 articles
Browse latest View live

Website suddenly went offline, IIS7.5 unable to serve aspx

$
0
0

Hi Guys I have read many posts on here regarding IIS unable to serve aspx and have tried aspnet_regiis -i, have checked ISAPI and CGI restrictions, using classicPool .net2.0 but is still unable to serve up aspx file. The strange thing is the website has been working perfectly fine for the past years hosted on windows 2008 R2 on AWS, two sites both suddenly went down today on different AWS instances. I even tried rollingback one server all the way to last year where it should'v been running perfectly fine but it is still giving me the same issue - page can't be displayed. Now the port is listening, IIS is running fine but it just seem like it's not able to serve aspx file for some reason, I can run the IIS default page fine by changing path. I did not see .aspx as denied in request filtering and have also tried adding .aspx in as allowed. I have went at this for hours and tried many solutions found online with no luck, what bothers me is even rolling back the server state did not help! Any suggestions would be greatly appreciate it! Thank you


php 500 error

$
0
0

I am getting a 500 error from php as below:

ModuleNameFastCgiModule
Notification128
HttpStatus500
HttpReasonInternal Server Error
HttpSubStatus0
ErrorCode0
ConfigExceptionInfo
NotificationEXECUTE_REQUEST_HANDLER
ErrorCodeThe operation completed successfully. (0x0)
Appreciate any help. thanks in advance

Server Port Display

$
0
0

When adding a server if you go into Advance Settings you can change the httpPort, httpsPort and weight.

It would be helpful if the list of servers displayed this information, because if you come back later you might want to see this information.

It would also be helpful if you could edit these settings without having to delete and re-add it, just to change a port or weight of a server

Add Server

Server List

IIS Administration appsettings.json permissions

$
0
0

Hi,

I have an problem where I can't edit files when using the IIS Administration service.  I read on the link below that I should edit the appsettings.json file to allow this:

https://docs.microsoft.com/en-us/iis-administration/configuration/appsettings.json

The problem is that the appsettings.json file has permissions preventing even server admin from writing changes and if you change the permissions on the file then it prevents the IIS Administration service from running.

Appreciate any advice.

Application pool and Domain Accounts

$
0
0

Hi Guys,

I have a question regarding application pools with domain accounts

Which is the least privileges that Domain Accounts needs to have for the maxium security (in case of bug or zero day vulnerabilities). It's correct to use domain accounts instead of application pool identity for runs application pools?

Thanks in advance

Best regards,

Jack

Silverlight. Cannot open web stream for files larger than 4Gb

$
0
0

I have IIS 10 which hosts 2 x mp4 videos. 3 and 4 gb.

If I run the following code in console .NET app it works fine.

If I run the same in Silverlight 5 the OpenReadCompleted is never fired for 4Gb video but works for 3Gb.

The IE11 is 64 on Windows 10 x64 and the Silverlight is x64.

public void Start()
{
  //var addr = @"http://localhost/small.mp4";
  var addr = @"http://localhost/large.mp4";
WebClient webClient = new WebClient(); webClient.OpenReadCompleted += (s, x) => { try { Debug.WriteLine("Got result: " + (x.Result == null ? "null" : x.Result.CanRead.ToString())); } catch (Exception ex) { Debug.WriteLine($"Got exception {ex}"); } };
Debug.WriteLine($"Requesting stream {addr}"); webClient.OpenReadAsync(new Uri(addr)); }

The actual task at hand is to make the larger videos (and I have up to 50Gb ones) work with media element. But it never goes past "opening" state.

While stripping everything off I found that if I use file stream for large video media element works, but if I try web stream it doesn't, which led me to do the simplest possible test - open web stream alone. And it doesn't work.

This code works in Silverlight for both - small and large videos:

FileStream fs = new FileStream(@"c:\media\large.mp4", FileMode.Open);
ssme.SetSource(fs);

Hence the problem is in the delivery over HTTP.

Fiddler shows no result (-) and -1 as body size. The response details shows "No Body Content" and raw response shows HTTP/1.1 200 OK with correct content-length. 

Any idea on how to investigate further from this point?

Connecting LogParser to SQL Server 2017

$
0
0

I've tried a wide range of connection strings trying to find one that will connect LogParser to my SQL Server 2017 (or SQL Azure) instance. I've tried both the ODBC and Native drivers. Visual Studio will make the connection OK. But the CLI fails - LogParser's error message is misleading:

Error Message: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Login failed for user ''

The user id property was supplied -- i've tried 'User ID=xxx'; UserID=xxx' and 'User_ID=xxx'. And when hitting SQL Azure (instead of on-prem) I've tried with and without the @[servername] suffix.

I've also created and verified a DSN: -o:SQL -createTable:ON -oConnString:"Driver={ODBC Driver 13 for SQL Server};DSN=odbc_bw33;Connection Timeout=30;" -e:1

gets me:

Task aborted.
Error connecting to ODBC Server
SQL State: 08001
Native Error: 0
Error Message: [Microsoft][ODBC Driver 13 for SQL Server]Neither DSN nor
SERVER keyword supplied
Again, note that the connection string has a DSN name supplied - the error message is wrong.

I have been able to connect to SQLExpress with:

Driver={SQL Server Native Client 11.0};Server=(LocalDB)\MSSQLLocalDB;AttachDbFilename=E:\seeder.mdf;Integrated Security

How to use web.administration module to get the current request?

$
0
0

Hi,

I would like to use web.administration module to develop a web app to get the current connection in IIS worker process. But I have no idea about how to acheive this. Could you provide any hint for this requirement? Thanks in advance.


IIS 10 domain issue

$
0
0

I have been trying to connect my domain name to my IIS dns stuff and nothing is working. I have tried it on the localhost and it works without a problem but as soon as I put my domain in it, it brings me to the IIS 10 website. Why is that and can someone please help me?

w3wp.exe Crash IIS 8.5 Classic ASP Pages

$
0
0

Hi,

I am struggling with the following for some time now and have tried many suggestions from various google searches.

We have one Website running in Classic ASP on a windows server 2012 R2 using IIS 8.5

We use the website with MySQL

We get this happening during the day but at different times and I suspect this to be when the site gets busy or many queries. ( Not sure )

In The Event Viewer ( Applications ) we get Active Server Pages Errors.

When this happen the pages that tries to make queries to MySQL will just respond with Error 500 ( Internal Error )

There are a few types of the errors and below are some

The below error can happen for many different pages and this is just example of the last one.

Error: File /update-project.asp  CreateObject Exception. The CreateObject of '(null)' caused exception C0000005..

The there are also this type of Application errors. This is a example of the last one

Faulting application name: w3wp.exe, version: 8.5.9600.16384, time stamp: 0x52157ba0

Faulting module name: ntdll.dll, version: 6.3.9600.18895, time stamp: 0x5a4b127e

Exception code: 0xc0000374

Fault offset: 0x000e6214

Faulting process id: 0x2cd0

Faulting application start time: 0x01d3b5ffb8b88f62

Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe

Faulting module path: C:\Windows\SYSTEM32\ntdll.dll

Report Id: c17383f3-21f4-11e8-80f1-0cc47adae555

Faulting package full name:

Faulting package-relative application ID:

I have tried changing quite a few things as suggested by other posts from the applicationpool settings, increasing the MySQL buffer size, and more.

As soon as this happens, I do a APllicationPool Recycle and the problem goes away.

I have download DebugDiag 2 and created a rule for the w3wp.exe process and when this happens recorded a few dump files.

I then open the analyzer and analyze them but I do not seem to see how figure out how to read or interpret them to what could be the problem.

Is there a way I can post or provide these dump files for someone to try and help me because I am at the point pulling my hair out.

I look forward to any response from anyone that can help me or guide me in the right direction or even point me to try other things.

Thanks in advance

HTTP Error 400. The request hostname is invalid

$
0
0

После перезагрузки сервера возникла проблема.
При обращении к любому сайту на сервере, по IP адресу или 127.0.0.1, возвращается ошибка (Bad Request - Invalid Hostname. HTTP Error 400. The request hostname is invalid.). Если обращаться к любому сайту, по имени или через localhost все работает.
В C:\Windows\System32\LogFile\HTTPERR есть ошибки которые возникают, во время плохого запроса (Hostname W3SvcInspection).
На сервере более 100 пулов, в каждом пуле по одному сайту.

После проведения последовательности действий, сайты начинают работать, до следующей перезагрузки IIS или сервера:
1. Делаем резервную копию applicationHost.config
2. Заменяем чистым applicationHost.config
3. Делаем iisreset
4. Заменяем applicationHost.config из резервной копии

После этих действий не делаем iisreset.

Все сайты начинают работать по IP адресу и по 127.0.0.1 до следующей перезагрузки сервера или команды iisreset.

--------------------------------------------------------------------------------------------------------------------------------------

There was a problem after the server was rebooted. When you access any site on the server, by IP address or 127.0.0.1, an error (Bad Request - Invalid Hostname. HTTP Error 400. The request hostname is invalid.) is returned. If you access any site, by name or through localhost, everything works. In C: \ Windows \ System32 \ LogFile \ HTTPERR, there are errors that occur during a bad request (Hostname W3SvcInspection). The server has more than 100 pools, in each pool one site. After the sequence of actions, the sites begin to work, until the next reboot of the IIS or the server: 1. Backup applicationHost.config 2. Replace with clean applicationHost.config 3. Making the iisreset 4. Replace the applicationHost.config from the backup copy After these actions do not do iisreset.
All sites start working on the IP address and on 127.0.0.1 before the next server reboot or the iisreset command.

Reset site permission in IIS

$
0
0

Hi every one,

Sorry if i ask in wrong forum. I need help to delegate permissions in IIS 7 or higher. In my company, one iis server may have some sites, not only one. So i need to delegate permissions to non-admin user so that they can stop/start one site in IIS (others still run).

Of course i know how to set permissions to stop/start service IIS. But that will affect all sites. So that's not solution in this case.

Please share any solution or advice to solve my problem.

Thanks.

Could not establish trust relationship for the SSL/TLS

$
0
0

Hi all,

I haven't posted on here before and please forgive me as I am quite new to IIS. 

I am running Windows server 2012 R2 and IIS 8 and SQL server 2016.

I have been trying to set up access to SQL analysis services through https and I am have some issues with the SSL. The message I am getting is "Could not establish trust relationship for the SSL/TLS" I think it's a problem with my certificate. I am using our companies website certificate which is in date. 

What I have done so far:

  • I have added the certificate to the store in personal and trusted
  • Created a binding to my default web site using the certificate

Here is a screenshot:

Binding

I haven't set a host name as I am only trying to connect over our local network at the moment.

Also when browse the *.443 it is showing as not secured. Do you think the problem is the certificate? If so I suppose it could be because I also need to install some other certificates it's dependant on, but I am not sure how to find this out?

Also it's worth noting that I have also tried to do this with just a self signed certificate and it had exactly the same outcome.

Can anyone help?

Many thanks,

Joe

Javascript Not being served Properly ASP IIS

$
0
0

Hello, I have a Windows Server 2008 with IIS 6.1 serving an ASP website. The page is working correctly and the javascript are being served correctly:

https://casper09.zip2tax.com/website/pagescountries/canada/index/canadamap.js

But in a Windows Server 2012 with IIS 6.2 the javascript are not being served correctly:
https://frank02.zip2tax.com/website/pagescountries/canada/index/canadamap.js

Please can someone help me, I have tried multiple solutions. Saving the js as ANSI. configuring the default Script language in IIS to JScript but it does not work. 

Authentication required for an external website ONLY from internal network devices

$
0
0

First off, I'm fairly rusty when it comes to IIS.  It's been a few years since I've worked with it.

Secondly, I have an issue where the internal network domain and the external domain of the website are the same (the external domain is hosted outside).  The DNS has pointers to WWW and WEB which are external IPs.  When users try to access www.domain.com, there is no problem. Everything works fine.  However, when they try to access web.domain.com, they are served with an Authentication Required dialog box (the site indicates that it is Digest).  When they try to access either site from outside of the internal network, everything is fine.  No dialogs.

This tells me that there is some type of authentication requirement on the internal Windows 2012 R2 server.  IIS is running, but the default site is not started (they don't use it).

My question:  What is causing this authentication required?  Since it only happens from computers/devices on the internal network, it has to be something with the internal server, correct?  What should I check?  Digest is NOT installed on the internal server.  What should I be looking for?

Or could it be on the website host's end?

Thanks for any help.


Machine Key & Change .NET Framework Version...

$
0
0

IIS 7.5, Windows Server 2008 R2 (fully patched).

As part of an IA review it was discovered that out machine key setting is using SHA1 and, obviously, the recommendation is to up that to SHA2; however, we do not have the option from the pull down in IIS manager to choose SHA2.  Searching around I found where it was stated that in order to get the SHA2 option you had to have an update from MS (we have) and you have to use the action pane option to "change .NET framework version" to v4.0xxxxx.  I did this but still had not option for SHA2 in the machine key section and I noticed when I checked the "Change .NET Framework Version" that on service, server, or IIS manager restart this setting just reverts to v2.0xxxxx.  So, assuming my information is correct that in order to get SHA2 option for machine key I need this "Change .NET Framework Setting" to be v4.0xxxxxx my question is how do I get this change to stick?  None of our app pools are v2 - all are v4.  I have tried applying the change with IIS shut down to no avail.  I tried reregistering .NET and while that was successful it made no change in the described issue.  Searching around I found a few people asking about this problem but no solutions.  Anyone?

IIS Web Farm + ARR give me No owin.Environment item was found in the context

$
0
0

I am trying to set load balancing with IIS ARR but getting this error when I try to login, It works fine if I test it outside ARR

Server Error in '/' Application. No owin.Environment item was found in the context. 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.InvalidOperationException: No owin.Environment item was found in the context.

Server Error in '/' Application.
No owin.Environment item was found in the context.
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.InvalidOperationException: No owin.Environment item was found in the context.

Source Error:

Line 21: get
Line 22: {
Line 23: return this._userManager ?? this.HttpContext.GetOwinContext().GetUserManager();
Line 24: }
Line 25: private set

Source File: D:\Projects\Other\Project\Project\Project.Web\Controllers\BaseController.cs Line: 23

Stack Trace:

[InvalidOperationException: No owin.Environment item was found in the context.]
System.Web.HttpContextBaseExtensions.GetOwinContext(HttpContextBase context) +100
Project.Web.Controllers.BaseController.get_UserManager() in D:\Projects\Other\Project\Project\Project.Web\Controllers\BaseController.cs:23
Project.Web.Controllers.d__19.MoveNext() in D:\Projects\Other\Project\Project\Project.Web\Controllers\AccountController.cs:321
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) +92
System.Web.Mvc.Async.<>c__DisplayClass37.b__36(IAsyncResult asyncResult) +22
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.AsyncInvocationWithFilters.b__3d() +72
System.Web.Mvc.Async.<>c__DisplayClass46.b__3f() +385
System.Web.Mvc.Async.<>c__DisplayClass46.b__3f() +385
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.<>c__DisplayClass2b.b__1c() +38
System.Web.Mvc.Async.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult) +185
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
System.Web.Mvc.Controller.b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +70 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +36
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +43
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +393
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2633.0

Thank you in advance.

Visual Studio 2015 - Unable to validate data error

$
0
0

Hi All,

We are having a Web Project using machinekey in validation and works very fine in Visual Studio 2010.

But the same source is failing when ran from Visual Studio 2015. The error which we are getting is:

System.Web.HttpException was unhandled by user code
  ErrorCode=-2147467259
  HResult=-2147467259
  Message=Unable to validate data.
  Source=System.Web
  WebEventCode=0
  StackTrace:
       at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
       at System.Web.Security.MembershipAdapter.EncryptOrDecryptData(Boolean encrypt, Byte[] buffer, Boolean useLegacyMode)
       at System.Web.Security.MembershipProvider.DecryptPassword(Byte[] encodedPassword)
       at System.Web.Security.SqlMembershipProvider.UnEncodePassword(String pass, Int32 passwordFormat)
       at System.Web.Security.SqlMembershipProvider.GetPassword(String username, String passwordAnswer)
       at System.Web.Security.MembershipUser.GetPassword()

We could not find any solution related to this in any of the groups.

I suspect this to be something related to the IIS Express version / configuration on which the Website runs when executed from Visual Studio 2010 and Visual Studio 2015.

Any help on this would be greatly appreciated!

Many Thanks,

WIth Warm Regards,

Sujan

Could not load file or assembly 'stdole'

$
0
0

Hi 

i have deployed web applications on windows server 2008 R2

Current configurations and installations done

    1) OS : Windows server 2008 R2 Standard

    2) Installed .Net Framework 4.5.1 full installer

    3) Installed crystal reports run time

    4) Deployed web application on IIS using framework 4.0 apps

After this when i browse applications am getting this error

Could not load file or assembly 'stdole' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

what installations still am missing please let me know

why?

$
0
0

sorry,I can't speak English

无法下载 Web 平台产品列表。请检查你的网络连接,然后重试。如果问题仍然存在,请在位于 http://go.microsoft.com/fwlink/?LinkId=145244 的 Web 平台安装程序论坛上报告此问题。
详细信息:
Url 'https://developer.microsoft.com/en-us/web/webmatrix/3.0/rtw/templatefeed.xml' returned HTTP status code: 404

无法下载 Web 平台产品列表。请检查你的网络连接,然后重试。如果问题仍然存在,请在位于 http://go.microsoft.com/fwlink/?LinkId=145244 的 Web 平台安装程序论坛上报告此问题。
详细信息:
Url 'https://developer.microsoft.com/en-us/web/webmatrix/3.0/rtw/templatefeed.xml' returned HTTP status code: 404

System.InvalidOperationException: 无法下载 Web 平台产品列表。请检查你的网络连接,然后重试。如果问题仍然存在,请在位于 http://go.microsoft.com/fwlink/?LinkId=145244 的 Web 平台安装程序论坛上报告此问题。
详细信息:
Url 'https://developer.microsoft.com/en-us/web/webmatrix/3.0/rtw/templatefeed.xml' returned HTTP status code: 404 ---> System.Net.WebException: Url 'https://developer.microsoft.com/en-us/web/webmatrix/3.0/rtw/templatefeed.xml' returned HTTP status code: 404
在 Microsoft.Web.PlatformInstaller.ManagedWinInet.OpenUrlAndFollowRedirects(Uri& uri, IntPtr& hInetFile)
在 Microsoft.Web.PlatformInstaller.ManagedWinInet.DownloadFile(Uri uri, String fileName, String& contentDispositionFileName)
在 Microsoft.Web.PlatformInstaller.ProductManager.DownloadFile(Uri url, String cacheFileLocation, DateTime productFileLastModified)
在 Microsoft.Web.PlatformInstaller.ProductManager.Load(Uri productFileUrl, Boolean filterByArchitectureAndOS, Boolean loadEnclosures, Boolean useCachedVersion, String cacheDirectory, Architecture architecture, Int32 osType)
在 Microsoft.Web.PlatformInstaller.ProductManager.LoadExternalFile(Uri uri)
在 Microsoft.WebMatrix.Gallery.ProductManagerFactory.Create(Uri primaryFeed, IEnumerable`1 customFeeds, EventHandler`1 updateAvailableHandler)
在 Microsoft.WebMatrix.Gallery.OnlineFeedLoader.Load()
在 Microsoft.WebMatrix.Gallery.FeedLoader.EnsureLoaded()
在 Microsoft.WebMatrix.Gallery.OnlineFeedLoader.get_ApplicationKeywordDictionary()
在 Microsoft.WebMatrix.Gallery.WebMatrixProductService.get_ApplicationKeywordDictionary()
在 Microsoft.WebMatrix.Gallery.DependencyServiceImpl.<EnsureFeedWithWaitDialogUIInternal>b__b()
在 System.Threading.Tasks.Task.InnerInvoke()
在 System.Threading.Tasks.Task.Execute()
--- 内部异常堆栈跟踪的结尾 ---
在 Microsoft.WebMatrix.Gallery.DependencyServiceImpl.EnsureFeedWithWaitDialogUIInternal(String waitDailogMessage)
在 Microsoft.WebMatrix.Gallery.DependencyServiceImpl.<>c__DisplayClass9.<EnsureFeedWithWaitDialogUI>b__8()
在 Microsoft.WebMatrix.Core.TaskServiceImplementation.<>c__DisplayClass19.<DispatcherInvoke>b__18()
在 Microsoft.WebMatrix.Core.TaskServiceImplementation.DispatcherInvokeInternal[U](DispatcherPriority priority, Func`1 method)
在 Microsoft.WebMatrix.Core.TaskServiceImplementation.DispatcherInvoke(DispatcherPriority priority, Action method)
在 Microsoft.WebMatrix.Gallery.DependencyServiceImpl.EnsureFeedWithWaitDialogUI(String waitDailogMessage)
在 Microsoft.WebMatrix.Gallery.WebMatrixProductDependency.GetDependencies(IEnumerable`1 dependencyIds, IServiceProvider serviceProvider)
在 Microsoft.WebMatrix.Gallery.WebMatrixProductDependency.GetDependencies(DependencyTypes dependencyTypes, IServiceProvider serviceProvider)
在 Microsoft.WebMatrix.Gallery.DependencyServiceImpl.EnsureDependencies(DependencyTypes dependencyTypes, String ensureDependenciesMessage)

Vs2017 can't open SDF

What should I do?

Viewing all 26310 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>