Currently working with virtual path provider class in loading a whole website from database, and off course you cannot replace the web.config as a rule. my problem is how could i load or move my application settings to the web.config?
So I have a program that was written in visual studio and goes through vb c# then to fortran to calculate values. I am trying to get this to run online and running into problems.
I first tried asp.net in vb where I created a new project and referenced the DLL's that were created by the original code, which only worked on the computer the original code was written on and would fail on my computer during the fortran transistion.
Stepping through the code did not solve anything either as when it cycled through the fortran code it would get to a certain part and fail. It gave me a chance to look at the disassembly because there was no actual error message and it had a file path in the problem area of the disassembly.
I have attached images of the problems I was getting during trying to solve this. This error message appeared after running the asp.net program the first time before the browser popped up http://i.imgur.com/kfUVKw7.jpg[^] This error message appears after I have entered all the values in the input form and they get submitted to the code. http://i.imgur.com/yaau5At.jpg[^]
I am wondering if it is an pathing error based from the second picture as the actual asp.net program was in my C:\users folder but the source file is saying C:\Data(which was the file structure for the computer the original code was written on) when it shouldn't need to go to C:\Data if all of the code is complied into dlls that are added as references.
I am now trying to implement it into python but am not getting as far, so if someone could help me out with the asp.net problem or have another way that this can be put online that would be greatly appreciated and I can also supply more information if it is needed.
Don't use Catch ex As Exception; only catch the exceptions you're able to handle.
Don't use Throw New Exception(...); always use a more specific exception type. For example: Throw New InvalidOperationException(...).
If you're catching an exception and throwing a new exception, always pass the original exception to the innerException parameter of the new exception. This will preserve the information about the original exception, which will make it much easier to debug.
ThrowNew InvalidOperationException(..., ex)
At the moment, all we know is that something within or called by your setPressureTemperature method has thrown an exception; we have no way of knowing what that exception was.
Once you've updated the code to pass the inner exception through, run your code again and look in the application event log. The full details of the exception should be logged there.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I am building a website in which I need to show the price of items in different currencies depending on the country chosen by the user.The price has to be dynamically updated daily based on the exchange rate. How do I go about doing this in ASP.NET?
I need to show the price of items in different currencies depending on the country chosen by the user.
This suggests you to have a dropdown where user can select country and thus currency. Based on the dropdown selection, get the latest data, convert anything that needs to be based on currency multiplier and then use the modified data as input for the page display.
Hi, Actually,I'm not using a dropdown list.The website is an international one in which there are different home pages for different countries.So,I want to show the images and prices of different watches on the website and the price should be updated dynamically depending on the exchange rate.So,how do I get the exchange rate values to do such a dynamic update?
The website is an international one in which there are different home pages for different countries.
Even then, there must be something that is driving the localization. Dropdown is just a way to know what country/currency. Whichever way you are chaning your homepage, based on the same paramter your data should be changed/driven.
I am getting a problem one of my web site. My site having login screen, user should login to do operations. so this site automatically time out on 20 min. because ISS ideal time default 20 min as i read in one of the article, and i got solution to make it '0' to never expire, but still my session expire on 20 min.
And another solution i have to make session state =60/what ever time i required but this is also not helping, me.
So please guide me the solution
How to make session values alive still user logout.
How to make session values alive still user logout.
Not advisable as you will be blocking sever memory and can be very bad when multiple people connect.
make it '0' to never expire, but still my session expire on 20 min
Session timeout is set in Web.Config file. Default is 20 min. Change it to as per need there and will be used by IIS. You can also have FormsAuthentication timeout if you are using FormsAuthentication.
I have a variable that is declared in a user control. It is the value of a drop down list in the user control. When I try to use it in an If statement on an aspx page it says that the variable is not declared. Is there a way to declare the variable on the aspx page or make it recognize that it is declared on the user control page?
I'm calling the code at the top of the aspx page
<%@ Register src="pType.ascx" tagname="pType" tagprefix="uc2" %> I'm using the if statement
<%If pt.SelectedValue = "1" Then%> \\do things <%End If%> In the control pt is defined by