C# - Access WCF Project In Silverlight?
Mar 21, 2011
I've ran trough many websites and tried soo many things that I've finally decided to try it creating a question of my own. This is the error that I get when I try to access my WCF project from my Silverlight 4 app. anyone have any idea on how to fix this error? PS. If anyone needs any more information let me know.
An error occurred while trying to make a request to [URL] This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. see the inner exception for more details.
View 1 Replies
Similar Messages:
May 19, 2010
I have a silverlight application project that I need to add to an ASP.NET Project. I know it can be done because you can choose to have both when you first create a silverlight project, i'm just not sure how you would do it after the fact.
View 2 Replies
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
Jul 8, 2010
I have two projects: A web application project, that has a webpage that hosts a Silverlight application, as well as a web service A Silverlight application project, the one hosted in the above web application
If I debug the Silverlight application, it wants to run this with a generated web page, which will of course not start my web application, and web service calls fails due to some cross-site security model. So even if I have the web application running, the Silverlight application won't use it.
If I debug the Web application (that is, set it as a start project and hit Debug), then the Silverlight application is apparently correctly hosted, but I can't debug it. Any breakpoints in it shows up as those hollow circles.
So what am I doing wrong? How should I configure my projects so that I can start the web application, host my Silverlight application, and debug it?
I'm betting it is one of those "dough" moments when someone tells me, but I can't figure it out.
This is Visual Studio 2008, .NET 3.5 and Silverlight 3.
View 1 Replies
Aug 24, 2010
Does anyone know how to do this? I built a backend c# class in asp.net but want to access these same classes without recreating them in silverlight. Is this a possibility?
View 4 Replies
Mar 19, 2010
I would like to create a dot net page and combine in it some silverlight parts / elements...
how to do that?
View 4 Replies
Jul 17, 2010
there is already an asp.net web site developed,now due to certain requirements i want to use silverlight enabled pages in my project(for its flexible designing purpose).
View 2 Replies
May 5, 2010
I work in a suite of ASP.NET applications that have several different "modules". The applications all share a main menu, so they all link to one-another. The modules are the high-level areas of the application. So, for example, it might be Payments, Orders, Customers, Products, etc. And Payments and Orders are in one app and Products and Customers are in another. Some of these menu links are "deep links", for example it might be a link to a particular page within the Customers module, such as Create New Customer.
We are about to start a project that will add several more modules to this suite, probably as a new .NET application. I'm thinking about doing these new modules in Silverlight (for various reasons that are not material to the question). If I were to do that, I need to make the menu look the same as the menu in ASP.NET, as the users still need to feel like they are inside one "application".
How should I organize the Silverlight project(s) so that I can "deep link" from ASP.NET pages into particular modules in the Silverlight app? What is even the best idea for creating these different Silverlight "modules"? If I had something that would've been a page in ASP.NET (for example - Create Customer), should each one of those be a separate Silverlight app? Or should it be a separate User Control? Or something else? Should I reuse our shared ASP.NET menu, and deep link to different Silverlight "modules" even within the new application? Or should I reimplement the menu in Silverlight for navigation within the app? Are there menu controls for Silverlight that look similar to ASP.NET menus (with flyout submenus in this case)? Could I maybe even share a SiteMap XML file between them?
View 1 Replies
Jul 25, 2010
I have an MVC 2 web application which uses models auto-generated by LINQ. When I add a Silverlight project to my solution, generating a new strongly-typed View fails with the message:
Compiling transformation: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?). I understand this is most likely because Silverlight does not access the System.Data namespace (at least, I can't add the reference to my Silverlight app). However, it's not really important - I'm just trying to generate an .aspx View at this stage, not a Silverlight View.
Is there any way to get this template generation to work, or do I have to create my Silverlight project outside the solution and build it separately? I was kind of hoping to take advtage of WCF RIA and some of the other goodies one gets from including the Silverlight app within the main solution... anybody got a fix?
View 1 Replies
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
Sep 4, 2010
I just started learning silverlight by creating a silverlight application in Visual Web Developer 2008. I have a public property defined in the user control. How do I access this property value in the aspx codebehind page?
View 2 Replies
May 10, 2010
i have an project with name called(dbservice layer) which is in path: d:webserviceDBService. here i have an webservice which connects to DB and returns an object of an class.
once i added an reference here i get an url:http://localhost:2371/Jobs.svc
now i have another project name (UILayer) whic is in path: E:SchoolUILayer i added an service reference here with url as http://localhost:2371/Jobs.svc but i get an messgae telling service is unable why is that happening.
if both my webserivce layer and ui layer are in same project. then i able to use the webserive in the ui layer. and get the required output
so i wanted to know is there any way we can acesss the webserive from one project to another project
View 1 Replies
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
Mar 17, 2011
i have created asp.net project and added it in vss but when i tried to access from another pc is not allow
me to run it and gives error like Failed to start monitoring changes to\192.168.1.139WebsiteLibraryLibrary ManagmentApp_Code' because the network BIOS command limit has been reached. For more information on this error, please refer to Microsoft knowledge base article 810886. Hosting on a UNC share is not supported for the Windows XP Platform.
View 3 Replies
Feb 4, 2010
I have 2 projects in my solution.
MVC Web application
Class library
The MVC Web application references the class library.
The class library contains a class that extends the default ASP.Net Controller.
I'm putting a variable in session in the application's Global.asax.
protected void Session_Start(object sender, EventArgs args)
{
HttpContext.Current.Session["DomainName"] = Request.Url.Host;
}
In the class library I'm trying to get the value from the HttpContext.Session, but HttpContext.Session keeps coming up null.
[code]...
HttpContext.Current.Session doesn't seem to be an option in controllers.
View 3 Replies
Apr 2, 2010
I am using VB.Net/ASP.Net 2008 and I have a solution with 3 projects:
1. DAL
2. BLL
3. MainWebProject
anyways because it's a Web Application Project (not a web project) I had to set it up so I could access the Profile using Imports System.Web.Profile in the MainWebProj but I can only access the profile in that project.
anyways I need to access the Profile in the DAL also, and I figure since I can import the Profile in my MainWebProj there must be a way to also import that into the sister project, DAL.
My Issue: I can import a class in Project A but not Project B. Is there import syntax so I can also import the namespace in Proj B?
View 1 Replies
Jan 29, 2010
I have a created a solution using visual studio 2008 and added a new project namely "test".
In this project i added a folder namely "code" and in this folder i added a class file "class1.vb".
But i am facinng problem when i am going to create object of that class1.vb in default.aspx.vb page
i want to access my class1.vb methods.
View 4 Replies
Sep 26, 2010
I searched on Google and I can't find any, do you know some ?
View 1 Replies
Mar 29, 2011
I have 2 folders - 1. Data 2. Presentation which is following the 3-tier model of designing programs.
I have a slight problem. I am trying to access a class which is found in the Data folder from a web form found in the Presentation folder. How can I do this? For some odd reason my project does not have namespaces.
View 2 Replies
Aug 18, 2010
I have two projects (Project A and Project B), these projects are hosted in different locations and on different servers. Project B want to access the files of Project A. which technique is required to fulfill my requirements.
View 1 Replies
Jan 8, 2010
i'm trying an example by trying to creating two projects in one solution to seperate logic and UI. so let's say test.logic and test.ui
in test.ui i have a page called lets say contact me. in the code behind for this page i want to call a method that belongs in a class called processData in test.logic
in contact me cs i tried something like:
namespace test.ui
{
using test.logic
//code here
}
but that does not work as class/method not shown in intellisense.
View 5 Replies
Dec 29, 2010
I want to implement resource based access in asp.net mvc project.For example i have create employee, edit, delete employee and view employeei want to implement a funcitonality where administrator can assign resources to user for example user with moderator can only view employees and user with administrative priviledge can create, edit, delete and view employees list.How can i implement this functionality?Any articles on internet on this topic?
View 4 Replies
Jul 17, 2010
I want to authorize the asp.net account to access some folders in my project.
However, I get this error::
System.UnauthorizedAccessException: Access to the path 'D:ProgramingPartFromYamnWebExerciseWebExerciseAccordionImgs' is denied.
I am using win 7 so what is the name of the asp.net account that I should use?
View 3 Replies
Oct 29, 2010
I am implementing a custom membership and role providers where I need to store all the role/membership information in the user's session.
I am implementing these custom providers inside a class library project (different from the website project) and need to access the session in them. The idea is to store the role/membership related information in the session after retrieving them for the first time from the database.
When I try to access the Session using System.Web.HttpContext.Current.Session
I get this as a null object (Object reference not set to an instance of an object.
Why is the session turning out to be null?
View 1 Replies
Apr 12, 2010
I am trying to deploy my C# based ASP.Net 3.5 webapp
The hosting service provider said "Access 2003 (.mdb) file has to be put in 'access_db' folder in root folder"
I am currently using
OleDbConnection myConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath("~/access_db/filename.mdb"));
The folder structure is like
ParentFolder/access_db/filename.mdb
ParentFolder/ProjectFolder/<Project files> (App_Data, bin, *.aspx, web.config)
1) I am using a GridView on another page that doesn't allow to connect to a database outside the project folder. What should I do?
2) How do I modify the programmatic connection string ( shown above) ?
View 11 Replies