Web Forms :: VS 2010 And Silverlight - Add Web Reference?

Apr 14, 2010

Either I am blind with excitement or something is missing from VS2010. I have created a Silverlight 3 project and simply want to add a web reference (not service reference) to the project. I cannot see the 'Add Web Reference' anywhere.

I added it to the toolbar and it was disabled. I saw somewhere that I might need to change the target framework version but I cant see where to do that in the project properties either.

View 1 Replies


Similar Messages:

Silverlight Web.Config Setting For Web Service Reference URL?

Nov 12, 2010

I have a Silverlight control that is hosted within an ASP.NET application. The Silverlight control has a web service reference. The URL of this service is going to vary when we install the application for our customers. I need a way to be able to change this web service reference URL from within the web.config of the ASP.NET application. How can I do this?

View 2 Replies

VS 2010 Trying To Incorporate Silverlight Into Project

Sep 7, 2010

I have been working with ASP.net for a while now and was very familiar with how the page lifecycle worked. I am now trying to incorporate Silverlight into my ASP.net project and I am a little confused on how it works with the ASP page lifecycle.

For example, with Silverlight, I understand you need to access the server using the web service. I am able to populate a Silverlight datagrid by calling a stored proc through the web service in the loaded event. My problem is the DataGrid does not populate until ALL the code in the loaded event has executed. As you can see below, I want to do a simple calculation after I populate the DataGrid. I need to populate the DataGrid first and then do the calculation, but the calculation is done before the grid populates.

What I need to happen:

When I call 'tpService.getStepsAsync()', I need it to go to the web service to grab the data and then populate the DataGrid. Then I need 'a = 2 + 2' to execute. How can I get this to occur?

[code]....

View 5 Replies

DataSource Controls :: Foreign Key Reference Not Updating With ADO.NET Entity Framework Silverlight/Data Service

Apr 8, 2010

I'm trying to insert a new EF object containing a reference to a related table via foreign key, and cannot get the reference stored in the new object. I have two tables in a SQL Server 2008 Database:

Component Templates
PartGroups

with a Foreign Key linking them thus: ComponentTemplates:ID [0..1<->*] PartGroups:ComponentTemplateID

I have imported these tables into a .NET web application project .edmx file (using a new ADO.NET Entity Data Model), and then created a Data Service which I then reference in a Silverlight 3.0 project. The objects are available as expected in the data context called by my Silverlight app and load correctly. Now, when I try to save a reference of ComponentTemplate into a newly created PartGroup, the PartGroup object is created in the database, but the value of ComponentTemplateID in the newly created table record is NULL.

[Code]....

(Note that _ctCtrl.ComponentTemplate is a confirmed non-NULL object reference to the parent object on which PartGroup is a child)

View 2 Replies

VS 2010 - Reading Local File With Silverlight?

Mar 29, 2011

it may not have to do with silverlight as such, but a "security" issue. I appologize if that was wrong.

I´m having a go at silverlight...

I want to display large amount of data in good looking charts. Ideally, I would use a web service. However none of the tutorials I´ve watched works. There´s always some component or class missing.

So I figured I´d do it the "ugly" way, creating a xml file from a dataset, and then reading it in the silverlight app.

Now when debugging, I use a local file, which is apparently not permitted

But there must be a way around it right?

View 2 Replies

C# - Visual Studio 2010's Silverlight Support ArrayList?

Nov 15, 2010

Does Visual Studio 2010's Silverlight support ArrayList? If yes then how to use it, if not then why?

How to use ArrayList in Silverlight?

View 1 Replies

How To Work Out What Visual Studio 2010 Asp/silverlight Project Using .net Framework 3.5 Dependancies Are Missing

Jul 29, 2010

I have a Silverlight site hosted in an asp page, it has been developed using vs2010 using .net 3.5 framework and silverlight 4. It all works on my dev box. However when I publish the site and get it deployed I get the error:

Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

I have checked that the ISS asp setting are using 2.0.50727, and that all my references are using that runtime also.

