w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Changing user identity during an active SignalR connection — how to reconnect?
that is simple, do not rely on user identification , instead create your own cookie that you can track every user regardless of if this user was logged in or not . just like many AD agancies have cookies to track users even if they are not signed in .

Categories : Asp Net Mvc

how to get next Identity not the last inserted identity of Identity column
You don't need to do anything to "lock" an IDENTITY value. As soon as the table uses a value of an IDENTITY, it's used forever, even if you do a rollback. SQL Fiddle example: http://sqlfiddle.com/#!3/5fdb9/1/0. Note the ids that make it into the table, only 1 and 5. If that doesn't address your problem, please revise your question.

Categories : Sql Server

Using IIS6 run a batch file when particular URL hit
Open the root folder of your website (Example: C:inetpubwwwroot) Create a text file with extension .aspx (Exampe: run.aspx) Add the following script <script language="c#" runat="server"> public void Page_Load(object sender, EventArgs e) { System.Diagnostics.Process.Start(@"C:inetpubwwwroot un.bat"); Response.Write("OK"); } < /script> (You will need to remove the space i addeed for the < /script>, Stackoverflow doesnt allow me to add script tags the correct way.) Then call the file /run.aspx

Categories : GIT

IIS6 Required for Sitecore
I am not sure about ignoring it but you also don't need to install II6. You just need to install IIS 6 Management compatibility. Go to Windows features (Programs and Features) -> Internet Information Services -> Web Management Tools -> IIS 6 Management Compatibility.

Categories : Iis

IE 10 or IIS6 not working with box.shadow
You can add -ms-filter to your CSS. -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=140, Color=#444444, positive=true)"; Please check Related Links below: -ms-filter property Microsoft CSS Vendor Extensions

Categories : HTML

IIS6 bat file - Home Directory
I don't think you can do this directly from a batch file, but you should be able to do it from a vbscript which you can call from a batch file. The trick is to use the IIS WMI provider which gives you access to the IIS metabase. For example, the script below should echo the name and path of every virtual directory on the local server. set provider = GetObject("winmgmts://localhost/root/MicrosoftIISv2") set results = provider.ExecQuery("SELECT Name,Path from IISWebVirtualDirSetting") for each item in results WScript.Echo item.Name WScript.Echo item.Path next If you saved this script as iispaths.vbs (just as an example), you could then call it from a batch file with: cscript //nologo iispaths.vbs Unfortunately I don't have access to a machine with IIS6, so I am unable to test thi

Categories : Iis

Custom 404 error redirection Asp.net + iis6
You can set URL rewrite module and set rules for that. Instead of relying on custom error. Here is the link how you can install IIS rewrite module in IIS 6. http://www.web-site-scripts.com/knowledge-base/article/AA-00461/0/Installation-of-URL-Rewriting-module-IIRF-for-IIS6-IIS7.html#iis56

Categories : Asp Net

ImageResizing.net DiskCache plugin not working on IIS6
Hmm - sounds legit, but I can't see all of your config. Here's a sample I got working on a site: <configuration> <configSections> <section name="resizer" type="ImageResizer.ResizerSection" /> <section name="cropUp" type="Eksponent.CropUp.Config.CropUpSection, Eksponent.CropUp" /> </configSections> <resizer> <plugins> <add name="DiskCache" /> <add name="Eksponent.CropUp.Plugins.ImageResizerPlugin"></add> </plugins> <diskCache dir="~/media/imageresizer" /> </resizer> <cropUp configSource="configEksponent.CropUp.config" /> </configuration> Does this match your setup?

Categories : Misc

How do I use Zend Framework 2 with virtual directories on IIS6?
Did you take a look at the ISAPI Rewrite module bij Helicon? It supports Apache mod_rewrite rules syntax. I used this module in the past with ZF 1 and it worked like a charm. There's a free version available which has some limitations: http://www.helicontech.com/download-isapi_rewrite3.htm

Categories : PHP

host asp.net 4.0 site in windows server 2008, iis6
I have done the asp.net 4.0 site deployment in windows server 2003 by the following steps. Undone the above steps I have mentioned. Install framework 4.0 Create new application pool (if there is no option to create, please ignore this) Open IIS6 -> Web Service Extension -> "Allow" framework 2.0 and 4.0 Add your website in IIS. right click on your site -> properties -> go to "home directory" tab -> select the new application pool you have created.(if there is no option, please ignore this) go to "ASP.NET" tab -> change the framework version to 4.0 browse your site.

