Click here to Skip to main content
15,891,657 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCan we have only one code behind page for two aspx pages in Asp.net? Pin
Member 1370125127-Jul-18 2:22
Member 1370125127-Jul-18 2:22 
AnswerRe: Can we have only one code behind page for two aspx pages in Asp.net? Pin
dan!sh 27-Jul-18 2:52
professional dan!sh 27-Jul-18 2:52 
GeneralRe: Can we have only one code behind page for two aspx pages in Asp.net? Pin
Member 1370125129-Jul-18 22:53
Member 1370125129-Jul-18 22:53 
AnswerRe: Can we have only one code behind page for two aspx pages in Asp.net? Pin
Vincent Maverick Durano30-Jul-18 11:44
professionalVincent Maverick Durano30-Jul-18 11:44 
AnswerRe: Can we have only one code behind page for two aspx pages in Asp.net? Pin
DerekT-P31-Jul-18 5:52
professionalDerekT-P31-Jul-18 5:52 
GeneralRe: Can we have only one code behind page for two aspx pages in Asp.net? Pin
Member 137012511-Aug-18 0:21
Member 137012511-Aug-18 0:21 
GeneralRe: Can we have only one code behind page for two aspx pages in Asp.net? Pin
DerekT-P1-Aug-18 4:38
professionalDerekT-P1-Aug-18 4:38 
Question'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' Pin
Member 35932626-Jul-18 13:25
Member 35932626-Jul-18 13:25 
I spend 3 days now to fix this bug. I have in Classic ASP.NET environment (.NET version 4.0). I am trying to do 'Restful' from MVC by adding controllers folder.
I rebuilt the project and there is no issue until I load the page (http://localhost) then I have got error (NewtonSoft.Json). I have done everything according to suggestion from Internet but the issue won't go away. Thanks for any suggestion.

Here is my Global.asax:
<%@ Application Language="VB" %>
<%@ Import Namespace="System.io" %>
<%@ Import Namespace="System.Web.Configuration" %>
<%@ Import Namespace="System.Web.Http" %>
<%@ Import Namespace="System.Web.Routing" %>
<%@ Import Namespace="System.ServiceModel.Activation" %>
<%@ Import Namespace="RBWeb" %>

<script runat="server">

    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
        'RouteTable.Routes.Add(New ServiceRoute("letter", New WebServiceHostFactory(), GetType(LetterService)))
        RBWebLibrary.Register(GlobalConfiguration.Configuration)

    End Sub


<pre><pre>

My Web.Config
<runtime xmlns="">
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="11.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
</runtime>

------------------------------------------
and here is my RBWebLibrary.Register:
Public Shared Sub Register(ByVal config As HttpConfiguration)
            config.Routes.MapHttpRoute(name:="DefaultApi", routeTemplate:="api/{controller}/{id}", defaults:=New With {.id = RouteParameter.Optional})
End Sub 


and here is the packages.config
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net452" />

AnswerRe: 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' Pin
Richard Deeming27-Jul-18 0:48
mveRichard Deeming27-Jul-18 0:48 
AnswerRe: 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' Pin
jkirkerx30-Jul-18 13:23
professionaljkirkerx30-Jul-18 13:23 
Questionasp:CalendarExtender position problem Pin
harish kashyap0125-Jul-18 19:23
harish kashyap0125-Jul-18 19:23 
QuestionAn exception of type 'System.ArgumentNullException' occurred in System.Web.Mvc.dll but was not handled in user code Pin
indian14325-Jul-18 14:21
indian14325-Jul-18 14:21 
AnswerRe: An exception of type 'System.ArgumentNullException' occurred in System.Web.Mvc.dll but was not handled in user code Pin
Richard Deeming26-Jul-18 1:45
mveRichard Deeming26-Jul-18 1:45 
QuestionWhere should I post my Angular 6 questions? Pin
jkirkerx23-Jul-18 7:01
professionaljkirkerx23-Jul-18 7:01 
AnswerRe: Where should I post my Angular 6 questions? Pin
Vincent Maverick Durano30-Jul-18 11:53
professionalVincent Maverick Durano30-Jul-18 11:53 
GeneralRe: Where should I post my Angular 6 questions? Pin
jkirkerx30-Jul-18 13:18
professionaljkirkerx30-Jul-18 13:18 
GeneralRe: Where should I post my Angular 6 questions? Pin
Vincent Maverick Durano31-Jul-18 4:01
professionalVincent Maverick Durano31-Jul-18 4:01 
QuestionUnable to send data from view to controller in Asp.Net MVC Pin
harish kashyap0114-Jul-18 8:05
harish kashyap0114-Jul-18 8:05 
AnswerRe: Unable to send data from view to controller in Asp.Net MVC Pin
Bryian Tan14-Jul-18 8:34
professionalBryian Tan14-Jul-18 8:34 
Question.Net Core 2.1 and MVC, playing around with Angular 6 Pin
jkirkerx13-Jul-18 12:21
professionaljkirkerx13-Jul-18 12:21 
AnswerRe: .Net Core 2.1 and MVC, playing around with Angular 6 Pin
Nathan Minier16-Jul-18 1:35
professionalNathan Minier16-Jul-18 1:35 
GeneralRe: .Net Core 2.1 and MVC, playing around with Angular 6 Pin
jkirkerx16-Jul-18 6:43
professionaljkirkerx16-Jul-18 6:43 
AnswerRe: .Net Core 2.1 and Angular 6, styles and fonts Pin
jkirkerx17-Jul-18 12:46
professionaljkirkerx17-Jul-18 12:46 
GeneralRe: .Net Core 2.1 and Angular 6, styles and fonts Pin
jkirkerx17-Jul-18 13:44
professionaljkirkerx17-Jul-18 13:44 
QuestionConditionally Loading Partial View in a Page using Javascript Pin
indian14313-Jul-18 8:10
indian14313-Jul-18 8:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.