|
I am accessing a FORTRAN dll into ASP.Net 2005. The dll is taking input from a .dat file after processing it generates another .dat as an output. Here's ASP.Net is working as an interface of Input(by which user can supply input file) and Output(by which user can see the output in various listbox, textbox,etc).
I used importdll atrribute to declate DLL, and used call keyword to call the function of DLL. The program is working fine when i am executing using .NET IDE. but when i published the application it doesn't work. ASP.Net Application stops IIS on function call of FORTRAN dll.
Regards
Manoj Shukla
|
|
|
|
|
hi,
Can any body please help me? When I am opening the asp.net configuration it giving me this error as follows.
Provider Management
Could not establish a connection to the database. If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
What I need to do to connect to sql server. I have already installed sql still its showing me this error.
|
|
|
|
|
pinkidasu wrote: When I am opening the asp.net configuration it giving me this error as follows.
Which Configuration File are you opening ?
pinkidasu wrote: What I need to do to connect to sql server. I have already installed sql still its showing me this error.
I think you are trying to do any personalization or membership kind of operation.
Do one thing
From VS Command Prompt - > Run aspnet_regsql Command
This it will as for the data base and give the database server name . It will create some personalization table and procedure on your database.
Hope then your problem will be resolved !!!
Thanks
|
|
|
|
|
you need to add membership configuration to web.config. Take a look at this article:
Membership[^]
|
|
|
|
|
Hi guys i have a issue. I use Mailattachment to send my attachment how ever if my attachment size is too huge. The sending fail. Is there a way to fix or increase the size of my attachment size for attachment.
KaKaShi HaTaKe
|
|
|
|
|
This is because of the fact that Mail Server sets the maximum size to send/accept the attachment.
If its over its limit, it fails...
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
bro are u saying is the SMTP? but i can't even upload the file when i submit and it didn't even go into the breakpoint at all.
KaKaShi HaTaKe
|
|
|
|
|
Im developing a small ftp function in my program, but im getting a runtime error message on running this part of the code:
FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(FTPAddress + "/" + Path.GetFileName(filePath));
error message:
Unable to cast object of type 'System.Net.HttpWebRequest' to type 'System.Net.FtpWebRequest'.
more info:
FTPAddress has a value of http://server.co.za
the whole function is bellow
private void uploadFile(string FTPAddress, string filePath, string username, string password)
{
//Create FTP request
FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(FTPAddress + "/" + Path.GetFileName(filePath));
request.Method = WebRequestMethods.Ftp.UploadFile;
request.Credentials = new NetworkCredential(username, password);
request.UsePassive = true;
request.UseBinary = true;
request.KeepAlive = false;
//Load the file
FileStream stream = File.OpenRead(filePath);
byte[] buffer = new byte[stream.Length];
stream.Read(buffer, 0, buffer.Length);
stream.Close();
//Upload file
Stream reqStream = request.GetRequestStream();
reqStream.Write(buffer, 0, buffer.Length);
reqStream.Close();
MessageBox.Show("Uploaded Successfully");
}
does anyone know what's causing this
|
|
|
|
|
hi all
im doin the application to upload and retrieve the images from database to datagrid ...im saving the images in binary format ..im getting large images in the datagris ..how to display the small images in the image column in datagrid...
plz help me
muppala
|
|
|
|
|
You need to make thumbnails.
Sure if you google it you'll find a simple tut.
|
|
|
|
|
Change Resolution...
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi
my appliocation is to upload and retrieve the images from database to datagrid.In that datagrid i ve image ID hyperlink coloumn.If that hyperlink is clicked the querystring which will passed to the URL should be encrypted (image ID must be in encrypted form ).I have in many ways but im not getting...please help me..
how can i get the querystring passed to the url in encrption form to the other page when i click the hyperlink column in the datagrid ..plz help regarding this problem...
muppala
|
|
|
|
|
How about using a session variable instead? Then you need not worry about the query string at all.
Search results[^] for "session variables"
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson Because programming is an art, not a science. Marc Clifton I gave up when I couldn't spell "egg". Justine Allen
|
|
|
|
|
hi all.... i m developing a application in which i m displaying data from database to the gridview. In the gridview there r checkboxes in the first column for every row.now i want that after selecting some rows(checking chk boxes) wen i press ok button, in database a id should generate for these rows and the id should be same for all these selected rows.
thanks in advance....
|
|
|
|
|
Walkthrough for your problem.
1.Open visual studio 2005.
Bad idea, I am lazy
Check this article[^]
|
|
|
|
|
hi palli, that is right i have done this finding the checked checkboxes in gridview but after finding checkboxes how to generate same id for the selected rows,i have no idea about that............can u give some idea and sample codes. it will be a greate help..............
|
|
|
|
|
I have created a web application in asp.net. But after building my application I do not get bin folder and global.aspx file.
What will be problem.
Thank in advance!
|
|
|
|
|
I am having the same trouble.
I tried to add the bin folder forcefully , but the dlls still did not get created.
cana nybody suggestghg
|
|
|
|
|
Hello friends
I am getting a problem with update pannel
I have placed a drop down list in the update pannel for which i am assigning datasource in the page load event i have checked the ispostback property of the page and placed it inside
i have also placed few text boxes there
i am having a save button whenever i click on it the selected index of the dropdown list becomes zero
please tell me how to stop it becoming zero ..
Thanks and regards
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Try to put dropdownlist out of UpdatePanel and check if index of ddl return to 0 again.
Does the ddl have autopostback property to true?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you then save my time by voting my post.
|
|
|
|
|
Hi , i am developing an application in which
1. An Admin register a company(he can register any number of companies), and assigns a Administrator to it.
2. This Administrator then creates a Role Hierarchy for eg manager, deputy manager , consultant according to his company hierarchy and assigns user to any of this Role and set of pages .
3.No low role user can access high role user pages but vice versa is possible for eg. Manager can access deputy manager pages but dm cannot access manager pages.
(THIS WHOLE PROCEDURE IS REPEATED FOR EVERY COMPANY)
4. Now i want to implement Role and Authorization Api in this, how can I implement that
Please suggest me any ides if u have any
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
modified on Tuesday, September 2, 2008 6:50 AM
|
|
|
|
|
a good approach is to dynamically load the menu based on user role
|
|
|
|
|
pls i want the following line of code that cotain dml to fail or success at the same time. any idea pls
objtrial.insertregistration(Me.txtdistid.Text,Me.txtsurname.Text,Me.txtfirstname.Text)
If sponsid.ToLower.Trim.Equals("tradebay") Then
'Exit Sub
Else
levelid = 1
achieved = 1
Do
If Not objtrial.getResidual(sponsid, levelid, ymonth) Then
objtrial.insertresidual(sponsid, levelid, achieved, ymonth)
Else
objtrial.updateresidual(sponsid, levelid, achieved, month)
End If
levelid = levelid + 1
sponsid = objtrial.getsponsorID(sponsid)
Loop While Not (sponsid.Trim.ToLower.Trim.Equals("tthe"))
End If
|
|
|
|
|
It is not good to double post same question!
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you then save my time by voting my post.
|
|
|
|
|
sorry it connection problem. any idea to the question pld
|
|
|
|