I am trying to return an Entity Framework 4 object with children to an jQuery JSON AJAX function but I get a circular reference error - in short my method looks like this
[WebMethod]
public static JSONObject Get()
{
WebHelper.JSONObject lJSONObject = new WebHelper.JSONObject();
want to create a list representing a list of valid locations on a grid. Items can only be stored in these valid locations and I want to locate the "next available" valid location. If I do this with a traditional list I have to deal with the end of list conditions. A circular list collection would make this a bit easier. Is there such a collection in .net?
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
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.
I am trying to create a set of WCF web services for an existing website that uses web site instead of a web application project. I would like to create a DLL that I drop into the Bin folder instead of writing all my code inside the App_Code directory. Ideally, I want to create a project and reference it from the web site, but I am running into a difficult situation.
The DLL will need to reference configuration and other DLLs located inside the bin folder of the website causing a circular reference. How do I get around this issue?
Service layer references DAL for Logger class to get its email credentials to use while sending email for critical log items.
I want to use this logger inside the DAL since there is stuff that needs to be logged there also - but with my current architecture I cannot.
I see this could somewhat be handled via IOC but my concern with that is if that way I will be addressing the root of the problem, or hiding it using another layer of abstraction.
Is there any way i can create circular pie chart instead of regular pie or a dougnut pie inside a doughnut pie main intention of having it is,i would like to have 5 diff circles in a pie(assuming 5 circular layers with 5 diff colors,with green as outer circle beginning is life and ending with red as death),i would like to make a chart such that..i can display the particular technology is in particular stage...i need to point in the report.
is that possible with SSRS or anyway...asp.net reports or any other 3rd party controls...
I have to show progress graphs exactly in following way where percentage would be in center of circular graph.How can i do this using javascript/jQuery?Can it be done using Google Chart?
I want to display a circular progress indicator using jquery in asp.net when textbox textchange event occurs.when user enters some value in a textbox and textchange event occurs or when user loses the focus on that textbox,system checks values in databases.I want to give user a progress indicator type when query is in progress, how can i accomplish with jquery. i am pasting a little code here.
$("#Txturl").blur(function() { $.ajax({ type: "POST", url: "Default.aspx/Getvalue", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", async: true, success: function(msg) { ///to to do here? i ve no idea; } }); return false; });
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.
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:
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...
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?
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.
Using VS2008, I noticed that in Class Project I only have a choice of adding "service reference" where as in Web Application project, I have two choices "web reference" and "service reference".
I have used web reference. How is "service reference" different from web ref? and what's the major purpose of service ref?
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?
I'm helping out a colleague on this one so if I'm missing some details that's why.We have an asp.net 3.5 web application calling a WCF service. Originally the app used a "Web Reference" to register the service however after having some trouble and burning an incident with Microsoft their solution was to replace the "Web Reference" with a "Service Reference" to the WCF service.This is great except the problem is that when we create a Service Reference, the method signatures are different than they were when a Web Reference was used.From what I've read this may be expected, however in our case this would mean some significant changes to the application and of course it was due yesterday...so......I'm wondering two things:Is it normal/expected that method signatures will change based on the reference type?Is there a way to create the Service Reference that will generate method signatures identical to the original Web Reference?
I have an ASP.NET project under source control (Subversion). For various reasons, I don't want to add the Bin directory or its contents to source control, so I have it svn:ignored. DLLs are loaded into here during a Visual Studio build, and I can start with a clean directory and/or delete all the contents of this directory and still have a successful build.
I'm creating a DLL with a reference to web services (I don't have the choice to do so) but I have to add web service references to the project that uses the DLL for it to work. Example, I have the DLL called API.DLL that calls a web service called WebService.svc that I want to use in a project called WinForm. First, I have to add a "Service Reference" to WebService.svc in API.DLL. Then, I add a reference API.DLL to WinForm but it doesn't work unless I also add a service reference to WebService.svc in WinForm.
in an action, how do I get a reference to the RouteCollection object? I am using the QueryString to mantain some state variables and notice when I RedirectToAction the querystring in the redirected to action is null. So I would like to use RouteCollection.GetUrl and HttpContext.Response.Redirect to create a customized version of RedirectToAction.
I've a an exe application developed using C. I want to add this as a reference to my asp.net application. But i'm getting an error which says like it's not an assembly or COM component.
I want my application to interact with the exe(which should be running) which will again respond with some appropriate message. Can we add a exe reference to a project? or is there any other way of doing without adding a reference?