Quantcast
Channel: Configuration and Deployment
Viewing all 3561 articles
Browse latest View live

How to code Request Queue Length

$
0
0

Hi all Expert,

i want to code Request Queue Length so that i can control how many request is allows for web application.

I've found this link https://msdn.microsoft.com/en-us/library/system.web.configuration.processmodelsection.requestqueuelimit(v=vs.110).aspx

this link provide example but don't have a clear idea where to put this code below, either at web.config, aspx.code, class and etc..?

<ConfigurationPropertyAttribute("requestQueueLimit", DefaultValue := 5000)><TypeConverterAttribute(GetType(InfiniteIntConverter))><IntegerValidatorAttribute(MinValue := 0)>PublicProperty RequestQueueLimit AsInteger

and this code

' Get the current RequestQueueLimit property value.Dim requestQueueLimit AsInteger = _
   processModelSection.RequestQueueLimit' Set the RequestQueueLimit property to 10240.
processModelSection.RequestQueueLimit = 10240

Hope expert here can help me.

Thanks.


web form options

$
0
0

In a C#.net 2010 web form application, I have run a rebuild on the web deployment project on a test report server and everything works fine. However when I run a website site publish so the web form application and associated dlls, I am am told that the dlls are missing from the bin directory. With the dll files missing from the bin directory, I am told the application will not run on the production report server.

Thus can you tell me why the application runs fine on the test report server doing a rebuild while the website publish would not generate the DLL fines that are needed in the bin directory?

Unable to find the requested .Net Framework Data Provider. It may not be installed.

$
0
0

Hi 

I have my system running in Dev server however in my Prod server I'm facing this error "Unable to find the requested .Net Framework Data Provider.  It may not be installed. "

[ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.]
   System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +250

[ArgumentException: The specified store provider cannot be found in the configuration, or is not valid.]
   QMIC.Authentication.Login(IPrincipal LogUser) in f:\In-House Applications\QMIC\Authentication.cs:67
   QMIC.Default.Page_Load(Object sender, EventArgs e) in f:\In-House Applications\QMIC\Default.aspx.cs:18
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

I use LINQ to Entity with Oracle Database, from Server Explorer I can see my DB connection is fine "Test Succeeded" also in the debbuger mode I can see the DB data and site is running, however on IIS the above error appears!

I should mention that my application runs reports using SSRS and I had some compatibility issues of SQL Server & Oracle Client & ODAC so I had to deinstall & install all are 32bit now.

Moreover, I added .Net framework 3.5 feature as well as 4.5 in my server manager.

My connection string is, 

<connectionStrings><add name="QMICEntities" connectionString="metadata=res://*/QMICModel.csdl|res://*/QMICModel.ssdl|res://*/QMICModel.msl;provider=Oracle.ManagedDataAccess.Client;provider connection string=&quot;data source=ORCL;password=*****;persist security info=True;user id=QMIC&quot;" providerName="System.Data.EntityClient" /></connectionStrings>
<configuration><configSections><!--For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468--><section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /></configSections>

I think this has to do with server IIS environment not my application because it used to run before the installation of other softwares.

Please help ..

Thank You 

Banan Al Fayez

 

Blocking Certain Page Requests e.g. www.domain.com/wp-login.php

$
0
0

Hi,

I don't know if this is a big deal or not but I get various semi-malicious page requests such as  www.domain.com/wp-login.php, etc

Is there any way I can block them at the initial point they arrive without them being logged as an error.

Thanks,

Will

iis configuration

$
0
0

I have ip address and dns name registered. 

for ex : www.domain.com 

I have added v1.domain.com in binding but it is throwing the following error

 

This site can’t be reached

v1.domain.com’s server DNS address could not be found.

 

I have searched and tried different solutions for it but still i got the same error.

https://www.sherweb.com/blog/how-to-set-up-site-bindings-in-internet-information-services-iis/

Can anyone please help me out in fixing this problem? 

Thanks,

Priya

</div> </div>