Categories : Dotnet

MVC4: Using @Model in javascript inside @section in IIS6
Review these steps and make sure you have configured your app same way, you should be fine http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx

Categories : Javascript

Period in ServiceStack Routes works in IIS6.0 but not in Dev server?
I just answered this similar question, and i think the same should apply in this case: Visual Studio Development Server (Cassini) does incorrect routing for dots. If you create a file system Web site in Visual Studio 2010 and the Web site is in a folder that contains a dot (.) in the folder name, URL routing will not work reliably. An HTTP 404 error is returned from some virtual paths. This occurs because Visual Studio 2010 launches the Visual Studio Development Server (Cassini) using an incorrect path for the root virtual directory. There are 3 workarounds, and only the "use IIS instead of Cassini" workaround seems to work for ServiceStack. The problem will go away if you edit your project Web properties and check "Use IIS Express" instead of "Visual Studio Development Server".

Categories : Iis

Where is Microsoft.AspNet.Identity.Owin.AuthenticationManager in Asp.Net Identity RTM version?
That class is gone, as it was basically just adding methods that generated a ClaimsIdentity and passed that into an Owin.Security.IAuthenticationManager. Instead the RTM templates have a SignIn method in the controller that looks something like this: private async Task SignInAsync(ApplicationUser user, bool isPersistent) { AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie); var identity = await UserManager.CreateIdentityAsync(user, DefaultAuthenticationTypes.ApplicationCookie); AuthenticationManager.SignIn(new AuthenticationProperties() { IsPersistent = isPersistent }, identity); }

Categories : Asp Net

Finding out the current Identity Provider in Windows Identity Foundation
You typically use the Issuer and OriginalIssuer properties in each claim that you get. If you use e-mail as the unique identifier: var u = this.User as IClaimsPrincipal; var c = (u.Identity as IClaimsIdentity) .Claims .First( c => c.ClaimType == ClaimTypes.Email ); var issuer = c.Issuer; var originalIssuer = c.OriginalIssuer;

Categories : C#

How to Alter a table for Identity Specification is identity SQL Server
You cannot "convert" an existing column into an IDENTITY column - you will have to create a new column as INT IDENTITY: ALTER TABLE ProductInProduct ADD NewId INT IDENTITY (1, 1); Update: OK, so there is a way of converting an existing column to IDENTITY. If you absolutely need this - check out this response by Martin Smith with all the gory details.

Categories : SQL

Identifying files in a directory used by a website in IIS6 or IIS7.5 for a Classic ASP Web App
One approach is using Sysinternals Process Monitor. You can set Four filters like following image to find out all files accessed during application life-cycle. The w3wp.exe is IIS worker process which runs Web applications. You must set Path filter to begin with physical path of the Web application. 45

Categories : Iis

Windows authentication username and password when trying to access MVC4 app in IIS6
In the end it was my own foolishness that was causing this problem. The site was using Forms Authentication, and my controllers were decorated with the [Authorize] attribute. However, during the deployment to my server and amongst the config transformations my build configuration was doing, the <authentication> section in the web config was being lost, so when the controller with the [Authorize] attribute was being hit, ASP.NET didn't know what sort of authentication to use so it was falling back on integrated windows authentication! Just stick in authentication attribute back in and it should work.

Categories : C#

How do I clone custom HTTP Request Header Variables to the Response in IIS6?
MSDN has a good write up on working with HTTP header variables in IIS6. HOWTO: Retrieve Request Headers using ISAPI, ASP, and ASP.Net

Categories : Http

IIS6 to IIS7.5 broke database call, "Active Directory error '8007203b' "
Your distinguished name seems to be off. The domain part should go after the organizational unit: Set objuser = objRoot.OpenDSObject("LDAP://CN=" & user & _ ",OU=FTP,dc=barghausen", strUserDN, strPassword, ADS_SECURE_AUTHENTICATION)

Categories : Database

