|
Check your tnsnames.ora file
Check that you are using the right service name as defined in tnsnames.ora
Use the oracle Net Configuration Assistant tool to test the connection
System.IO.Path.IsPathRooted() does not behave as I would expect
|
|
|
|
|
The product I am working on is a standard product that my company sells to clients. Like all software, no client seems to like the software just the way it is... Everybody wants to tweak this or that functionality. I don't have a problem with this as it makes our product better and adds functionality. My problem is that we are getting a larger client base. It is becoming difficult to manage the base project separate from the client customizations and their projects. If any of you have a good way to manage customizations between many clients and a base product, please share or suggest ways to do this better.
Environment:
Visual Studio .NET
SQL Server 2000
Microsoft VSS
Thanks for any responses!
Hogan
|
|
|
|
|
Can you not just create settings of functionalities in your app?? I don't know which customizations we're talking about, what I recently implemented in one of my apps was a (what I called) SettingsManager Class which is basicly very simple, when it gets instanciated, it loads several values from datasource and exposes them via properties. When properties are set, the class changes the values in the database (easy right??) Now some settings are user dependant, others are 'global' settings which count for all users, to I added a argument for User ID in the constructor for the SettingsManager class, to make sure we load settings for the correct user, and (ofcouse) set them for the correct user once a property is being set.
Now you have a set of booleans, integers, strings you name is available via your SettingsManager properties and let your app interact with that...
<br />
if (!SettingsManager.HideWarningMessages)<br />
Messagebox.Show("WARNING!!");<br />
It works great here...
|
|
|
|
|
Eduard,
Thanks for your response, but I believe it is more complicated than just settings. I'll provide a better example.
Our product has 3 standard interfaces to bring data into it (ODBC, CSV, XML). We have several clients that use our standard interface. However, several of our clients, don't have a development staff. They will provide us with a CSV or ODBC interface that we have to work with. I don't think it makes sense to carry 5 custom CSV interfaces in our standard product that other clients will never use. The custom interfaces can be quite large and difficult to deal with. This seems to violate the KISS principle for code.
What you listed in your comment sounds more like a permission system for standard features. Am I missing something?
Hogan
|
|
|
|
|
Hi,
I am working on a GridView control to play a game. I am trying to make the cells editable; however, when I click on edit I lost my data or I get an error:
Object reference not set to an instance of an object
Here is a code sample (excuse the messiness, I am still debugging things and I like to clean-up at the end)
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if (!IsPostBack)<br />
{<br />
NewGame(0); <br />
}<br />
else<br />
{<br />
lblStatus.Text = lblStatus.Text + "postback!";<br />
mySet = _newGame.GameSet;<br />
DataRow[] currentRows = mySet.Tables["problemcopyset"].Select(null, null, DataViewRowState.CurrentRows);<br />
foreach (DataRow row in currentRows)<br />
{<br />
foreach (DataColumn column in mySet.Tables["problemcopyset"].Columns)<br />
{<br />
lblStatus.Text = lblStatus.Text + row[column] ;
}<br />
}<br />
lblStatus.Text = lblStatus.Text + "<br />
";<br />
}<br />
}<br />
<br />
private void NewGame(int index)<br />
{<br />
GameLevel[] levels = { GameLevel.SIMPLE, GameLevel.MEDIUM, GameLevel.COMPLEX };<br />
<br />
<br />
if (index > -1)<br />
{<br />
_newGame.GenerateGame(levels[index]);<br />
gameGrid.Visible = false;<br />
_currentSet = _newGame.GameSet;<br />
mySet = _currentSet;<br />
_currentSet.Tables["numberset"].DefaultView.AllowNew = false;<br />
<br />
<br />
if (_currentSet != null)<br />
{<br />
_currentSet.Tables["answerset"].ColumnChanging += new DataColumnChangeEventHandler(this.CurrentSet_ColumnChanging);<br />
}<br />
gameGrid.Visible = true;<br />
gameGrid.DataSource = _currentSet.Tables["numberset"];<br />
gameGrid.DataBind();<br />
<br />
}<br />
<br />
<br />
}<br />
protected void gameGrid_RowEditing(object sender, GridViewEditEventArgs e)<br />
{<br />
lblStatus.Text = lblStatus.Text + "<br />
editing!<br />
";<br />
gameGrid.EditIndex = e.NewEditIndex;<br />
gameGrid.DataSource = mySet.Tables["numberset"];<br />
gameGrid.DataBind();<br />
}
Any help would be greatly appreciated.
Thanks!
|
|
|
|
|
This looks like an ASP.NET problem. Am I correct? If so, it looks like you're not caching your dataset between postbacks.
|
|
|
|
|
Yes, you are right...I managed to get it to work.
Thanks!
|
|
|
|
|
has someone used this DLL tu read a class from a JAR file I am having some errors but with out relevant things
stack trace:
at Jni.Net.Bridge.JClass.ForName(String name) in C:\Documents and Settings\penuelas\Desktop\Downloads\article1_source\Jni.Net.Bridge\src\JNI.NET.Bridge\JNI.NET.Bridge\Jni\Net\Bridge\JClass.cs:line 55
at CsharpJVM.CSharpVirtual..cctor() in C:\Documents and Settings\penuelas\My Documents\Visual Studio 2005\Projects\CsharpJVM\CsharpJVM\CSharpVirtual.cs:line 15
-- modified at 13:59 Tuesday 28th November, 2006
|
|
|
|
|
hi
i need a free task pane component. can anyone reply me ??
i get a very good task pane control from codeproject but when i compile it's project the following error shown me :
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DemoForm));
this.systemTaskPane = new XPExplorerBar.TaskPane(); //error occured in this line
this.pictureTasksExpando = new XPExplorerBar.Expando();
....
}
A call to PInvoke function 'XPExplorerBar!XPExplorerBar.NativeMethods::LoadBitmap' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
|
|
|
|
|
Please see the comments to the XPExplorerBar article, where this bug was discussed and solved[^].
|
|
|
|
|
Hi all
I need to provide tabbed window like functionality in my application just similar to visual sutdio 2005 but could find something worthwhile. Please guide me to a starting point or link
Many thanks
Don't Quit
|
|
|
|
|
There's nothing like this built-in to the .NET framework. There are some commercial toolkits, such as DivElements[^], that supply Visual Studio-like tabs and docking panes.
|
|
|
|
|
I have used the Divelements libraries since they were initially freeware (once upon a time) and find them to be the easiest to work with and provide the best UI presentation as well. They are definately worth the money, even without being expensive like Infragistics or DevXpress.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Hi guys. Thanks for your suggestion. I'll try it out.
Don't Quit
|
|
|
|
|
|
Howdy,
I am trying to select a range of data within an excel spreadsheet using a SQL query. The two queries below do the trick but I was wondering if there's any way to combine both of these SQL queries into one query?
SELECT * FROM [Retail @home$A11:H46]
SELECT * FROM [Retail @home$J12:Q46]
I've tried:
SELECT * FROM [Retail @home$A11:H46, Retail @home$J12:Q46]
SELECT [A11:H46],[J12:Q46] FROM [Retail @home$]
Without any luck whatsoever.
I was hoping this article http://support.microsoft.com/kb/316934/EN-US/[^] would shed some light on selecting multiple different cell column ranges but it wasn't.
Any help would be very very appreciated!
cheers,
frank grimes
|
|
|
|
|
Can you do a merge on a temp datatable?
You may even try a union in the select
|
|
|
|
|
Thank you for responding.
I tried the UNION ALL SQL Query:
"SELECT * FROM [Retail @home$A11:H46] UNION ALL SELECT [Retail @home$J12:Q46]"
and it threw the following exception:
"Query input must contain at least one table or query."
I am not really sure how I would go about merging a temp datatable. I've investigated but I am still pretty much a newbie regarding datasets and datatables...I will investigate though...
thanks again for the response!
|
|
|
|
|
Error on my part, the UNION does work if you write it correctly
SELECT * FROM [Retail @home$A11:H46] UNION ALL SELECT * FROM [Retail @home$J12:Q46]
|
|
|
|
|
hi
how to resize Image of picturebox ?
i used this code but the following error shown me :
my Code :
this.pictureBox1.Image.Size.Height = int.Parse(this.numericUpDown_Y.Value.ToString());
error :
Cannot modify the return value of 'System.Drawing.Image.Size' because it is not a variable
how to solve my problem ?
thanks
|
|
|
|
|
|
hi
thanks for reply
but i want to resize my image in picturebox.image,(zoom in and zoom out)
wait for other replies.
thanks
|
|
|
|
|
|
Hi, i need to transform the contents of a richtextbox (rtf) to an image.
Any suggestions will be highly appreciated
Thank you
|
|
|
|
|
What have you done so far?
|
|
|
|