I am not sure what to do to work out what the missing dependencies are at this point (I don't have access to the deployment box, I will have to go and sit with a system admin).

View 2 Replies

C# - Why Does Silverlight Reference To Wcf Service Blow Up When Add Method To The Wcf Service That Returns Generic List

Aug 17, 2010

I have built a WCF Service that is being consumed by a Silverlight app. At first I created one method that was very simple:

public String SfTest()
{
return "SF Test";
}

No poblem. My silverlight app references my service and displays "SF Test" in a textbox. Now I add a method to my wcf service like this:

public List<String> GetTest()
{
List<String> list = new List<string>();
String a = "a";
list.Add(a);
String b = "b";
list.Add(b);
return list;
}

I update the reference to the service in my Silverlight app and the using statement in my xaml cs page throws an error like the service doesn't even exist although it is there. I am assuming the problem has to do with datatypes or serialization or something like that but it is driving me up the wall. Why can't I consume a simple generic list in my Silverlight app through the WCF service.

View 1 Replies

VS 2010 - Adding Reference To Web Service

Feb 2, 2012

I have a number of .Net web sites built in VS2010 using Framework 4.0that reference a web service to send emails.

My most recent site I created as a web application as opposed to a web site. In the Solution Explorer you can add a 'Service Reference' and, if you click the Advanced button you can then add a reference to a web service.

I did that and now the (web application) site won't build - it says it cannot load the Ajax dll. If I remove the reference to the web service, the site builds okay - if I add the reference back in, the site will not build.

Do I need to abandon the idea of using a 'Web Application' and turn it into a 'Web Site'?

View 9 Replies

WCF / ASMX :: Add A Web Reference To A .Net 1.1 Site From Visual Studio 2010?

Dec 13, 2010

I am facing a problem reated to web services. A customer is running his website on an old server running .Net Framework version 1.1. We would like from this site to call a Web Service, how can I do that. I have Visual Studio 2010 intalled on my machine and when I use the option "Add Web Reference" the generated files/folders seem to not be compatible.

View 1 Replies

Visual Studio :: Cannot Add Assembly Reference And Using .dll File From 2008 And 2010

Oct 19, 2010

tell me the way to solved my problem to looking for a long time.

My System Info:

OS: Windows 7 - Ultimate - 64bit

VS: Visual Studio 2008 - Professional (and problem with my VS2010 installed)

Problem:

I have a small project and build it to library .dll file with some function util.

From an other website (with diffirence solution). I added reference the .dll before to website.

In website, I declaration to using the function in library (dll file before). But I found error:

Error 1 Type 'LibraryName' is not defined.

And in VS2010 the problem is same.

But, run website on an other computer, it work normally.

View 2 Replies

VS 2010 - Object Reference Not Set To Instance Of Object Error On Linkbutton Click

Nov 8, 2012

I have 2 pages in my project (that are causing the problems). My default page has a FormView that for some reason will not let me access page events, such as buttons for instance, in code behind. They show up fine on page but are not visible in the page events drop down in code behind. We are using a work around for that.

The main issue now is that on my ViewTaxes.aspx page I need to get the values of some of the text boxes from the default page by Control Number, i.e. whatever record is being viewed on default page when you click the ViewTaxes link button, much more detailed information about that particular record is displayed on ViewTaxes. If on ViewTaxes I use a SELECT * statement I can access the ViewTaxes page when I click the button. We, of course, need to filter the data displayed by ControlNumber. When I add a WHERE clause to the DS on ViewTaxes page and click linkbutton on the default page I get an Object Reference error. This error seems to have something to do with a group of textboxes that are displayed via Session in codebehind. Values from default page being displayed in one section of ViewTaxes page. The error when thrown always points to Session("Owner1") = txtCust1.Text. If that code is removed then error will go to next Session variable, an so on.

I should also point out that both pages worked fine, no problems at all, using a test MySql table. We recently migrated the actual table that will be used from an Access database and replaced the test table. Can't find any spelling errors or anything of that nature. There are some Null fields in this database but it is set to allow Nulls.

View 7 Replies

VS 2010 Object Reference Not Set To An Instance Of An Object?

Mar 22, 2010

Line 26 was red so I assume that is where the error is.

Quote>Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: Line 24: myConnection = New SqlConnection("Data Source=MAINSERVSQLEXPRESS;Initial Catalog=Weblist;Persist Security Info=True;User ID=*****;Password=********")
[code].....

This code worked fine in vs2008 however I was using a sql database file on the local host. I wanted to move the db to SQL server so I really only changed my connection string which seams to work fine when populating my gridview.

Code:Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click

Dim myConnection As SqlConnection
Dim myCommand As SqlCommand
Dim ra As Integer
[code].....

View 3 Replies

VS 2010 - Object Reference Not Set To Instance Of Object

May 27, 2012

I'm creating a simple script to write news to a text file and then read from the file in the main page to show the news.

I am however getting the following error:

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

My code is the following:

Dim newsid() As String
Dim title() As String
Dim news() As String
Dim author() As String
Dim srdData As System.IO.StreamReader

[Code] .....

View 3 Replies

Web Forms :: Object Reference Not Set To An Instance Of An Object Error When Remove Reference To Site Master Page

Sep 30, 2010

in my default.aspx page i have a dropdown List and a textbox with a submit button below that there are 2 listbox... and the dropdown list holds the names of the listbox

my logic here is to select an item from the dropdown list and put some text in the text box and submit the form which will add an item to the listbox selected.. but when i do this i get an error saying Object reference not set to an instance of an object. i tried to figure out the problem and found that when i remove the reference to the Site Master Page it works fine and when i undo and apply my reference back to the Site Master Page i get the same error.

[Code]....

View 2 Replies

WCF / ASMX :: Call HTTPS Web Reference Through Another Web Reference - An Unhandled Exception Of Type Error?

Aug 6, 2010

I am trying to call web reference "A" in an application.

The web reference "A" will then call a function in another web reference "B" through HTTPS connection (require certificate).

Then I keep getting the following error:

An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll

View 3 Replies

Web Forms :: Gridview, Paging And Object Reference Not Set; Error - Object Reference Not Set

Jan 21, 2010

I am using grid view as mentioned below, it is giving me error "object reference not set", but if comment allowpaging and pagesize lines, it works. let me know whats wrong I am doing?

[Code]....

[Code]....

View 2 Replies

Visual Studio - Why Does Website Reference Assembly From GAC, When Adding Local Reference

Jan 7, 2010

When you use ASP.NET web site (instead of web application model) and add reference to an assembly from local folder, Visual Studio, it seems, understands that this local assembly is also in GAC and so does NOT copy this assembly to bin folder (as it does with non-GAC assemblies), but simply adds new record in web.config file.

Why such a behaviour? Is it possible to force copy to bin folder (I need this since .dll is not on target environment)? I can add assembly to bin folder as file and it will work, but in this case bin folder contents will be in source control, which is not good.

View 3 Replies

MVC :: Reference To A Non-shared Member Requires An Object Reference In Code Generated?

Oct 4, 2010

I am working on converting a project from C# to VB and am facing this weird issue. 1 page cannot compile and I get the reference error, but the weird thing is that the compiler shows the error as coming from ASP.NET generated code. Visual Studio shows me that error is coming from my ASPX page. I cannot seem to figure out why or where this error is occuring. Also if I take the inherits attribute out I don't get the compilation error. The code in aspx page is below:

[Code]....

View 18 Replies

DataSource Controls :: Reference To A Non-shared Member Requires An Object Reference

Apr 22, 2010

I am using VS2005, and a newbie at table adapters, DAL & BLL. I have a single dataset (in DAL) and 2 classes (in BLL) named Class1.vb and Class2.vb.

When I try to call a function from Class1 within Class2 I get the error "Reference to a non-shared member requires an object reference".

Here is a sketch of my code structure:

[Code]....

View 3 Replies

VS2008 Update Web Reference Creates Naming Conflicts In Reference.cs?

Jan 12, 2010

I have a Web service which, when updated on one computer with VS2008 works perfectly fine, but on another computer does not. The critical difference is the contents of the auto-generated Reference.cs.

In the correctly functioning environment, the methods have fully qualified class names, refering to classes in a class library. However, in the problem environment, the class names are unqualified and partial classes are declared near the end of the file. E.g.

[code]....

The code is under source control. Checking out to the working environment works straight away, checking out to the problem environment will only work if the reference.cs is manually edited to be like the working environments. Transferring the project manually from problem environment to the working one only requires an "Update Web Reference" to be performed to allow compilation. Both Reference.cs files claim to be auto-generated by the same tool version. The settings from the good environment have been exported to the other. No success so far...

View 1 Replies

State Management :: Error Like: Object Reference Not Set To An Instance Of Reference?

Aug 25, 2010

I have a url like this:

http://www.somepage.com/main.aspx. In this page, when I click on a link it takes me to a page
http://www.somepage.com/cental.aspx?cid=200. So in the cental.aspx.cs page I did the following in the page load:

if(request.querystring["comp"].tostring() != null)
{
//do some thing [code].....

So I got an error like: object reference not set to an instance of reference.My problem is, I am using the same page. So when I go from some page, I will have "comp". but other times not. So when there is no "comp", how do I handle it in request.querystring?

View 3 Replies

Reference To A Non-shared Member Requires An Object Reference?

Oct 8, 2010

I do not receive this error when I open my website application in vs 2005. When I open in vs 2008, I get this error. What gives?

These lines are underlined in blue:

[Code]....

Businesslogic area is imported into each of 3 pages with this line.

View 9 Replies

C# - Migrating Silverlight MVVM To .NET Web Forms

Dec 17, 2010

We have application have been written in Silverlight using MVVM pattern. We need to move some pages into ASP.NET.

View 1 Replies

Web Forms :: How To Do This Whitout Silverlight Or Flash

Feb 18, 2011

how can i do something like this without silverlight? (i dont want the people need to install it, its a web page of sales)

Comboboxes or dropdownlist like this:

and something like this:

how can i do this kind of things? i dont want to sacrifice design.

what technologies can i use.

View 4 Replies







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