C# - Detecting Case-sensitive Filename Errors?

Jan 21, 2010

we are making a project to run in ASP.Net on Mono/*nix Our problem is that we develop on Windows, and we just build and test it every so often on Mono. So we have been having a lot of trouble recently with case sensitive filenames. Everything seems to work good in Windows and then we move to Mono and it's silently broken.(as in, it builds but won't run or parts of it don't work)

How would you recommend that I detect this while we are developing on Windows? Basically, how do we make the case-sensitive filenames look wrong in our code where the code works on Windows but not *nix?

View 2 Replies


Similar Messages:

Are Session Variables Case-sensitive

Mar 28, 2011

I am using ASP.NET 2.0 and C#. I would like to know if the Session variables are Case-sensitive.

Is Session["StudentId"] and Session["StudentID"] considered the same.

Which would be the proper way to access the session details, when in a page someone passes data as Session["StudentId"] and somebody else passes as Session["StudentID"]?

View 6 Replies

How Can A Virtual Directory Path Appear Case Sensitive

Nov 18, 2010

To start with then we have a LinkButton whose text is actually an image tag. The image it links to is a Png and resides in a folder in the web directory. This is IIS V6 and win Server 2003.

The path is [URL]

Admin is a virtual directory configured in IIS.

The above url doesn't work but if you change it to [URL] (lowers case 'a') then the image is served, change it back to 'A' and it takes you to login, you log in and it loops back to log in. change to 'a' and voila the image is served. Weirdly this problem doesn't always occur and I have hunted for a resolution for days to no avail.

As requested this is the complete link button

<asp:LinkButton ID="lnkCommitAll" runat="server" CausesValidation="false"><asp:Image ID="imgCommitAll" runat="server" ImageUrl="~/Images/Grid/confirm_16.png" AlternateText="Commit All Changes" /> Commit All</asp:LinkButton>

View 1 Replies

Databases :: Case Sensitive Sorting When Running A Query?

Mar 4, 2010

When doing a query e.g. "select ID from myTable order By SomeStringField" from SQL Developer my data the data are sorted correctly according to database settings:

Abc
abc
Bcd
bcd

But when using the System.Data.OracleClient namespace and a DbProviderFactory to create a DbCommand and use that to create a DbDataReader, the data is sorted case sensitive:

Abc
Bcd
abc
bcd

Is there some setting on the command which needs to be set? Can you even change the case sensitivity in the .net framwork, overriding the database settings?

View 3 Replies

Web Forms :: Implement Case Sensitive Password Check In Login Form Website?

Sep 18, 2013

I want to know case sensitive password for my login form(C#).

View 1 Replies

Web Forms :: Getting Error / Unrecognized Attribute 'targetFramework'. Note That Attribute Names Are Case-sensitive

Mar 17, 2011

I have a problem with my web site 1stSigBdeAssn.org. I have made no changes to the site but I now get the following error message:

Parser Error Message:

Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:

[code]....

View 4 Replies

Forms Data Controls :: Text Validator Case-sensitive / Change The Server-side validator?

Dec 13, 2010

I have a validator on a textbox that validates against a list to ensure that the user doesn't input the same name. When testing it, if I type in the same name including the same case structure, it returns an error. If I change one letter to a different case, it doesn't return an error but rather my SQL server returns a duplicate error. How do I change the server-side validator so that it picks up duplicate names regardless of case?

View 4 Replies

Configuration :: Unrecognized Attribute "targetFramework" Note That Attribute Names Are Case - Sensitive While Hosting

Nov 29, 2010

i'm trying to host an .net framework4.0 application in IIS7. i got an error while clicking on the manage module in modules .like ("Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. ") .I changed my application poll to .net4.0.I am able to browse my application

</system.serviceModel>
</configuration>

View 5 Replies

Configuration :: Unrecognized Attribute "targetFramework" - Note That Attribute Names Are Case - Sensitive

Oct 20, 2010

I installed Microsoft Visual Studio 2010 Ultimate Trial and converted existing asp.net 2.0 web application and I am getting this error: znrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. It's coming from this section in the web.config which was auto-generated by VS2010 when I converted the project:

<compilation defaultLanguage="c#" debug="false" targetFramework="4.0">
<compilers>
<!--<compiler language="c#" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".cs" compilerOptions="/d:DEBUG;TRACE" /></compilers> -->
<compiler language="c#" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".cs"/></compilers>
<assemblies>
<add assembly="Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>

View 1 Replies

Root Path With Tilde - Doesn't Change Upper Case To Lower Case

Dec 30, 2010

I have my project set up with the virtual path "/MyVirtualPath", create the virtual directory in IIS 6 (W2003) and everything works fine. Then to work better with Google Analytics I change the virtual path "/myvirtualpath" and change all redicecciones and links to lowercase. also applies the class "lowercase route urls in aspnet mvc" and works perfectly.

The problem I had to modify the virtual directory in IIS, delete virtual path "/MyVirtualPath" and I created the new "/myvirtualpath", but in all cases I use tilde "~" or where I make a "RedirecToAction" (which should take "LowercaseRoute"), continues to maintain the virtual path "/MyVirtualPath". For example, if I see the HTML source code in the browser, see "/MyVirtualPath/Content/Site.css" instead of "/myvirtualpath/Content/Site.css. "

View 1 Replies

Application Hosted On IIS7 That Is Ignoring Custom Errors And Falls Back To IIS Errors?

Jul 2, 2010

I have a C# web forms ASP.NET 4.0 web application that uses Routing for URLs for some reason custom errors defined in the system.web section of my web.config is entirely ignored and it will fall back the IIS errors.

This gets entirely ignored

[code]....

This would be a minor inconvenience except that by the fact it falls back to IIS native instead of my application it completely circumvents Elmah logging my 404 exceptions correctly.

View 3 Replies

Eliminating Errors That Aren't Really Errors?

Dec 21, 2010

When I build my program, if there's one error that prevents it from running, instead of just getting the one error I'll get around 50 additional errors in addition to the real one such as:

Error 27 Validation (XHTML 1.0 Transitional): This name contains uppercase characters, which is not allowed.

Is there any way to not show these?

View 2 Replies

C# - Where To Store Sensitive Variables

Apr 4, 2011

This is my first time working on a secure website. It's for a pet project I have.

For security purposes, where is it best to store information like SQL connection strings, database encryption keys, etc? Is it better to use web.config, store them in a class that accesses a database (like dataBaseHelper.cs or something), or somewhere else?

I intend to obtain an SSL cert as well. When communicating with the database, should I always use the secure connection?

View 2 Replies

MVC :: Type-Sensitive Display Of A Model?

Sep 16, 2010

Say I have a Form model which contains a list of Field objects loaded from a database. Each field object has a type that defines whether it is a listbox, combobox, input or textarea.

What would be the best way for displaying the Field objects correctly? I was thinking in my View using a switch statement and calling a specific partial depending on the case.

[Code]....

Is this a valid approach? What other methods would people recommend to do this?

View 5 Replies

How To Reuse Logic In A Context Sensitive Way In MVC

Feb 9, 2011

Trying to figure out the best way to organize a ASP.NET MVC site. Take a very simple 1..N relationship: Company can have many Contacts, Contacts must have exactly one Company.I have your typical routes:

Company/Index (list all companies)
Company/Details/{int} (details of Company {int})
Company/Create (create new company)
Contact/Index (list all contacts)
Contact/Create (create new contact, company is selected from drop down)

Now if I wanted to create a page that created a Contact in the context of a Company (from the Company detail page) so that the required company is filled in/not editable), what would be the best route of going about that, while not duplicating code where possible.Not sure if I can leverage the Contact/Create logic/view from the Company controller (and be able to route back to the Company Details page when complete), or mess with the routes to do something like Company/Details/{int}/Contact/Create (not even sure if that makes sense or would work)?There has got to be a better way then me adding my logic and view for adding a Contact into my Controller view and having it duplicated.

View 1 Replies

Getting "60|error|500|Error Serializing Value Case Of Type Case" When Go To FF And Run It

Feb 14, 2011

I have a custom object that I'm throwing into the viewstate on an async postback. If I step through the code, I can put the object into the viewstate, then call the object from the viewstate and cast it with no problems. The code, when stepped through, has no issues whatsoever. However, when I go to FF and run it, I get "60|error|500|Error serializing value 'Case' of type 'Case.'" First thing that hits me as weird is that the value is being named as the type. It's not like value oCase (an instance of Case) of type Case. I've checked that all containing objects are set for serialization, compiled and rerun the web app.

View 4 Replies

Security :: Encrypt And Decrypt Sensitive Data?

Apr 3, 2010

I'm teaching myself ASP.net. I'm creating an application that needs to store sensitive data. So, I found the following Blog to encrypt and decrypt data.

[URL]

I'm sure it's my app, but I wanted to make sure I'm not missing anything obvious. For some reason, my app and Encryptor only works when I pass < then 7 characters. If a pass 8, it doesn't commit to the database. If I remove Encryptor, the app will store

View 1 Replies

Security :: Passing Sensitive Data To Database?

Jul 14, 2010

Im saving sensitive data from my asp.net web app back to a database on another server. I have set up encryption on the database. Do I need to set up more encryption in the code behind of the web app and encrypt the data there then pass the data to the database or should I pass it as it is and then encrypt it in my stored procedure.

View 1 Replies

AJAX :: Display Sensitive Information For Only A Few Minutes?

Nov 2, 2010

I have a need to show sensative information but I would only like it available on screen for 2 minutes, and then after it dissapears.

Since this is part of my web application, I would like the user to stay logged into the web site before and after viewing the information, but in order to view it, I would like them to re-enter their username/password.

Are there any directions I can be pointed into accomplish this task?

View 1 Replies

MVC :: Passing Sensitive Information Through HTML ActionLink?

Jan 29, 2011

I did some google searching on this, but I could not find anything useful.

Basically what I am trying to do is pass some sensetive information to an ActionResult through the click of a HTML ActionLink.

The information I need passing through is, the ProductID and the User IP Address.

So just to clarify:

1) User clicks { I like Product } link (HTML ActionLink)

2) That sends the Product ID and the IP Address of the user to the ActionResult in the Controller.

View 11 Replies

VS 2010 - Storing Sensitive Information In A Session Variable?

Dec 17, 2010

I am creating a website that allows users to login to their gameserver remotely and send / receive commands. The connection happens via an UDP socket and requires simply the IP of the gameserver, and a password.

On my website, users can add servers to their accounts, where the server IP and password are stored in a database. Then they can connect to any of their servers, which creates a new Socket object and connects to it using the IP and password of that server.

This Socket object, embedded in an object that also stores the server IP and password, is stored in a Session variable when the user connects, and is retrieved on every page. For example, there's a page where the user can view a list of the players on the server (and kick/ban them), a page with server settings, a page with messages, etc. All these pages require the Socket connection to get their information (they send a certain command and parse the response). When I need to send a command via the socket, I need to send the password of the server each time (otherwise it does not work). My question now is: how secure is this? The password of a server is sensitive information*, but I am storing it in a session variable and sending it (using the Send command of the Socket object) to the server.

i think the Session variable is stored on memory on the server, so I don't think so, but I'm really unsure about these kind of things and I'd like to be certain that my website is secure. Well, I think it will never be 100% secure but I want it to be at least not worth the effort for someone to hack the password. If it takes a lot of trouble then people wouldn't bother, but I don't want to find out that people's passwords are being thrown out on the street (so to speak) and that my website is completely insecure...

View 6 Replies

Security :: How To Perform Signing Sensitive Data In WebApp

Jan 18, 2010

How do i perform signing sensitive data in WebApp?

My algoritm:

[Code]....

The code above works in WinApp but doesn't in WebApp .

Can you fix the code above so it can run under WebApp -or- other method to protect sensitive data from modifying?

View 2 Replies

Security :: Saving Sensitive Data To Sql Server Database?

Jul 14, 2010

Im passing sensitive details from my asp.net web app to a database on a different server. I've set up encryption on my database. Should I encrypt the data in the code behind file of the web app and then pass it to my database stored procedure or pass it to the stored procedure as it is and encrypt it there?

View 4 Replies

C# - Server Control Within A Template Be Sensitive To The Data Context?

Jan 25, 2010

Let's say a control X has a template called RowTemplate.

So X's markup would be like:

<foo:X>
<RowTemplate>
<foo:Y>...</foo:Y>
</RowTemplate>
</foo:X>

My question is: How can the Y control be sensitive to the data context? I know I can use template inline tags to get access to the data context: <%# Eval("Id") %>, but I cannot pass this information to Y because template inline tags are not allowed in server controls.

So I don't know how I could use the Object's Id (Eval("Id")) in Y.

View 1 Replies

Detecting Javascript During Login Of An MVC App

Jan 24, 2011

My LogIn action originally looked like this:

return new RedirectResult(nameValueCollection["ReturnUrl"]);

But, I would like to know whether the client has JavaScript enabled before the home page loads, so I changed it to this:

return View(new LogInViewModel { ReturnUrl = nameValueCollection["ReturnUrl"] });

And send the following view instead of the instant-redirect:

@model Obr.Web.Models.LogInViewModel
@{
Layout = null;
string noJSReturnUrl = Model.ReturnUrl + (Model.ReturnUrl.Contains("?") ? "&" : "?") + "noJS=true";
}
<!doctype html>
<html>
<head>
<title>Loggin in...</title>
<meta http-equiv="REFRESH" content="1;url=@noJSReturnUrl">
<script type="text/javascript">
window.location = "@Model.ReturnUrl";
</script>
</head>
<body>
<noscript>
Loggin in...<br />
<a href="@noJSReturnUrl">Click here if you are not redirected promptly.</a>
</noscript>
</body>
</html>

The idea is that if the user does not have JavaScript enabled, they see a brief loading message, and the home page loads after a second. If JavaScript is enabled, the page reloads instantly. In the future I could even post to the server the dimensions of the viewport and such. Does this look like it would work? If the window.location command takes longer than a second to run, will it be interrupted by the meta refresh, or does it block that refresh? I am hoping the latter, so I don't need to increase the delay for those non-js people.

I figure my new way adds a little extra weight to the payload of the redirect, but it's not an extra round-trip or anything, is it? The redirect happens anyway, does it not? Update: I neglected to mention a very important point. I do not actually have control over the login screen itself, only the page it posts to. This code is part of a product that relies on an external authentication mechanism.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved