Deployed Aspx Page Can't Access Methods From Same Project?

Nov 29, 2010

I'm using ASP.NET with VB, and .NET version 3.5. In the project, I've got some utility functions that I call from expressions in the aspx pages and also in code behind. This all works fine on my local machine, but when I deploy to the production server, I get this compilation error on each of those utility methods:

BC30456: 'XXX' is not a member of 'String'.

where XXX is an extension method defined on System.String. I'm baffled about this for a number of reasons:

Why is ASP.NET compiling anything at all, since I've precompiled the application and put everything in the bin directory. ASP.NET knows the functions are there because they work in code behind. It's only when used in the aspx page that I have this problem. (e.g. if I do something like this: <%= "A string to XXX-ify".XXX())%>) This method is public, which I verified with Reflector. I imported the relevant namespaces in the web.config file, and I can see that these namespaces are being imported in the call that ASP.NET makes to the compiler.

View 1 Replies

Similar Messages:

C# - How To Access A Silverlight Control's Properties And Methods From An Aspx Page

Apr 26, 2010

I'm developing a web site, and i'm using infragistics for web, but I want to use in some pages silverlight controls (Infragistics too). Is there a way to access a silverlight control's properties and methods from an aspx page?

View 3 Replies

How To Trigger Certain Methods On Different Aspx Page Using Usercontrol

Mar 3, 2011

I have got 3 aspx page and a usercontrol on each page have an email placeholder in it. What I want to acheive is when the customer click on the usercontrol email placeholder, certain method on a particular page should trigger. See below for the code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using Tangent.Breakingfree;


Also I have got another method on a different aspx page, I want to trigger that method when the client is on that page. The user control should trigger the right method depending on the page user is currently on.

View 2 Replies

Use Extension Methods Inline In An ASPX Page?

Jan 15, 2010

Is it possible to do something like this inline in an ASPX page?

<%= Me.SomeExtensionMethod() %>

I can't seem to figure out how to get this to work properly. I'm receiving an error saying that "SomeExtensionMethod" is not a member of the current Page object. I've added the necessary <%@ Import Namespace="..." %> directive at the top of my page. This Does work in code-behind.This isn't vitally important, but it would be good to know how to do in the future.

View 2 Replies

How To Call Aspx Content Page Methods From Usercontrol

Jun 14, 2010

How can I call aspx content page methods from usercontrol?

View 2 Replies

Web Forms :: How To Trigger Certain Methods On Different Aspx Page Using Usercontrol

Mar 3, 2011

I have got 3 aspx page and a usercontrol on each page have an email placeholder in it. What I want to acheive is when the customer

click on the usercontrol email placeholder, certain method on a particular page should trigger. See below for the code:


View 4 Replies

Configuration :: Project Does Not Run When Deployed?

Nov 3, 2010

I am really new her and to

In fact this is my first project and I really enjoyed it soo much

When I run the project, it worked form on my machine but when deployed on a remote server, it gives me error and I dont know what the problem is?

I have tried a number of things to no avail

The project is located at

It uses mysql and my host said they have the .net connector installed but yet .

View 4 Replies

Web Forms :: How To Access The Page Controls In Static Methods

Oct 4, 2010

How to access the page controls in Static methods.

View 2 Replies

Aspx Page Doesn't Compile When Page Is Copied From Another Project?

Feb 22, 2010

I often have an issue with compile errors when I copy over a aspx page and code behind file from another project, it seems to work when I create another page and the content manually but if I just copy the files it won't. I have checked to make sure namespaces and references are ok but still doesn't make any sense. The error I get is "Error The name 'txtUser' does not exist in the current context". I just wanted to understand why.

For e.g I copied over the following :

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Login" %>


View 4 Replies

Access The Html Button In Aspx.cs Page?if Access How

Jan 7, 2010

i have a doubt if i write html button in source code, how can i access in aspx.cs,

View 3 Replies

Configuration :: Published But .aspx.vb Files Not Deployed?

Jun 10, 2010

I published my brand new site the first time to the brand new server and when testing it I noticed that none of the .aspx.vb code behinds was deployed and I got an error that those were missing.

View 7 Replies

AJAX :: Can't Use Root Of Project In Aspx Page

Dec 12, 2010

i added a class to the root of my project and in it i have created an override for the html editor


the thing is that i can't (don't know how to) use it in my .aspx page. i tried adding a "Register Assembly..." but i didn't got it to work.

View 5 Replies

C# - How To Access Values From .aspx Page To .aspx.cs Page

Nov 19, 2010

I have code something like this.

ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Submit", "Confirm()", true);

Confirm is the JavaScript function in .aspx page. I want to catch the "true" or "False" value returned based on the Click performed on the Confirm window to my code behind(aspx.cs) page.

View 2 Replies

Web Forms :: Web Project: Allow The Designer To Use Ftp To upload A Single Aspx Page ?

Feb 22, 2010

We're migrating from the web site to the web application model. Is there a way to allow the designer to use ftp to upload a single aspx page (foo.aspx and foo.aspx.cs) without requiring the use of the VS2008 Publish feature? We're a small shop and haven't bothered using source control as it wasn't much of an issue with the web site model. If the designer uses the Publish feature my binaries will be overwritten. I know that static pages are compiled at run time so I thought this would be possible but my tests result in errors. I've clicked around for some guidance but come up empty handed.

View 2 Replies

Security :: System Is Deployed And Access To Denied

Jul 22, 2010

I'm a lowly DBA.I am supporting a web app that allows users to upload images (among other documents). The system is deployed and working and not having issues with the uploads. However, I upgraded my development box recently and since then I have been encountering an "access denied" issue. Initially I thought it was a simple security issue but now it seems it is more complex.

View 4 Replies

C# - How To Access Webservice Deployed In Remote Server

Jan 18, 2011

how to add web service which is deployed in remote server. externally i unable to access that that remote server only that service will run but we don't have Environment to add service to my application in that server. how to add that web service to my application ,not accessig externally that service URl, internally Executing that URl. How can i add that service to my application on my developer PC ?

View 2 Replies

Web Forms :: Access "y" Master Page Methods In User Control?

Mar 30, 2010

I have lot of methids in my mastre page how do i use them in my User control? I dont want to copy paste the code

View 2 Replies

Web Forms :: How To Access HTML Label Value Of Master Page On Any Other Aspx.cs Page

Nov 15, 2010

The HTML label control is on master page. And I want to access its value on other aspx.cs page. As there are many other control on the master page so i use the recursive function to access the value but NullReferenceException occurs... The code on aspx.cs page is as:


View 5 Replies

Configuration :: Access Locally Deployed Site Through Domain?

Jul 26, 2010

I have website deployed on local server

And also i have a domain name

What i want that i want to integrate my locally deployed site with domain name.

(I have live(public) IP address as well)

View 1 Replies

Configuration :: Web Service - Deployed - Access To The Path Is Denied?

Nov 3, 2010

I have created a web service SampleWS.asmx [uses authentication mode="Windows" and identity mpersonate="true"]. Works fine on my dev using VS and Personal web server. Now to move this to QA I have created a Virtual directory called intg pointed it to a physical path on the server Now I have copied the (actually tried publish to this server folder and simple copy and paste) .asmx , dll folder and .cs to this folder on server First I received firbidden access for which I have set execute permissions on IIS to scripts and executables.This fixed the initial issue. The Web service extensions has allow for both 1.1 and 2.0 on IIS Now I receive the following error ..

Access to the path

C:WINDOWSMicrosoft.NETFrameworkv1.1.4322Temporary ASP.NET Filesintgaf936b4453b023c7"

is denied .

View 1 Replies

WCF / ASMX :: Calling A Web Service On A Remote Server From A ASPX Page (website Project VS2005)?

Aug 30, 2010

I am maintaining a web site project in VS2005 and have to call a new web service on a remote server. I've done add web reference, and created the .wsdl and .discomap files in the app_webReference folder. When I try to create a object representing the web service in the code ( wsnamespace.serviceName ws = new wsnamespce.serviceName(); ) the code wouldn't compile.

The web site project is already calling other web services. When I right click on the type representing the web service and "go to definition" it takes me to a proxy class (derived from of course SoapHttpClientProtocol) in the metadata. I think this is what's missing for the new web service i'm trying to call. Have I missed any steps?

View 1 Replies

Referencing C# Classes/methods In Silverlight Project?

Aug 24, 2010

Does anyone know how to do this? I built a backend c# class in but want to access these same classes without recreating them in silverlight. Is this a possibility?

View 4 Replies

How To Access Master Page Variables From .aspx Page

Jan 8, 2010

how do access master page variables from .aspx page

View 1 Replies

C# - Access Function In Aspx Page To Master Page?

Sep 6, 2010

I have a.master and b.aspx .

i have some functions in my aspx page.

how to access that functions in a.master page.

View 4 Replies

Access Class From Within The Aspx Page

Nov 22, 2010

I am trying to do something such as:

<%= Class1.GetName %>

in my ASPX page, but my class1.vb can't work like this, I have to declare it first in the aspx page, how can I make my Class1.vb file be shared among the whole website?

View 1 Replies

Copyrights 2005-15, All rights reserved