|
Is it so....
I never checked this but if you are talking about data containing C++ and C# will error out, I dont think this would be a problem. Because basically every control is rendered in browser as html. And you can place any text inside InnerHTML.
|
|
|
|
|
You need to post some code and examples of how it displays wrong, because what you're saying, makes no sense.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Background:
I'm running an MVC app on Windows Server 2003 using Integrated Authentication. I have a page that is running into authentication problems only when it performs a large number of inserts. After a certain amount of time (~ 1-2 minutes) users are asked to enter their network username, password, and domain. This logon request appears three times, then an error page is displayed with a 401.1 error. The exact error message in the log is: 401 1 2148074248.
The user is not asked for their network password anywhere else in the application and not consistently on this page…only if processed a large inventory which means a lot of inserts. I have added “executionTimeout="3000"” in the the web.config file to prevent a previous error of “HttpException (0x80004005): Request timed out.”.
Sequence of Events observed with Fiddler
a)Press submit button at 10:07
b) 401 /InventoryImport/SaveDepartments
c) 401 /InventoryImport/SaveDepartments
d) 401 /InventoryImport/SaveDepartments
e) 10:08 Logon request
f) 401 /InventoryImport/SaveDepartments
g) 401 /InventoryImport/SaveDepartments
h) 10:09 Logon request
i) 401 /InventoryImport/SaveDepartments
j) 401 /InventoryImport/SaveDepartments
k) 10:10 Logon request
l) 401 /InventoryImport/SaveDepartments
m) 401.1 You are not authorized to view this page
n) It appears that I have lost my connection because if I change the url to
another valid url, I continue to receive 401 errors
Sample entry in log file:
2009-09-17 17:51:19 W3SVC1746257461 198.186.126.241 POST /InventoryImport/SaveDepartments - 80 - 192.168.200.90 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+InfoPath.2;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 401 1 2148074248
Httperr.log
No consistent error message.
Event viewer:
No errors.
SQL Server logs:
No errors.
IIS settings:
IIS is set to recycle worker process at 2:00am. Session is set to 20 minutes. Web app settings are: Connection timeout 120 sec, Enable HTTP Keep_Alives checked.
Web.config:
In my web.config I have set executionTimeout="3000".
I asked my admin to have the Web Site Connection Timeout and the App Pool Shutdown Timeout bumped up (per instructions below), however, he said that did not work.
Info from: http://www.arichards.com.au/iis62
o Always set the Web Site Connection Timeout to at least 120 seconds (2 minutes)
o Enable the Web Site Keep Alive setting
o Always set the Web Site ASP Scripting Timeout to a value that is ~30 seconds less than the Connection Timeout
Note: currently set to 3000 in web.config
o Always set the Application Pool Shutdown Timeout to a value that is ~30 seconds more than the Connection Timeout
o Always set the Application Pool Recycle Physical RAM Limit to at least 64Mb (the default is 192Mb)
FYI: the simplest Classic ASP page that you can think of uses ~4Mb when a single request is being processed
o Always set the Application Pool Recycle Virtual RAM Limit to at least 128Mb (the default is 500Mb)
FYI: the simplest Classic ASP page that you can think of uses ~67Mb when a single request is being processed
Any idea what is causing the 401 error? Thx.
|
|
|
|
|
|
Thank you for your response, however, I am not getting a 404 error, I am getting a 401 error. Also, I can access the page and do not have a problem unless I am inserting a large amount of rows. Any other ideas? Thx.
|
|
|
|
|
If my admin runs locally (on webserver) with admin login then he does not receive the 401 error.
|
|
|
|
|
|
First, read this[^]. "Popup" is not a very good subject line now is it?
Malik1122 wrote: a function in javascript and i'm calling it at server side
I think you are very confused. You cannot call a JavaScript function on the server.
A very cursory search will provide you numerous options, try it[^]
only two letters away from being an asset
|
|
|
|
|
But what is the problem in this. I think it would work fine.. Just opening a new widow when postback occurs.
Please let me know what exactly problem you are facing, so that I can check.
|
|
|
|
|
Abhishek Sur wrote: But what is the problem in this.
Seriously?
It's a horrible waste, why cause a postback just display a popup?
only two letters away from being an asset
|
|
|
|
|
Yeah...
Some people do funny code. This might be one instance... Mark...
If I was in his place, I would obviously remove the unnecessary postback.. if I dont have to go through any logic before running the javascript..
And also.. Its really frustrating when the original post is deleted.
|
|
|
|
|
Abhishek Sur wrote: If I was in his place, I would obviously remove the unnecessary postback
Why the hell did you say you didn't see a problem with it then?
only two letters away from being an asset
|
|
|
|
|
Actually I meant the code will run without errors ...
I agree... Its my bad.. not pointing him about the mistake...
|
|
|
|
|
Hi,
In my case, i need to prompt user to restart system after rollback in dot net web setup project.
I am able to prompt user to restart system after install and uninstall, but no clue how to do it after rollback.
Please help me in this.
Pradeep Reddy
|
|
|
|
|
Make a master setup which will call your setup so that you can handle this easily.
|
|
|
|
|
Abhishek Sur wrote: Make a master setup which will call your setup so that you can handle this easily.
We have the hurlde at the first place itself.
You can not run more than two MSIs together. So, no point of calling one setup from another.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Have I ever mentioned calling MSI from another..
MSI and Setups are quite different..
Setups are invoked using Windows Installer.
The Best example is if you look into Any .NET installer. The Setup invokes at least 100 of msi within it.
|
|
|
|
|
|
Hi guys, im making a site which needs really really good security.
Normally I would just use sessions etc but Im presuming there are WAY more secure ways.
Could anyone give me some links which cover some nice topics relating to this?
Thanks
Strive to be humble enough to take advice, and confident enough to do something about it.
|
|
|
|
|
Use Asp.net Forms Authentication
try this link of video
[^]
If You want to learn .Try to google asp.net forms authentication..!
If It Helps Click It as Answer
|
|
|
|
|
Forgot to mention...I dont want to use membership etc.
Strive to be humble enough to take advice, and confident enough to do something about it.
|
|
|
|
|
LOL Then U Have to search for Third party .
Why Wont You Use Forms Authentication..!
If It Helps Click It as Answer
|
|
|
|
|
Well what about cookies or something?
The reason is that I dont like the way it tries to do most of the stuff for you - even setting up its on DB. I need to integrate this with existing stuff.
Strive to be humble enough to take advice, and confident enough to do something about it.
|
|
|
|
|
You can use Cookies .But If the client knowsAsp.net .He will Simply tell the code is not upto the standards.My friend faced this problem.It also depends on the client .
If It Helps Click It as Answer
|
|
|
|
|