How to disable identity from the existing column & after adding data , how to enable identity again on the same column in SQL Server 2008?
Use SET IDENTITY_INSERT (http://msdn.microsoft.com/en-us/library/ms188059.aspx). SET IDENTITY_INSERT TableName ON; -- Insert Data. SET IDENTITY_INSERT TableName OFF;

Categories : Sql Server

"The Web server does not appear to have the FrontPage server extensions installed and iis6
FrontPage server extensions (FSE) is a server side package that FrontPage and some other Microsoft applications use to upload files to web sites. FSE must be installed on the server in order for these applications to upload files. FSE has nothing to do with Microsoft desktop products directly. It is often installed on Apache systems, for example. cPanel has an option to install it, if you are using that to manage your server. IIS should come with FSE already installed, AFAIK. That would certainly make sense, with it being a Microsoft product.

Categories : Visual Studio 2010

How to map identity provider claim value to/from identity provider registered in Azure ACS?
I tried to do this last week and couldn't find a way to match the value in the claim to the value in IdentityProvider.js. I landed up looking for specific values. The only thing I can suggest is some resource/code that understands the mapping. I was just looking for a specific one and landed up doing something like this: return (HttpContext.User.Identity as System.Security.Claims.ClaimsIdentity).Claims .First(x => x.Type == "http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider").Value .Contains("Google") I searched high and low for the data, but couldn't find it. If you do, please submit an answer, I would also like to know

Categories : Azure

Changing HiddenField value in codebehind no changing in Javascript function in order to use showModalDialog
Watch the casing on your Parameters variable. Also try using RegisterStartupScript instead of RegisterClientScriptBlock. The difference is the former will put your javascript at the bottom of the page while the latter puts it at the top. This will cause the script to run before the document it fully loaded. ScriptManager.RegisterStartupScript(Page, Page.GetType, DateTime.Now.ToString, "<script type='text/javascript'> ShowWindow(); </script>", False)

Categories : Javascript

Dynamically changing background color of specific text without changing other attributes
Give your selected span a specific namespaced classname like <span class="gs-text-selected"> or whatever, then write CSS that targets that. You might have to add !important to your styles if you get cascade issues, but be careful with !important.

Categories : Javascript

Changing line width of CGContext while changing the image colour?
You set the line width with CGContextSetLineWidth(context, width). The reason why you're seeing no effect from this is because you aren't stroking anything. Line width applies to the line painted by stroking. You're filling, not stroking, and a fill has no line to give width to. If you want to put a border around the rectangle, you need to stroke it. That's what draws a line all the way around the perimeter of some shape. You have three options: Call CGContextSetLineWidth, then CGContextStrokeRect. Call CGContextStrokeRectWithWidth. Call CGContextSetLineWidth, then CGContextAddRect (to add the rectangle to the current path), then CGContextDrawPath with kCGPathFillStroke. (Or call AddRect before SetLineWidth if you prefer—they only need to both happen before DrawPath.) Note that a

Categories : IOS

Changing the order of creation of instances is changing their behaviour Python
In Python, declare instance variables within the constructor What you're actually doing is declaring class variables. If you want instance variables in Python, you will need to declare them them in your constructor: class Delish: # This is a class variable. # All instances can refer to this as self.foo foo = 42 def __init__(self,array): self.ing = [] # This is an instance variable self.rmax = [] self.rmin = [] self.lmax = [] self.lmin = [] self.answer = 0 self.ing = list(array) self.rightmax() self.rightmin() self.leftmax() self.leftmin() self.calculate()

Categories : Python

Changing absolute positioned text div through jQuery, without changing it's position
I would start with this: #block_contact { position: relative; } Any absolutely positioned child elements will start from the top-left corner of #block_contact, instead of the top-left corner of the window. Try it and see if it fixes anything, I don't have any other ideas.

Categories : Jquery

Weird behavior when changing line separator and then changing it back
The problem you're having is that your input ends with END . Ruby sees the END, and there's still a left in the buffer. You do successfully set the input record separator back to , so that character is immediately consumed by the second gets. You therefore have two easy options: Set the input record separator to END (use double quotes in order to have the newline character work): $/ = "END " Clear the buffer with an extra call to gets: $/ = 'END' answer = gets gets # Consume extra ` ` I consider option 1 clearer. This shows it working on my system using option 1: $ ruby multiline_input_test.rb this is a multiline awesome input string FTW!! END "this is a multiline awesome input string FTW!! END " test "t

Categories : Ruby

Default MVC4 Template changing dbcontext without changing database name
The context and the database don't always have to be the same name. You can define the name of your database in your connection string by using Initial Catalog=DbNameGoesHere. This way you can rename your context all you want and the database name is always the same.

Categories : C#

Changing a cell in a row of a DataGrid(WPF) is changing cells in rows below
Try using this: <DataGrid Name="SimpleDataGrid" ScrollViewer.CanContentScroll="False" ... /> for scrolls in terms of physical units. It DataGrid CanContentScroll it is enabled by default. For more information see MSDN.

Categories : C#

Changing URL without changing Actual Path to Redirect
ASP.NET MVC 4 provide a toolbox way to write your application. The URL that you see in the browser comes from Routing that do the hard work to convert url to app routes and app routes to url. 1) The default ASP.NET MVC 4 Template project comes with a file at App_Start folder named RouteConfig, where you must config the routes for the app. 2) The routes has precedence order, so, put this route before the default one: routes.MapRoute( name: "RouteForPageId", url: "{pageId}/{action}", //controller = "Home" and action = "Index" are the default value, //change for the Controller and action that you have //pageId is the parameter from the action that will return the page defaults: new { controller = "Home", action = "In

Categories : Asp Net Mvc

C++ Pointer: changing the contents without changing the address?
The pointer IS the object, so if you do new Object() you create a new one, but the functions with the prevoius pointer will not see it. If you want to change the content, you can do this, because all other objects which know the pointer will reference the values that your object contains. It's a bit similar to a global variable. So you can pass around the pointer and all functions will see your changes as soon as they acces the object.

Categories : C++

Using @@Identity
You didn't show the code which does the INSERT into the other database. If you're using the Execute method of an ADO Connection object to do that, run the SELECT @@Identity query from that same connection object ... not a new connection with the same connection string. @@Identity is only usable within the same connection session; otherwise you'll get 0. And actually you don't even need a recordset to capture that value. If your connection object is named conn, this will return a recordset, but you need not assign it to a recordset object variable. Simply ask for the first item from the returned recordset. Debug.Print "most recent autonumber: " & _ conn.Execute("SELECT @@Identity")(0)

Categories : SQL

Identity Certificates
see this for more information Certificate, Key, and Trust Services Tasks for iOS on developer.apple.com

Categories : IOS

Get Incremented IDs when Identity is not set
This is a kludge, but it may help you solve the immediate problem. In the long run, though, it's best to turn IDENTITY back on. DECLARE @Seed INT SELECT @Seed = MAX(Cust_ID) FROM <table_1> INSERT INTO <table_1> SELECT ROW_NUMBER() OVER (ORDER BY Dept) + @Seed, CustName FROM <TABLE2> WHERE Dept = 'Sales' AND Designation = 'Manager' However, this code is likely to break in spectacular ways if you execute multiple instances of it simultaneously.

Categories : Sql Server

How to specify sql server identity
Here is the syntax: create table tablename (ID_cli int identity(100,1), AdditionalId as '0001'+Cast(ID as Varchar(10))) Here Additional Id column will have ID values always prefixed with 0001. IDENTITY [ (seed , increment) ] seed:Is the value that is used for the very first row loaded into the table. increment: Is the incremental value that is added to the identity value of the previous row that was loaded.

Categories : Sql Server

ASP.NET Membership / Identity MVC 5
There is no built in equivalent for IsOnline currently, you could replicate that functionality by tracking the last seen time for your users and then adding a method which checked whether they have been seen in the last 5 minutes. We might add the last seen data to the default implementation in a future release.

Categories : Asp Net

how to increment in mvc without identity
You're probably using a database. You can let the database manage your IDs. Generating unique identity numbers in a database is usually simple - you have IDENTITY columns in SQL Server, and all other databases have a similar feature. If you're not using a database, can generate a unique GUID - that's easier than maintaining a unique count.

Categories : Asp Net Mvc

Two identity columns
Read through this article and the ORMLite documentation; Multiple primary keys - ORMlite I'm not 100% sure on the answer by this. uniqueCombo = true seems to be a good guess, but i'm not sure if things such as Update and Delete still work then. You'd have to test it yourself.

Categories : Java

ASP.Net Identity how to set target DB?
Here's a step-by-step on how to successfully change your database. First, clean-up anything you might have done previously. If there is any chance you might not get EVERYTHING, it would be best if you just started with a completely fresh copy in a new folder. Once source is 100% back to original state, ensure everything else is cleaned up, including deleting your "new" database and the original database (aspnet-AspnetIdentitySample-20130627083537_2). You can find the original database using the SQL Server Object Explorer. ("View" -> "SQL Server Object Explorer" in Visual Studio) Next, before you run your new application for the first time, go ahead and make the change to use your database name of choice. Here are the steps: 1. Set new database connection in web.config <connectionS

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.