iis 6 to iis 8 import/export apppool and sites

$
0
0

hello all,

i have a old server called A with iis6 and windows 2003

i have a new server called B with iis8 and windows server 2012

now, i have to create app pools, sites as like in A to B server. 

Way 1

  1. i tried to export the apppools, sites using %windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml commands but, its not supporting in Windows 2003 so, i dropped this idea

Way 2

     2. I have a option in IIS of server A (right click  on app pools-->all tasks-->save configuration to a file), it saved but, when i try to import the same from server B IIS then i dont see any option to import.

My doubt is, by Way1 is it possible to export by commands in server A? if so, let me know

Or else by Way2, how do i enable Import/Export option in my server B, i installed web deployment 3.6 but, it is not at all displaying.

Please help me.

Rookie to Deployment required help

$
0
0

I create a website on my pc using Visual Studio and Install IIS from Add or Remove Feature. Now, How can i access my website from my PC to any device connect with the same network of laptop.

Thank You,

Regards,
Muhammad Naveed Haroon

import virtual directories under site

$
0
0

Hello All,

My old server IIS 6 wtih Windows 2003, has a site with more than 50 virtual directories. Now, i want to move them into New Windows 2012 server. So, i exported the site as XML file from IIS6 but, there is no import option in IIS8. May i know what to do to import this xml. FYI, i already tried with commands but, the commands wont accept this file format.

experts please help me.

thanks

jey


Windows Application C#

$
0
0

Can someone tell me why a debug build moved to the machine that uses it works and not the release.   I am used to MVC so the difference with the exe etc...

I cleaned, build in release and debug.  I kept getting a arithmetic overflow with the release on the machine that uses it and on my machine in debug never got it.  Got me to thinking moved the debug build and it worked. 

Do Large Rewritemaps Impact on Performance

$
0
0

I have just hit the 250kb maximum size on my rewritemap.

There are bout 1600 redirects

I could start another one but I am worried that this might impacting on the performance of my website.

Any opinions?

IIS URL Rewrite Rule

$
0
0

I have URL Rewrite rule in IIS 10 to enforce all http request to https this way and it works perfect.

<rewrite><rules><rulename="HTTP/S to HTTPS Redirect"enabled="true"stopProcessing="true"><matchurl="(.*)"/><conditionslogicalGrouping="MatchAny"><addinput="{SERVER_PORT_SECURE}"pattern="^0$"/></conditions><actiontype="Redirect"url="https://{HTTP_HOST}{REQUEST_URI}"redirectType="Permanent"/></rule></rules></rewrite>

Here comes the twist.. I am hosting one ClickOnce application on the same server and when installer try to download the application then it gives errorURLDownloadToCacheFile failed with HRESULT '-2146697202' Error: An error occurred trying to download

Although URL is propery accessed via browser which is mentioned in this error.

As per microsoft documents error description is

if the setup URL of the ClickOnce application being installed is redirected from a non-secure to a secure site (or vice-versa), the installation will fail because the Internet Explorer warning interrupts it.

** Installer is using IE internally to download the manifest file

Now to tackle this situation I have made IP binding with my site in IIS so i would access the file with IP but when I do access the site with IP then the above rule also trigger for it and redirects to HTTPS and browser give an error again because hostname mismatch in SSL Certs. I want to bypass this redirect rule for my site when it browsed with IP.

I donot know how I can modify the above rule by having additional condition or what will be the new rule to bypass this https redirection when access via IP.

Could not create type Webservice error

$
0
0

Hi Guys,

I've created a very simple webservice and its runs fine in my local development machine, but when deploying in IIS and running it online I get "Could not create type WebService"

<%@ WebService Language="C#" CodeBehind="~/App_Code/WebService.cs" Class="WebService" %>

I also tried adding the project name to class name but still get the same error

<%@ WebService Language="C#" CodeBehind="~/App_Code/WebService.cs" Class="cvDesktop.WebService" %>

any help please?

thanks

