|
Question: How long have you been using asp.net?
"I do not have to forgive my enemies, I have had them all shot." — Ramón Maria Narváez (1800-68).
|
|
|
|
|
anish_singh wrote: interview question of asp.net developer for 3 years exp
Every individual has his own way of judging a candidate. As per me, a good interviewer will look at what all you have done till now and how well you know about them. Can you think logically and try to find out even if you don't know. How much you are ready to learn and explore. And not to forget how well your skillset fit in the position requirement that you are being interviewed for.
My 2 cents: Asking for interview question might not help as much as looking into the depth of the work done by you till now.
|
|
|
|
|
Hi,
I have a java web service and I'm trying to download a file of 250 MB from the webmethod. I'm getting "Java heap space-ERROR". I kept the value for maxReceivedMessageSize="2147483647"
and changed all config values to the maximum values. Still facing the same error.
Any ideas to solve this issue. Thanks in advance.
|
|
|
|
|
NarVish wrote: I'm getting "Java heap space-ERROR".
And this has what to do with C#?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
They both have curly brackets?
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
This is the wrong forum. use the Java forum.
|
|
|
|
|
I'm working on C#, not in Java.
My application is C#, which is accessing Java webservice
|
|
|
|
|
You have no mentions of C# in your original question, and the only error you show is a Java error. Thus your question has nothing to do with C#.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
As this is C# forum, I didn't mention specifically about my project platform. Because it is by default C# platform.
Anyways, for your understanding, I'm writting my problem again.
I'm working on C# project which is accessing Java webservice. I'm calling a webmethod which sends a file of 250MB size in response.
I changed the config section as mentioned in my original message.
Exception called "Java Heap Space" thrown.
|
|
|
|
|
NarVish wrote: Exception called "Java Heap Space" thrown.
Where in C# does this exception occur?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
Exception occured at the line where I called that service method.
|
|
|
|
|
You are missing the point. The exception you are getting is thrown from the Java side. I'd have thought the fact it said Java in the exception would have been a big clue that the problem was at the Java side, but that's just me; picking up on these subtle clues.
Bottom line - you can tweak your client side config all you like, but if the problem is at the server end, you ain't going to solve squat.
|
|
|
|
|
You are right. Its the problem at server side. Thank you for your reply
|
|
|
|
|
Just to clarfy, if you are seeing this error at the client:
- It is being sent by the web service to the client.
- The error is happening at the service.
- Changing the client config will have no effect in this case
Finally, as this is a Java service error you will be better off asking for help in a Java forum.
Possibly, the whole file is being loaded into memory and this is causing the heap to fill, the service needs to stream or chunk it. As a non-Java dev I couldn't be certain though.
|
|
|
|
|
Whoever set the web server up needs to read this[^].
|
|
|
|
|
How do Merge cell in excel of xml?
|
|
|
|
|
Is this a C# question? If so it is far from clear.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
yes.
this question have resolved.
solution :
writer.Write("<Cell ss:MergeAcross=\"1\">");
thank you.
|
|
|
|
|
Hi,
I dont know the references for this code . please some one copy the code to VS2008 and check for the reference.
Thanks!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SqlServer.Management.Smo;
using System.Diagnostics;
using System.Collections.Specialized;
namespace Transfer2008To2005
{
class Program
{
static void Main(string[] args)
{
string sourceserver = "SourceServerName";
string destinationserver = "DestinationServerName";
Server src = new Server(sourceserver);
Server dest = new Server(destinationserver);
string[] myarray = new string[] { "databasename", "otherdbname" };
foreach (Database db in src.Databases)
{
if (db.IsSystemObject == false && db.Status == DatabaseStatus.Normal)
{
Debug.WriteLine("Now moving " + db.Name);
if (dest.Databases.Contains(db.Name))
dest.KillDatabase(db.Name);
Transfer t = new Transfer(db);
t.DestinationServer = destinationserver;
t.DestinationDatabase = db.Name;
t.CreateTargetDatabase = true;
t.PreserveDbo = true;
t.TargetDatabaseFilePath = "D:\\SQLDATA\\";
t.TargetLogFilePath = "F:\\SQLLOGS\\";
t.CopyAllDefaults = true;
t.CopyAllFullTextCatalogs = true;
t.CopyAllRoles = true;
t.CopyAllRules = true;
t.CopyAllSchemas = true;
t.CopyAllStoredProcedures = true;
t.CopyAllSynonyms = true;
t.CopyAllTables = true;
t.CopyAllUserDefinedDataTypes = true;
t.CopyAllUserDefinedFunctions = true;
t.CopyAllUserDefinedTypes = true;
t.CopyAllUsers = true;
t.CopyData = true;
t.CopySchema = true;
t.CopyAllObjects = false;
t.DropDestinationObjectsFirst = true;
t.Options.WithDependencies = true;
t.Options.IncludeDatabaseRoleMemberships = true;
t.Options.Indexes = true;
t.Options.DriAll = true;
t.Options.Permissions = true;
t.Options.SchemaQualify = true;
t.Options.SchemaQualifyForeignKeysReferences = true;
t.Options.Statistics = true;
t.Options.TargetServerVersion = SqlServerVersion.Version90;
t.Options.WithDependencies = true;
t.Options.IncludeIfNotExists = true;
t.Options.FullTextIndexes = true;
t.Options.ExtendedProperties = true;
t.TransferData();
t = new Transfer(db);
t.DestinationServer = destinationserver;
t.DestinationDatabase = db.Name;
t.DestinationLogin = "schemalogin";
t.DestinationPassword = "schemapassword";
t.DestinationLoginSecure = false;
t.CopyAllViews = true;
t.CopyAllTables = true;
t.CopyAllObjects = false;
t.CopyAllDatabaseTriggers = true;
t.Options.Triggers = true;
t.CopyData = false;
t.CopySchema = true;
t.Options.IncludeIfNotExists = true;
t.TransferData();
}
}
}
}
}
|
|
|
|
|
What do you mean by references in this context? If you have compile errors then post the text here and people will try to explain what is wrong.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
If you want to know what assemblies to reference, simply compile the code. The IDE will complain about the types that it cannot find. Most of these types will have a page on MSDN, and that page includes the name of the assembly that the type is located in. Add reference, compile again, find the next one.
Bastard Programmer from Hell
|
|
|
|
|
in .Net 3.5 versiyon i added those to references and i took buil succeeded.
Microsoft.SqlServer.Management.Smo
Microsoft.SqlServer.Management.Sdk.Sfc
Microsoft.SqlServer.Smo
Microsoft.SqlServer.SmoExtended
Microsoft.SqlServer.SqlEnum
it will work. but check clearly version when you add reference.
|
|
|
|
|
|
I have created a bool User Setting called ShowRecent with a value of True. I created it in the designer, and in app.config it shows as True.
I created a bool property:
public bool ShowRecent { get; set; }
I also created these two methods:
public void loadSettings()
{
ShowRecent = Properties.Settings.Default.ShowRecent;
}
public void saveSettings()
{
Properties.Settings.Default.ShowRecent = ShowRecent;
Properties.Settings.Default.Save();
}
I then run
engine.loadSettings();
engine.ShowRecent = true;
engine.saveSettings();
when the loadSettings is run the property is False. Even when I set it to True and called saveSettings, the propety is still False. app.config still has True.
What am I doing wrong here?
Everything makes sense in someone's mind
|
|
|
|
|
Settings aren't stored in app.config. They are stored in the user settings directory.
|
|
|
|