ó Not Allowed In Xml File But Allowed In .net Resource File?

Jan 11, 2011

i'm parsing a few .net resource files (.resx).In that, i have this piece of data:informaciónThis works in my .net app, but when i try to load this file in my xml document

XDocument xmlDoc = XDocument.Parse(s);

i get this error:Reference to undeclared entity 'oacute'.

View 2 Replies


Similar Messages:

DataSource Controls :: Subqueries Are Not Allowed In This Context - Only Scalar Expressions Are Allowed

Mar 22, 2010

i get the above error when i try to run this sql statement

INSERT INTO PSPS_Posts (Post, Date_Posted, user_ID, Thread_ID) VALUES (@Post, @Date_Posted, @user_ID, (SELECT Thread_ID FROM PSPS_Thread WHERE Thread_ID = (SELECT MAX(Thread_ID) FROM PSPS_Thread

View 5 Replies

SQL Server :: Subqueries Are Not Allowed In This Context. Only Scalar Expressions Are Allowed?

Jan 9, 2011

[code]...

I get the Subqueries are not allowed in this context. Only scalar expressions are allowed - i am going to run into this quite alot so I figuredI'd better see what the right way is!

View 2 Replies

C# - Circular File References Are Not Allowed?

Feb 12, 2010

When I re/build my ASP.NET website I do not receive any errors. However when I PUBLISH the site, it gives me a 'Circular file references are not allowed.' error.

I read a little on the web about this, and it provided a batch='false' option, which I tried and does nothing.

The page, has a master page, which may call on the same control twice; however, this control does not refer back to anything

View 1 Replies

Security - Restrict File Types Allowed For Upload?

Jun 16, 2010

I want to limit the allowed uploaded file types to images, pdfs, and docs. What is the recommended way to approach this?I assume checking the file extension alone is not enough, since an attacked can change the file extension as he wishes.I also thought about checking against MIME Type using PostedFile.ContentType.I still don't know if this is adding any further functionality than checking against file extensions alone, and if an attacker have and ability to change this information easily.This is basically for a course management system for students to upload assignments and teachers to download and view them.

View 2 Replies

C# - Loading Resource File In Class Library And Which Resource File To Use?

Oct 25, 2010

I have a class library and was to add a resource file to it to support both English and Spanish. Any tips as how I can do this? The language will be dictated by the user visiting the site. Would like to have to only load each resource file once and cache or set in static variable and avoid any overheads.

View 2 Replies

Web Forms :: More Than One Attribute Allowed?

Jul 19, 2010

Why in asp.net web page we have only one FORM attribute, but in other language more than one FORM attribute is allowed.

View 3 Replies

405 Method Not Allowed Error In WCF

Mar 12, 2010

I can open it up in the browser and it works, but a call from client side (using both jquery and asp.net ajax fails)

Service Contract

[OperationContract(Name = "GetTestString")]
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Json
)]
string GetTestString();

In Web.config among other bindings, I have a webHttp binding

<endpoint address="ajax" binding="webHttpBinding" contract="TestService" behaviorConfiguration="AjaxBehavior" />
EndPoint Behavior
<endpointBehaviors>
<behavior name="AjaxBehavior">
<enableWebScript/>
</behavior>
</endpointBehaviors>
</behaviors>

Svc file

<%@ ServiceHost Service="TestService" %>

Client

var serviceUrl = "http://127.0.0.1/Test.svc/ajax/";
var proxy = new ServiceProxy(serviceUrl);

View 1 Replies

Php - Jquery Method Is Not Allowed

Sep 15, 2010

How can allow this page to run on IIS server...It does not work on localhost..... it works when I open it directly... It gives the error "it is not allowed...!

The working Example..! I want this.. ""

the Erorr:

<html>
<head>
<script src="jquery.js" type="text/javascript" language="javascript"></script>
<script src="jquery.xml2json.js" type="text/javascript" language="javascript"></script>
<script>
function sayHello(msg)
{
alert(msg);
}
function dcSetRate(obj,value){
document.getElementById(obj).value = value.toFixed(4);
}
function dcSet(obj,value){
document.getElementById(obj).value = value;
}......

View 3 Replies

Web Forms :: # Is Not Allowed In Valid Url?

Mar 30, 2010

As far i think # is not allowed in valid url but i have to allow this in my application..very first step i have taken in reg expression i allowed # ...but wen user click that inspite of valid url i am getting crash

View 4 Replies

Web Forms :: Mailbox Name Not Allowed?

Feb 17, 2011

i am getting the error below while sending email in aps.net 3.5.

Mailbox name not allowed. The server response was: sorry, Authentication failed or timed out. Please do get messages first to authenticate yourself.(#4.4.3) in asp.net while sending mail

View 9 Replies

Only Two Digits Allowed After Decimal?

Jan 4, 2011

I have a textbox where the user must not be able to enter more than two digits after a decimal.How do I do this without using javascript?

View 3 Replies

How To Get Programatic Access To The Allowed Roles

Jul 7, 2010

Ultimate goal is to provide protection against programming mistakes. I want to make sure that every page in a portion of my web application has a role specified like below. Ideally I would like to programatically check all requests coming in ( think IHttpModule ) and make sure that the page being requested has a role specified.

I can't seem to find how to get programatic access to the allowed roles.

[code]....

View 2 Replies

SQL Server :: Subqueries Are Not Allowed In This Context?

Dec 6, 2010

When i am executing following query:

INSERT INTO Customer (ID, FullName, WebSite, AnnualFee,

View 8 Replies

Are Concurrent Calls To PageMethods Allowed

Mar 15, 2010

Can I call a PageMethod and then call another PageMethod before the first has finished? Are concurrent calls to PageMethods allowed?

View 1 Replies

Double Clicking Allowed In Web Apps?

Sep 16, 2010

I am taking over the code of another person. This person is allowing double clicks to occur on RadGrids (Telerik Control).. I personally hate the idea of allowing double clicks in a web application. I tihnk it is not natural.

Is there any good argument against double clicks in web apps? Or am I wrong and double clicks in web apps are good for some reason?

View 6 Replies

MVC :: Relative Virtual Path Is Not Allowed Here?

Oct 29, 2010

OK, I've seen a lot of ambiguous errors, but this was is in the top 20 or so. I have a RenderPartial that looks like this:

[Code]....

When the view loads, I get this error:

The relative virtual path '~Areas/User/Views/Shared/ProjectStats.ascx' is not allowed here. That really helps. Why isn't it allowed there? What's wrong with it? Just above it I have other PartialRender calls that work without a problem. They're created exactly the same way. Here's another:

[Code]....

This works fine. I thought maybe it was due to accessing a view from another Area, but I added a partial view to that Area's folder and it still didn't work.

View 3 Replies

Web Forms :: Circular References Not Allowed?

Jun 28, 2010

When I try to depoly my web project then it throws an exception as "Circular References not allowed" Those are two same exceptions for my template.master and Forummaster.master file. When I build my code then very rarely it throws an exception but I can not deploy my web project because for deployment everytime it throws same exceptions at the time of building web project for deployment.

View 1 Replies

How To Use An Image Or Icon Resource From Global Resource File

Jan 12, 2010

How can I use an image or icon resource from global resource file in an asp:Image control to set the ImageUrl attribute?

View 1 Replies

Localization :: How To Set One Default Resource File From Many Different Resource Files

Apr 7, 2010

In our web application we need to keep various company's settings. For eg "DiamondProdRefIDCaption","Shippingpickup","ZipCodeCaption","DefaultCountry","AllowToEditInvoice", etcThese settings are different for various companies and are placed in web.config as key-value pair.Initially, we have tried do simplify this process by adding a company_settings table in the DB so as to allow us to add companies on the fly. However, this method makes it very difficult to add a new setting

<%$Resources:DiamondProdRefIDCaption%>

View 3 Replies

Consecutive Comma Dot Single Quote Should Not Be Allowed To Key In?

Jul 19, 2010

I have a textbox and button in my child page it inherits a master page.the textbox should allow to key in only alphabets,comma,dot,space,single quote. And also consecutive comma dot single quote should not be allowed to key in. first and last character should be alphabets.

I have a javascript but it does not check for consecutive comma,dot,single quote...

View 4 Replies

C# - Reflection Permission Are Allowed In Medium Trust?

Jan 11, 2011

I want to ask that which methods/classes are allowed in Medium Trust.For example, whether these methods are allowed?

GetProperties,
GetMethods,
Activator.CreateInstance,
Assembly.Version,
AssemblyName.Namez

View 2 Replies

Web Forms :: Formview Same Id For Controls Allowed Only If Databound?

Apr 5, 2010

I've got a formview with controls in different template views and I have a query just out of curiosity.

In my edit template I've got for example:

<asp:TextBox ID="IsPrestigeTextBox" runat="server" Text='<%# Bind("IsPrestige") %>' />
<asp:CheckBox ID="IsPrestigeChkbx" runat="server" />

and then the same code exactly in my insert template:

<asp:TextBox ID="IsPrestigeTextBox" runat="server" Text='<%# Bind("IsPrestige") %>' />
<asp:CheckBox ID="IsPrestigeChkbx" runat="server" />

However, the databound items seem to be allowed to have the same ID whereas the non-databound checkboxes arent.

What's going on there?

View 6 Replies

C# - Unit Test This .Net Code - Refactoring Allowed?

Jan 7, 2011

I have been spinning my wheels now for awhile trying to figure out how I can possibly unit test the following code. At first I was going to use Moq to mock everything, but it doesn't include the ability to mock sealed classes. I know I need to abstract out the calls to the implementation (Configuration) using an interface? but I can't seem to make it all work right. The code can be altered but I would prefer to keep the methods static, unless you can present a compelling reason not to. You can add interfaces or create whatever seams are needed. Also, GetConnStringByName() can be refactored to return the relevant string instead of a ConnectionStringSettings. Thoughts?

namespace Stackoverflow.Rocks
{
/// <summary>
/// Utility class for progmattically selecting values from the Web.config file.
/// </summary>
public class WebConfigStrings
{
//private static Configuration myConfiguration = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath);
/// <summary>
/// Retrieves the desired connection string value based upon the target name.
/// </summary>
/// <param name="connectionStringName">The target connection string referenced in the Web.Config</param>
/// <returns>The value specified in the Web.Config by your connectionStringName</returns>
public static ConnectionStringSettings GetConnStringByName(string connectionStringName)
{
Configuration rootWebConfig = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath);
ConnectionStringSettings connString;
connString = rootWebConfig.ConnectionStrings.ConnectionStrings[connectionStringName];
return connString;
}
/// <summary>
/// Retrieves the desired application string value based upon the target name.
/// </summary>
/// <param name="applicationStringName">The target application string referenced in the Web.Config</param>
/// <returns>The value specified in the Web.Config by your applicationStringName</returns>
public static string GetAppStringByName(string applicationStringName)
{
string appString = "";
appString = ConfigurationManager.AppSettings[applicationStringName];
return appString;
}
}
}

View 3 Replies

Regex Pattern For Text With Length Only 9 Or 16 Should Be Allowed?

Jan 27, 2011

I need regex patter for following code.Text with length either 9 0r 16 should only be allowed.

if (txtId.Text.Length != 16 && txtId.Text.Length != 9)

{

//lblError.Text = "Please enter a valid ID";[code]....

View 5 Replies







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