Can not log on locally to C:\inetpub\wwwroot\TrackingDesk as user ..... with virtual directory password

$
0
0

I get the following error:

Can not log on locally to C:\inetpub\wwwroot\TrackingDesk as usermol\aomran with virtual directory password.

The mentioned Windows account mol\aomran is already have administrative privileges on the server that host the IIS and the directoryC:\inetpub\wwwroot\Trackingdesk. This error appears when the aomran account password expires, and changed to a new one. What I want is not to remove any dependency between the mentioned directoryC:\inetpub\wwwroot\Trackingdesk and the Windows username mol\aomran because its my personal Windows account. I want to make the system totally independent of personal username.

 

Deployed MVC 5 app cannot find views

$
0
0

I have been getting this error:


The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
~/Views/Home/Index.cshtml
~/Views/Home/Index.vbhtml
~/Views/Shared/Index.cshtml
~/Views/Shared/Index.vbhtml


I have verified that the view is in fact in the correct locations.  The only difference between my MVC 5 app and a default (out of the box ones) is that I'm using Areas.
But it can't even find the canned/OOB default view for the Home Controller (which would be found in Views/Home/Index.cshtml).

None of the default views or controllers have been changed.  Any ideas on what could be causing this?  Is there a setting in IIS that I need to tell it use Routing?

I'm using Server 2012 R2 Standard which I think has IIS 8.0 installed.

good patterns and practices about IIS

$
0
0


Hi mister,

any good patterns and practices about  IIS: WebSite, Applications, Virtual Directories, AppPool?

aspnet 4.7.1 and IIS (Windows Server 2012 R2)

Now, we have in a client 51 apps in Default Web site with the same DefaultAppPool.

Better all sites in Default Web site with the same DefaultAppPool?

Regards


How to Run a Single Page on different Apppool from Application but on same IIS Site

$
0
0

Hi,

I have an application(Application1) and I have a webpage (MyPage.aspx),The whole application (Application1) is run on an Apppool(say Apppool1) and IISSite.

I want to run Application1 on Apppool1 and MyPage.aspx on Apppool2,please suggest on how to proceed with same.

Any resources to change the web.config and IIS Settings.

Thanks,

Kalyan

LINQ to Entity & Application Deployment

$
0
0

Dears

I have an application that runs using LINQ to Entity and Oracle database server (which I'm not an admin on), I'm currently moving my application to production server but trying to test the new Prod Schema on my Dev application, my current schema name is QMIC so is my application, while the new schema is QUALITY_DAMMAM but all database objects are identical (Tables/views ..etc.) which I check using Toad.

when I just updated my connection string to the new service naming I got the following error in my application,

ORA-00942: table or view does not exist 

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: Oracle.ManagedDataAccess.Client.OracleException: ORA-00942: table or view does not exist

Source Error:


Line 78:                 {
Line 79:                     // Save Mode
Line 80:                     if (context.USERS.Any(user => user.USER_ID.ToLower() == userID.ToLower()))
Line 81:                     {
Line 82:                         return true;

Source File: d:\In-House Applications\QMIC\Classes\DAL.cs    Line: 80

moreover, through debugging & testing I found out that my application does retrieve correct data from my new schema, but doesn't run the application.

the question is am I missing some steps to do associated with LINQ to Entity, edmx model ? is there a best practice to changing a database of such application ?  

Knowing that I'm new to LINQ to Entity.

ReadOnly files in asp.net temp folder causes repeated errors

$
0
0

I've gotten this occasionally on our test server (and the solution generally has been - delete temp folders, iis reset, and/or aspnet_regiis -I) however on our dev boxes were now getting this all the time and it appears to be because we are checking out a DLL from TFS and its "read only" and that setting seems to be making its way over to the asp.net temp folders and causing greif...

"System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0c9c5fe5\51acd19b\....somefile.Dll' is denied"

using Procmon.exe (sysinternals) we can see that the complaint is "ReadOnly" files

inside of the temp folders we see

filenamehere.dll
filenamehere.dll.delete

all over the place, but only manually deleting these files or removing the "readonly" flag will allow the app to run (usually only one time also - iisreset will cause the process to repeat and it seems to want to try to update these files (probably after we rebuild) and we get the issue again...

Anyone figured this one out previously?

So far we've "solved" this temporarily by "getting files from TFS and then manually remembering to find the dlls giving grief and manually unsetting their readonly flag.

problem with this is

a) new developers often miss this step and spend a long time trying to figure this one out, and

b) its an annoying -non automatic- thing to have to remember...

so

is there an easy solution to this that we're missing?
is this an ASP.NET or .NET or Visual Studio or TFS or all Source control issue - and if its not asp.net can you suggest me at the appropriate place to ask this question?

thanks in advance

Error 500.19 web config

$
0
0

We are trying to move a web app from a Windows 2008 server to a Windows 2016 server and we are getting the following error when trying to run the app.  The error appears to be happening on the web.config file in the root of the app. What do I need to do to fix this?

This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". 

system.web.extensions could not be loaded ... .NET 3.5

$
0
0

I saw a few other threads on this but some were locked, though it better to start a fresh thread.   I solve this issue but would like to understand what was happening --

Working with an old ASP.NET app built on VS2010, imported it into VS 2017, managed to get everything to compile, but there are a handful of old DLLs for which I don't have source code.  One of them is ComponentArt.Web.UI, an old DLL which references an older version (1.0.61025.0) of System.Web.Extensions, whereas all that I could reference from the framework list was a 3.5 version.  Using binding redirection I was able to get the compile to work, but when I ran the app I got this on the web page:



Server Error in '/' Application.

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
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.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

=== Pre-bind state information ===
LOG: User = administrator
LOG: DisplayName = System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///C:/Users/administrator/Documents/Visual Studio 2017/Projects/Rs/Rs.App/
LOG: Initial PrivatePath = C:\Users\administrator\Documents\Visual Studio 2017\Projects\Rs\Rs.App\bin
Calling assembly : ComponentArt.Web.UI, Version=2007.1.1512.3, Culture=neutral, PublicKeyToken=9bc9f846553156bb.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\administrator\Documents\Visual Studio 2017\Projects\Rs\Rs.App\web.config
LOG: Using host configuration file: C:\Users\administrator\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/433569cf/2e1bc57e/System.Web.Extensions.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/433569cf/2e1bc57e/System.Web.Extensions/System.Web.Extensions.DLL.
LOG: Attempting download of new URL file:///C:/Users/administrator/Documents/Visual Studio 2017/Projects/Rs/Rs.App/bin/System.Web.Extensions.DLL.
LOG: Attempting download of new URL file:///C:/Users/administrator/Documents/Visual Studio 2017/Projects/Rs/Rs.App/bin/System.Web.Extensions/System.Web.Extensions.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/433569cf/2e1bc57e/System.Web.Extensions.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/433569cf/2e1bc57e/System.Web.Extensions/System.Web.Extensions.EXE.
LOG: Attempting download of new URL file:///C:/Users/administrator/Documents/Visual Studio 2017/Projects/Rs/Rs.App/bin/System.Web.Extensions.EXE.
LOG: Attempting download of new URL file:///C:/Users/administrator/Documents/Visual Studio 2017/Projects/Rs/Rs.App/bin/System.Web.Extensions/System.Web.Extensions.EXE.

The 3.5 version of System.Web.Extensions is under C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5 ... but as you can see above that path was not being looked at.  Even the Reference properties file shows this path, but at runtime the app errors out with the above page, apparently not looking for the DLL in the right place.

Eventually I figured out to set "copy local" to TRUE, which solved the problem by copying the DLL to the bin directory during compilation, and the bin directory is one of the above listed "attempting download" paths.  

But I am wondering why the above "attempting download" paths do not include the path listed in the reference in the first place?  

Thanks.  John

Viewing all 3561 articles
Browse latest View live


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