Cfg.xml Doesn't Include Any Information On Any Kind Of Proxy
Jul 25, 2010
In all the samples I've seen on how to set up nhibernate, the cfg.xml doesn't include any information on any kind of proxy, but when I step through to tutorials, I get errors saying a proxy hasn't been configured.
Whut?
Current hibernate.cfg.xml
XML Code:
<?xml version="1.0" encoding="utf-8" ?><hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory> <property name="connection.connection_string">Data Source=DREWSQLEXPRESS;Initial Catalog=Venue;Integrated Security=True;Pooling=False</property> <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property> <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> <property name="show_sql">true</property> </session-factory></hibernate-configuration>
View 3 Replies
Similar Messages:
Feb 16, 2010
I need to generate a page which will include text information at the top followed by a summary list of items like such:
[Code]....
What sort of control can I use for this? Gridview, placeholder, etc.? One thing, though. This page will be a report, so it will need to be printed out. So it needs to be printer friendly.
View 6 Replies
Jan 26, 2011
When I publish my website it includes all of the directories except one titled PDFs. Can someone tell me why this happens and how to fix it?
Using:
Windows 7 (64)
Visual Studio Professional 2010
Publishing method: File System
View 1 Replies
Jul 22, 2010
I am using ASP.NET MVC 2 & C#. I want to include/embed an html page (raw text & styling; no forms) in one of my views as is without my own css styling (read: The site.css styles for the ASP.NET MVC 2 application itself) affecting it. I can access the page statically and open it in a new window and it retains it's styling; however, if I do:
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
<!--#include virtual="~StaticInstructions.htm" -->
</asp:Content>
The styling from the html & the site.css in the web application seem to get merged. I've added the following ignore route entries as well: routes.IgnoreRoute("{resource}.html/{*pathInfo}"); I also tried making a partial view control with the raw html in it and rendering that here. That gives the exact same results as this.
View 3 Replies
Jan 27, 2010
We're trying to write an error tracking solution for our sites and ran into something interesting. Sometimes the error exception includes the actual file and line number that the error occurred on and other times it doesn't. Is there a setting somewhere that we need to change to enable the file and line number to be returned? The two situations are each on a different server. Do we need to change something on the server?
Examples, with error file and line number:
System.IndexOutOfRangeException: Intro at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) at System.Data.SqlClient.SqlDataReader.get_Item(String name) at AccountUser.get_PracticeInfo(String sUserName) in C:xxxxxxxxxxxxeta.xxxxxxx.comAccountUser.vb:line 106
Without line number:
System.NullReferenceException: Object reference not set to an instance of an object. at Dealers_Toolbox_UserEdit.LoadRoles()
View 2 Replies
May 20, 2013
I have just started with ASP.NET.
I like the idea of using Include files so that I can create various versions of individual parts of a site and decide in code which to display. I used:
<%Response.WriteFile("contentcontent.aspx")%>
to include a content.aspx file within my default.aspx page.
I would like to include a Left.aspx, Main.aspx and Right.aspx file inside the content.aspx file. I tried using the reponse.writefile function but noticed when I debug the website that the text "reponse.writefile..." displays instead of the code contained within the referenced file(s).
Can this not be done?
View 6 Replies
Jan 5, 2010
I want to learn WPF but do not know what kind of application for WPF. Is it Web application or Windows application?
View 3 Replies
Feb 7, 2010
is it possible to create kind of widgets that are pluggable in ASP.NET MVC? I'd like to give my users the option to upload and attach a widget that I provide (ie. zip format). Recently I thought about deploying Areas in different project assemblies. Is it still possible with MVC RC2 (later RTM) and is there an option to dynamically attach that areas (say from a admin panel)?
Second question, how would you guys create a dynamic layout where admins could select widgets to display, arrange them, disable, move them etc.? I mean a flexible layout that can be changed via the admin panel without having to touch the code. Here I thought about defining and storing layout widgets paths in a db. Later I could associate these widgets with routes (in db). For each request (controller, action) I would fetch the layout among with associated widgets and output them recursively. Probably I could user RenderAction and PartialViews for that.s my direction correct or should I focus on some other technique?
View 3 Replies
Jan 18, 2010
I want to alert a user of a new message using some kind of USB device (e.g. a flashing light). Is it possible to control a USB device from ASP.NET or Silverlight?
View 3 Replies
Jan 10, 2011
I have limitations to host Windows Services in my web hosting provider. But i need run small task frequently.
Do we have any other framework/api which provides similar infrastructure like "Windows Services" from ASP.NET?
View 4 Replies
Mar 15, 2011
I want to use the checkbox in my project to select different kind of qualification(Graduate,Postgraduate,Diploma,etc) how i do this
View 2 Replies
Sep 3, 2010
I have two user controls attached to my Master page. (vb.net)
These user controls display ads, and the pnly difference between them is the width of the ads they should diplay.
Is there some way in which I can just register one user control, but use it twice, and then pass different integers to them?
In other words, instead of having this:
@
Register
Src="Ads240.ascx"
TagName="Ads240"
TagPrefix="uc240" %>
[Code]....
but kind of send different values to them (like "Usercontrolparameter=120")
I have looking at properties and the like, but I don't know if they can let me reuse the user control file with different values.
View 3 Replies
Nov 23, 2010
I got a new task for different kind gridview. I don't know how to create this type gridview?. If anyone gridview masters
View 2 Replies
Jan 4, 2011
to find out online training or any kind of videos for WCF.
View 2 Replies
Jun 1, 2010
the more i read about pattern the more i get confused!
In particular i'm trying to get the relationship between Registry and Repository.
Is it correct to say that a possible implementation of a Registry uses a Factory to return an appropriate Repository which, in turns, uses an underline DataMapper to performe the CRUD operations against a database?
If no, which kind of relationship exists between repository and registry ?
View 1 Replies
Jul 20, 2010
How to create a user control for this kind of layout. I have a css. But dont know how to create a control for this kind of display. Title is the department name and below mentioned radio buttons are status for each department. Now department can be multiple as present in database. This one box can contain only two department list and new box needs to be created as soon as 2 departments are filled into this. How can I create user control for this type to bind it from datatable. I am reading about DynamicDataField but seems to be of no use. Here fields encircled is department and its statuses
View 1 Replies
Jan 24, 2011
I have a nested table structure, a part of which is rendered by a ajax call that returns HTML from the server. The markup looks like this:
<tr>
<td><table cellpadding="0" cellspacing="0" border="0">
<%-- Content will be displayed from ajax call 1 --%>
<%-- Content will be displayed from ajax call 2 --%>
</table>
</td>
</tr>
</table>
.. more html
The ajax call returns the following html
<tr>
<td class="wpss_checkboxtd"><img width="16" height="16" src="../../images/someimg.png"></td>
</tr>
<tr>
<td class="wpss_checkboxtd"><img width="16" height="16" src="../../images/someimg.png"></td>
</tr>
In jquery, I need to insert this html for which i need an element to traverse to so that I can call the html() of that element. Unfortunately, if I use a div, for example:
<table cellpadding="0" cellspacing="0" border="0">
<div id="divAjax1">
<%-- Content will be displayed from ajax call 1 --%>
</div>
<div id="divAjax2">
<%-- Content will be displayed from ajax call 2 --%>
</div>
</table>
the classes are setup such that the div or a span causes other issues.
View 3 Replies
Nov 5, 2010
I have this next gridview on my page : First name, Last name, ID.
It gets populated with data, and everything works great. I now wish to add a row just under the header (or above it- but I've been told it's impossible) with three checkboxes- one for each column.
Thing is- I geuss I would have to implement it programatically and I wasn't sure how could I pull this off.
View 3 Replies
Mar 28, 2010
I m trying to create a custom textbox with a enum kind property in it(like textmode).the enum values will come from database..but enums cant be dynamic..is there another way out??
View 3 Replies
Mar 4, 2010
I want to be able to insert any kind of text into a sql 2005 database. The column im using to store this is ofVARCHAR(MAX) type . Basically , even if the text contains special charectars or unicode content or html tags I should still be able to insert it into the database without any errors. Please guide me on how to achieve this.Things I tried that did not work !- changed the column to type NVARCHAR(MAX)-Tried Server.HTMLencode for the column that accepts the textIs regex a solution for this problem. If so how can i implement it?
View 8 Replies
Oct 8, 2010
Right now, I have designed my page that works great with an iphone screen, with the help of this meta tag:
[Code]....
Problem is, how do i detect what kind of phone that are acessing my page, and afterwards change this meta tag to fit it to that phone?
View 7 Replies
Mar 25, 2010
i just want simple mechanism to make images update at my website copyright protected, so i want to protect them witht the password. any of the techinque will do , i just want the iamges to be password protected so that i can dignose whether the uploaded image is not from my site.
View 3 Replies
Jan 19, 2011
I am making an online form (literal form) that needs to have a certain function: when the user enters a 5-digit number, the form should automatically query the MS SQL DB and retrieve information associated to that number and populate other form elements (text boxes, etc.) accordingly.
So say the # was 12345 and in the DB, the record matching 12345 has name=Fred. So, when I enter 12345 into the form textbox, the name text box should be automatically populated with Fred in it.
If this is not easily achievable, I guess a submit button beside the 5-digit number text box can do.
I am still learning my way around ASP.NET and Visual Studio 2005, however I have ample experience with HTML, CSS, JavaScript, C/C++. The ASP.NET app is to be written in C#.
View 1 Replies
May 12, 2010
What is a proxy web service ?
View 1 Replies
Jun 28, 2010
I have created my proxy class from a wsdl file using
wsdl /out:myproxy.cs c:arcodework.wsdl
I have imported it into my windows service application written in c# .net and I want to call a function from the proxy.
It returns an error when I try to call any function from the proxy. How can I make my application to communicate with the proxy file which is myproxy.cs? Here is how the proxy file starts:
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
//
// This source code was auto-generated by wsdl, Version=2.0.50727.1432.
//
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="LifecycleSoapBinding", Namespace="http://service.myservice.workflow.services.barcodework.com")]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(UserEdo))]
public partial class BarcodecycleServiceService : System.Web.Services.Protocols.SoapHttpClientProtocol {
...
etc.
View 1 Replies