Is There A Bug In .NET's User-Agent Interpretation For Custom Builds Of Firefox
Feb 3, 2010
For the user agent string
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
HttpContext.Current.Request.Browser.MajorVersion returns 3 and HttpContext.Current.Request.Browser.MinorVersion returns 5. So far so good.
However for this user agent string (seen in the wild by one of my users)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 (CK-Finbu.com) Firefox/3.6 (.NET CLR 3.5.30729)
HttpContext.Current.Request.Browser.MajorVersion returns 1 and HttpContext.Current.Request.Browser.MinorVersion returns 9. It looks like ASP.NET has picked up the numbers from the CVS tag info rather than the browser version. Does this mean that ASP.NET's user agent parsing is broken?
View 1 Replies
Similar Messages:
Jul 9, 2010
I perform a httpwebrequest without setting the useragent property.The page where I send my request to response with [Code]....
View 3 Replies
Feb 7, 2011
I am using Logi Reports for creating reports in my application. I am passing cookies from web application to these logi reports. Cookies were workign correctly before, but after the release of this version. Cookies are not working in these logi reports.
View 1 Replies
Aug 19, 2010
I am currently using Request.Useragent.Contains("string1") and if string1 matches with my useragent i am writing it on to the page, now I have to check with a collection ( array or list or ..) which contains {"string1","string2","string3"} and Response.write the useragent if the Request.useragent contains any of the strings collection (string 1,2,3). I am unable to detemine this and if i use a list or array, i am getting a "cannot convert from string[] to string" exception when i use it with Request.Useragent.Contains.
If there is a better way of achieving this, let me know. Its important.
View 2 Replies
Jun 7, 2010
I need to generate small images for certain parts of text. Those will have to fit into the text seamlessly. I know I can not make up for every browser font settings available, but how do I have to check for Linux, Mac and Windows users depending on the user agent? I want to use the right font (of the three "Verdana, Arial, Helvetiva") for the right user agent OS.
So:How do I check for the OS? What do I have to compare to in the user agentWhere can I get the other two fonts. Does the Windows-included Verdana look the same as the one used on Linux (or, is it free anyway? I don't know much about fonts)? Where do I get Helvetica? Is it Mac OS licensed?
Any code examples can be in either c# or VB.NET. I can read both.
View 2 Replies
Apr 20, 2010
When making a call to a SOAP web service how does one go about adding a user agent string to the request from a SOAP client?
View 1 Replies
Sep 26, 2010
I am currently trying to setup our complete development process (from dev to production).
We will be using Microsoft Team Foundation Server and I was wondering if there was way to put what version of programs you want in a build.
Let's say we are 20 programmers working on the same project and we only want to deploy changes done by one or two programmers. Is there a way to do that?
I was thinking about using continuous integration to our dev / QA server and than deploy what is ready and fully tested to our production servers.
View 6 Replies
May 29, 2010
I'm on Windows Server 2008 with IIS 7.5 I have set up two web applications on the web site; one for the debug-build and one for the release-build for our system. I have not been able to figure out how to setup the two web applications so that they do not share the same native module.
When I access the debug-application (http://dev1/debug) it loads "G:workspaces ewreposdebuginRXWeb.dll" and the site works fine. However, when I access the relase-application (http://dev1/release) it also loads the "G:workspacesewreposdebuginRXWeb.dll" which is not want I want. I want it to load the "G:workspacesewreposeleaseinRXWeb.dll". Apart from that the relase-application works fine, loading for example its own database, javascript-files, images and so on.
I have tried many different configuration but obviously there is something I do not understand.
These are the changes I have made to applicationHost.config:
Under the section <globalModules> the following to rows are added at the end:
<add name="RXDebug" image="g:workspaces
ewreposdebuginRXWeb.dll" />
<add name="RXRelease" image="g:workspaces
ewrepos
eleaseinRXWeb.dll" />
The web.config for the debug-application looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>............
View 2 Replies
Feb 8, 2010
I have been working in isolation for a very long time, and over the past few monts a new CTO introduced me to Ant and CI (however in Java, with him doing the dirty work)..just enough to make me see the benifits. Now I'm back to .Net (left off at 1.1, started again after a few years in PHP) and since I got the hang of asp.net 3.5 (mvc) I'd like to expand my knowledge and tools a bit.
Found a copy of "Expert .NET Delivery Using NAnt and CruiseControl.NET" which sounds like exactly what I'd like to study to know how to create my own automated builds and Continuous Integration, but then I realized this book was written in the .net 1.1 days (yes yes, I know a lot will still apply..I just like to be on the bleeding edge of things) Can anyone make some recomendations, give some tips, advice (and even critic) on this train of thought?
View 1 Replies
Apr 20, 2010
I just noticed in the output window, as a result of building a project, that it mentions "up-to-date" and I'm curious what this means.
[Code]....
View 2 Replies
Feb 15, 2010
I'm new to all of this, so go easy on me. This should be an easy one. I have created a custom SmartContentBlock user control for a CMS.The control works, but only if I invoke the Fill() function in the Page_init event in the codebehind of the ASPX page. My goal is to modify the class file so that the Fill() in the codebehind is no longer neccesary. So, for reference, here's the gist of the current situtation.Controls.cs
[Code]....
ASPX Page
[Code]....
View 3 Replies
Jun 25, 2010
Start Sql Agent Job from Website Can this be done in VB?
View 2 Replies
May 4, 2010
Well I would like to get understanding on sql server security. how to map windows user eg:'srm123' to sql server agent so that user when logins in sql server can also work with sql server agent.bydefault u can not see sql server aqent icon in ssms in userlogin.what is a role of a proxy and credentials how to map them with windows user to workwith jobs and alerts.
View 1 Replies
Jan 12, 2011
I am trying to run a Stored Proc in 2008 using the sql agent. I read some posts on here and other places that say you can and I have tried what they said but isn't running. I can execute the proc form a query window and its working fine so its not my proc.I setup a job and then created a step named the step run stored procType: not sure here but I left it at default T-SQLChanged the database to the database where my sp is located Then in command i put exec dbo.sp_myprocname
View 2 Replies
Oct 15, 2010
I am facing grouping the agent wise in stored procedure, here i showned the table columns,views and stored procedures i used.
User Table columns
User_Id,pwd,Created_Dttm,Role,Status
Table1 columns[code]....
Problem is when i am group by A.Name i am getting error "Column 'V1.Target' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause."
View 1 Replies
Nov 16, 2010
has any one done any automation related to Firefox - Firebug
I am trying to automate some task using C#
I found these two open source projects related to automating firefox
[URL]
how to interact with firefox addons
View 2 Replies
Mar 20, 2010
Can a custom user control embed another custom user control?is this "bad practice"?eg if i have a custom user control named "Forums" then 2 more custom controls that are "Read_Forums" and "Write_Forums"and all i need to call is "forums" in the page asking - and then it will put in both functionalities..
View 2 Replies
Apr 21, 2010
I've recently started tinkering with ASP.NET MVC, but this question should apply to classic ASP.NET as well. For what it's worth, I don't know very much about forms authentication and membership providers either.
I'm trying to write my own MembershipProvider which will be connected to my own custom user table in my database. My user table contains all of the basic user information such as usernames, passwords, password salts, e-mail addresses and so on, but also information such as first name, last name and country of residence.
As far as I understand, the standard way of doing this in ASP.NET is to create a user table
without the extra information and then a "profile" table with the extra information. However, this doesn't sound very good to me, because whenever I need to access that extra information I would have to make one extra database query to get it.
I read in the book "Pro ASP.NET 3.5 in C# 2008" that having a separate table for the profiles is not a very good idea if you need to access the profile table a lot and have many different pages in your website.
Now for the problem at hand... As I said, I'm writing my own custom MembershipProvider subclass and it's going pretty well so far, but now I've come to realize that the CreateUser doesn't allow me to create users in the way I'd like. The method only takes a fixed number of arguments and first name, last name and country of residence are not part of them.
So how would I create an entry for the new user in my custom table without this information at hand in CreateUser of my MembershipProvider?
View 2 Replies
Oct 11, 2010
I have a solution that was originally created using VS 2008. I have quite a few unit tests that all passed when ran in VS 2008.
Yesterday I opened this solution in VS 2010 and converted it using the wizard. The solution built just fine, it runs just fine, BUT now all tests that access the db fail. I get the same error on every test (below).
"The runtime has encountered a fatal error. The address of the error was at 0x5b3b5ad7, on thread 0x19a4. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack."
In test classes that use ClassInitialize() and ClassCleanup() methods, all the tests fail. All tests fail with the same error, "The agent process was stopped while the test was running." Tests in test classes that do not utilize ClassInitialize() and ClassCleanup() (these tests do not hit the database) all pass.
When this was a VS2008 project all 153 tests passed. No changes have been made to these tests, other than converting the project to a VS2010 project.
I've been playing around with one test class. I commented out the ClassInitialize() and ClassCleanup() methods. I rewrote one test method and mocked everything. I tried running just that one test. I still got the "The agent process was stopped while the test was running" error.
Visual Studio 2010, version 10.0.30319.1 RTMRel
Test framework: integrated VS 2010 MS Test
Mocking framework: Not using mocking, I have a db that is destroyed and recreated in MyClassInitialize(), it is populated with known values. Yes, I know I should be using mocking, but this is an older app and it has not been updated with all of the new bells and whistles yet.
DB Framework: NHibernate
Target Framework is 3.5 for all projects in this solution except for the test project.
The target framework is 4.0 for the test project. I tried changing it to 3.5, it will not let me.
"Attempted re-targeting of the project has been canceled. You cannot change the specified .NET framework or profile for a test project."
View 4 Replies
Oct 19, 2010
I've used some Jquery scripts for toggling image on a web user control, it work fine in explorer but got no signs of life in firefox!
Here the code for a test form in plain html (this works on every browser):
[Code]....
and in post-behind:
[Code]....
this is the toggle.js:
[Code]....
View 12 Replies
Mar 28, 2011
I have a user control (ascx file) that contains an interface for users to change the data retrieved from the db. So, I am displaying data and most of this data can be edited by the user. When the user enters text into a textbox, and clicks "Save Changes", the value they typed in is lost and not persisted to the database. I realize now this is because the SaveChanges button does a postback, and the user control gets reloaded with its original valuesbefore the code within my SaveChanges button gets executed. I'm not sure if there are properties I need to set to save the input data, or if I need to write my own code to do it. What is the generally accepted method to do this? (Also, all of the controls in the ascx file are wrapped in an Update Panel.)
View 8 Replies
Aug 12, 2010
I have a custom membership user class and custom MembershipProvider working against database. Due to security reasons the user passwords are stored in the database as hashed values. So my procedure
public override bool ValidateUser(string username, string password) is
{
//select hashed password from db
return (EncodePassword(password) == dbpassword)
}
[code]....
View 4 Replies
Apr 20, 2010
I have setup a job in SQL Server Agent which run a store procedure.
[Code]....
After the job excuted, the temp table have not been created.
If I type "exec data_syn_ClearAllEposData". The temp table has been created.
Global Temp table cannot create in SQL SERVER AGENT?
View 8 Replies
Mar 4, 2010
I have a custom control which inherit from the Table class and in the constructor, it takes a an integer as an argument. There is no empty constructor.
Is there a way for the user to set that variable in the properties window after they drag the control onto a form.
I know some .NET controls, you can set the source for the parameter to different things like another control's property, QueryString using just the properties window.
Right now, I have to create the control dynamically. I read the query string and then created the object.
View 1 Replies
Oct 27, 2010
I have created a user control and am ready to convert it into a custom control. I am trying to follow:
[URL] the steps mentioned in the link.
I am not seeing Build / Publish Web Site option.
I am using VS 2008. I only see Publish User Control but it doesn't give all the settings mentioned below. When I do publish user control, it just copies the ascx file to the desired location. how can I convert the user control to custom control.
View 2 Replies