|
Well, I hope you are aware about the automated test tools like NUnit.
Before VS2008, to execute a test, you need to write it and use the assembly with tools like NUnit. These tools uses reflection to read the test methods from the assembly and execute it. Since Vs2008, MS provided a test framework inside visual studio so that you don't have to use other applications like NUnit.
But in reality, VS test framework is used very rarely. Most of the people (including me) still uses NUnit or a better alternative.
Best wishes,
Navaneeth
|
|
|
|
|
|
Hi,
I am working on ASP.NET C# application.
Everything is working fine on the local machine but on the server my application's session timeout after two minutes.
I haven't set the session timeout in web.config. Please tell me the reason of this. Also tell me what is the unit of session timeout minute, second or millisecond.
Thanks
Sonia
|
|
|
|
|
Sonia Shahid wrote: I haven't set the session timeout in web.config
Set Session timeout as
<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="50" />
Sonia Shahid wrote: Also tell me what is the unit of session timeout minute, second or millisecond
Minutes
|
|
|
|
|
Sonia Shahid wrote: but on the server my application's session timeout after two minutes.
Session will end when ASP.NET worker process recycles. You need to make sure your code is not doing something like updating web.config at the run-time that will recycle the worker process.
Sonia Shahid wrote: Also tell me what is the unit of session timeout minute, second or millisecond.
It is in minutes.
Best wishes,
Navaneeth
|
|
|
|
|
Try setting the timeout in the Web.config. If you don't set it, I think it could still not be the default value if the Machine.config has a different value for it.
Also, any page can reset the time-out.
|
|
|
|
|
Yes, you're right. That's the root config applies if nothing is configured at lower level. Define your session timeout and it will work as charm.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Hi all,
i am using Interop for excel.
i need to set border style as solid and border color for particular cells.
am using the following code, which is not working....
Please correct it...
<code>
oRange = (Excel.Range)oSheet.Cells[i, j+1];
oRange.Borders.Weight = BorderStyle.Solid;
oRange.Cells.Borders.ColorIndex = 11;
</code>
Thanks and regards
|
|
|
|
|
Hi all,
I am using one function to send mail.I have written 4 different functions in a single page(Mailreceiver.aspx),and call according to the hosting server.I am using these mail facilities successfully in my other sites.But I run this in one project I got the error that
'Server Error in '/' Application'
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).
and show the error in the line with a red color
Partial Class Mailreceiver
So anyone know about this.Pls help me
Thanks
Denny
|
|
|
|
|
As the error says, you need to look into the inherits attribute in the ASPX page.
Best wishes,
Navaneeth
|
|
|
|
|
I have checked there,but I didn't find anything
|
|
|
|
|
Member 4260270 wrote: but I didn't find anything
You didn't find the inherits attribute at all?
Best wishes,
Navaneeth
|
|
|
|
|
I saw it but i didn't understand the problem.
<%@ Page Language="VB" autoeventwireup="false" inherits="Mailreceiver" CodeFile="Mailreceiver.aspx.vb" %>
Is there any problem?
|
|
|
|
|
Go to Mailreceiver.aspx.vb and see from which class it inherits.
Best wishes,
Navaneeth
|
|
|
|
|
Partial Class Mailreceiver
Inherits System.Web.UI.Page
|
|
|
|
|
Hi All,
Can any one help me to know how can we connect windows application with asp .net. Or in other words is there any way where we can make use of windows application form (vc#) in asp .net web application. Like suppose if there is a button in asp page , once i click on it, the form should get open. It can be any form. If we can create a form also will be good.
Thanks
vikas da
|
|
|
|
|
AFAIK..!
Windows Application is different from forms appliction.You cant use like tht.Use popup or javascript to use a window..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
"Windows Application is different from forms appliction" ?
Did you really mean this ?
|
|
|
|
|
Shameel wrote: Did you really mean this ?
I told AFAIK You missed tht..!
Whats Your Point here?
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
You can't. All you can do is to provide a download link which will download the windows application. If you are looking for creating rich-client applications that can work inside a browser, I'd suggest to take a look at Silverlight[^].
Best wishes,
Navaneeth
|
|
|
|
|
Hi All,
U can open ur window application through web application Throuth Activex Control.
let try this way it will work.
Thanks and regards,
Amit Patel
|
|
|
|
|
Your post is misleading.
1. ActiveX is not a .NET technology
2. It is not easy to show Windows Forms from ActiveX controls
3. ActiveX controls work only with IE and not other browsers.
4. ActiveX is known to have several security concerns to be used in a browser.
|
|
|
|
|
Hi I have an application.
There are two roles (admin & user) set up.
I have 3 dynamic master pages. (admin & user & a master page for the state when notloggedin)
There fore all my webforms have MasterPageFile="" set for either
user.master
admin.master
notlogin.master
On my login page i have a login control and when I login successfully i want to specify a destination url dynamically
any help please
|
|
|
|
|
Hi,
One option could be:
Don't use Login Control. Create just 2 textboxes and one button. On the button click you can have this action:
protected void Signin_click(object sender, object args) {
if (Membership.ValidateUser(txtLogin.Text, txtPassword.Text)) {
FormsAuthentication.SetAuthCookie(txtLogin.Text, false);
string returnUrl = Request.QueryString["ReturnUrl"];
if (string.IsNullOrEmpty(returnUrl)) {
if (admin) {
Response.Redirect("my_admin_page.aspx", false);
} else if (user) {
Response.Redirect("my_user_page.aspx", false);
}
} else {
Response.Redirect(returnUrl, false);
}
} else {
}
}
Petr Pechovic
|
|
|
|
|
Petr Pechovic wrote: Don't use Login Control.
Yes, use the Login control. Override the appropriate methods, like OnLoggedIn[^]. There is no need to reinvent the wheel.
I know the language. I've read a book. - _Madmatt
|
|
|
|