|
liz3 wrote: Does this have something to do with the user ASPNET?
Why are you trying to do this? What is your requirement? I think there is no reason to open a IE using Process.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Dear friends,
My ASP.Net site works perfectly in local network. But after uploading in the net, session times out frequently.
I have 2 session variable.One is declared ( CompanyTitle) at Global.asax(Session_Start event), another in login page ( userName). The session variable declared in Global.asax is available in all pages, the other variable is not. It gives an error as "Object variable is not set to an instance.....". After that I declared this variable in Global.asax(Session_Start event) with "" as its default value. Now the problem is that the UserName session variable is reset into "" frequently.
my session entry in web.config is as
<sessionstate mode="InProc" cookieless="UseCookies" timeout="60" />
Please advice me on this problem.
Shivanandan C V
modified on Monday, April 13, 2009 1:32 AM
|
|
|
|
|
Shivan Nandan wrote: my session entry in web.config is as
you web.config setting is not coming properly. While posting web.config setting, make sure you have checked "Ignore HTML tags in this message (good for code snippets)" Check box.
Shivan Nandan wrote: But after uploading in the net, session times out frequently.
You want to mean after deployed into IIS?
Shivan Nandan wrote: the other variable is not. It gives an error as "Object variable is not set to an instance.....".
How did you add the value in session?
Shivan Nandan wrote: Now the problem is that the UserName session variable is reset into "" frequently.
Means you are getting the value some times and its got reset frequently. Are you using any Application Pool in IIS ? Does it recycling for any reason ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi,
After deploying also , I get the same kind of error.But now I have uploaded all files ie, aspx,aspx.cs,cs,web.config,Global.asax etc.
The first variable is added in Session_Start event, as
Session.Add("CompanyTitle","XYZ")
The other variable in
protected void btnLogin_Click(object sender, EventArgs e)
{
// value retrieval code from Database
Session["UserName"]=UserName;
}
The problem is that whenever I retrieve the session variable "UserName" in some other page, nearly after 1 minute it gives the error "Object variable not set to an instance..."
Shivanandan C V
|
|
|
|
|
Shivan Nandan wrote: The problem is that whenever I retrieve the session variable "UserName" in some other page, nearly after 1 minute it gives the error "Object variable not set to an instance..."
It means you are getting the value from session for sometimes. Yes | No ?
Did you gone through all the questions that I have asked you earlier ? What is IIS settings fro Session Time Out, What about IIS Recycling ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hosting people told that they have set it to 60 minutes. About recycling I have no idea.
Shivanandan C V
|
|
|
|
|
Shivan Nandan wrote: About recycling I have no idea.
If you are confident about your code, then problem is only with the recycling of Application Pool. Ask you hosting people to create a separate application pool for you site and assign that application pool to your site, and then test.
Good luck !!
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Thank You
Shivanandan C V
|
|
|
|
|
Hi Friends
In one of Grid View columns ("Name"), if a name exceeds certain number of characters,the rest of the characters appears on the next line. Is there any way so that the column values should appear on the same line. I tried HeaderStyle Wrap = "false" RowStyle Wrap = "false" but nothing works.
Abhishek
Mumbai, India
modified on Monday, April 13, 2009 1:02 AM
|
|
|
|
|
Is it posible to send Email from localhost ? how?
shahdat
|
|
|
|
|
MD. SHAHDAT HOSAIN wrote: Is it posible to send Email from localhost ? how?
You have to Configure SMTP in your Local System. Please go through the given links, you will get the details of how to configure SMTP in your IIS.
How to: Install and Configure SMTP Virtual Servers in IIS 6.0
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi,
I am working with the dropdown List but while running the application if I am trying to select the items from the DropDown List I am Getting the Following Error:
Invalid postback or callback argument. Event validation is enabled using in configuration or in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
I have faced this problem many times but I am not getting why this problem is raised.
Can anybody tell me about this problem and why is tha raised????
Thanks
|
|
|
|
|
Please Don't Cross Post.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
I want to design page in Which as new user add under the parent node
and limit upto 3 node and also shows graphcal representation of node
only individual level.
can you help me regarding this problem.....
|
|
|
|
|
Hi Everyone,
I am a new programmer in the business to build websites for small companies. Now, I have a big question. How do I price an ASP.NET website? Depending on the number of pages, or anything else? Especially, when the website is dynamic and requires database, it is more difficult to estimate the price.
Now my customer (to be honest, this is my first one), wants me to build a site like http://www.letslive.co.uk/default.aspx[^]. They are also a property agency with a few stuff.
Oh, by the way, I am in Manchester, UK. It seems the price in the city is not too low.
Also, does anyone know any websites where I can get more contracts of website and software development? It would be good if it's for UK.
Thanks in advance
modified on Sunday, April 12, 2009 2:05 PM
|
|
|
|
|
rocksoccer wrote: How do I price an ASP.NET website? Depending on the number of pages, or anything else?
By the amout of work it will take to do the job. Number of pages isn't a good metric unless it is a brochure site with static content. Always remember that what ever you expect it will take will be optimistic. Developers, in my experience, are mostly optimists. One project I work with has a manual deployment process that takes 2 to 2.5 hours normally, and that is a very well defined process. Sometimes things go wrong and it will take the whole day. Software development is more dynamic thing and it will often surprise you what will crop up to make things difficult for you.
If you are going for a fixed price model make sure that all the details are locked down before you start otherwise you will end up doing a lot of amendments for free. If you lock the details down and changes are requested you will have a document that states what is in the original contract and you can negociate for additional money to make the changes.
rocksoccer wrote: Also, does anyone know any websites where I can get more contracts of website and software development? It would be good if it's for UK.
If you want a good network of contacts then you need to network. You need to meet people.
You also say that you are a new programmer. Have you considered working for someone else and learning from them. Screw up on their payroll rather than your own?
Also, if you are working on your own you will need contact with other developers to share ideas and learn from each other. As you are in Manchester I can suggest Manchester .NET User Group[^] (although they don't seem to have had any events in a while, so I don't know if they are stitll going). Alternatively NxtGenUG[^] are starting up in Cheadle. There are also various community conferences held around the UK: Developer! Developer! Developer![^]
Even if you are not on your own the ideas and things you can learn from a user group are great and you should go along anyway just to keep up with areas of software development you are not currently involved in. You never know when someone is going to ask you if you can do X, Y or Z and you want to be able to confidently that you at least know something about that area even if it requires more research to complete the job.
|
|
|
|
|
Thanks for the suggestions.
In fact I am a Master graduate last summer from Birmingham Uni. Until now I haven't got a job yet, that's why I try starting my own business. At least I can do something related to my degree.
Meeting more people is important! NxtGenUG seems to have some events around Manchester in May. Maybe I should try it.
Thanx
|
|
|
|
|
By the way, here is another excellent resource if you want to meet fellow developers: Developer Fusion UK Community Events[^]
And something I forgot about in my original email. When thinking about the amount of work that needs to be done, take into account the non-fuctional requirements too. That's the stuff the client will never ask for but needs to be done. Things like logging, backups, documentation, network infrastucture, security, etc.
Actually, the client may ask for some of these things but usually in a vague wishy-washy kind of way. For example, if you do a site that requires takes payment they'll ask for PCI compliance (if they know to ask for it) but probably won't got into specifics. From their point of view PCI compliance is a necessary evil for dealing with the major credit card companies.
Clients rarely ask that you implement logging in your application. But if things go wrong on a production site you need it there in order to see what went wrong so you can fix it.
|
|
|
|
|
Also keep in mind how you are going to handle maintenance and support. Draw up an agreement on how this will be handled. When the site is complete, you should make a full backup of the site and give it to your client. You don't want to be responsible for their source code.
This could be a very good experience for you and may lead to other jobs, so you should keep your pricing competitive.
Good luck.
|
|
|
|
|
Absolutely. I rember reading somewhere that 80% of the cost of a project was in the maintenance phase.
David Mujica wrote: You don't want to be responsible for their source code.
Why not? It could be an additional valuable revenue stream. And if the client has the source code it means they can wander off to someone else more easily. If you keep the source code it is easier and less hassle to come back to you for amendments.
|
|
|
|
|
I don't know the law in either the UK or USA, but the consultant typically doesn't own the source code. The customer hires you for a job to be done and is paying for the development effort. They own the end result (which is the source code). You could be in a sticky situation if you don't turn over the source. What happens if the source code is lost/damaged/stolen ? You could be in a leagal situation.
I just want to bring some ideas to the table.
Things to think about. Ultimately, what this guy wants to do is build a solid relationship with his client and build his reputation as someone who can be trusted and relied on. Word of mouth and personal recommendations are a great way to build your business.
Cheers.
David
|
|
|
|
|
David Mujica wrote: I don't know the law in either the UK or USA, but the consultant typically doesn't own the source code.
By default the person who created the source owns the source regardless of whether they were paid to produce it or not. Most contracts will require this owenership is assigned over to the person/entity that is paying for the work.
David Mujica wrote: The customer hires you for a job to be done and is paying for the development effort. They own the end result (which is the source code).
Only if they specifically ask for it. For many people the source is irrelevant, they just want results.
David Mujica wrote: You could be in a sticky situation if you don't turn over the source.
Only if it was asked for.
David Mujica wrote: What happens if the source code is lost/damaged/stolen ? You could be in a leagal situation.
You don't take backups if the source you are working on is belongs to someone else? That's just crazy!
David Mujica wrote: Word of mouth and personal recommendations are a great way to build your business.
Yes, they are. But you also want to do as much to protect yourself if things go wrong.
|
|
|
|
|
I'm probably getting way too cynical about how companies operate.
|
|
|
|
|
hi,
I have Problem while working with Update Panel and UpdateProgress
I have used dropDownLists in the Update Panel
But I am getting this error while running the application
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
If anybody have solution for this , Plz Help me
Thanks.
|
|
|
|
|