|
Flavia A wrote: {System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection}
Do you know how to use the debugger ? Do you have any understanding of English ? Obviously one of your rows does not have 2 cells in it, for some reason. That's a guess, if you used the debugger, you should be able to work it out AND tell us what line blows up if you need to.
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.
|
|
|
|
|
We have RSA Authenticators (tokens) for a website we're working on. Originally the site was created with a membership provider model with a user name and password. Right now the RSA portion works, and after inputting the user name and token code (the RSA login), the user is sent to our original login screen asking for user name and password (the .NET login).
Can we have the RSA portion go straight to the site so that users don't have to login through two different pages? The RSA user name and the user name for the website are exactly the same.
The current issue is how we pass the user name from the RSA login to our site, bypassing the login we had created. We're working with RSA to get a cookie working so we can grab the user name.
We don't know what to do with the user name once we get it from the cookie. How do we let the website know to let the user in without a password? Can we still use the rolls we have set up for the users? Some are admins, and some have other different permissions set based on their roll. Admins have extra pages only they can view.
~Mary
|
|
|
|
|
did you ever get anywhere with this? we are facing a similar issue, where the user logs in through rsa to get to the protected web content, and we'd like to somehow retrieve the username from the cookie, but are not sure how...
|
|
|
|
|
I have a Visual Studio 2008 ASP.NET application which needs to login to SQL Server 2005. I'm using "Integrated Security=SSPI" in my connection string. The app works fine from the Visual Studio environment, but when I try to run the deployed version on my test server, I get the following error: "Login failed for user ABC\ABCTEST$". (I have substituted ABC and ABCTEST for the actual values. ABC=Domain name. ABCTEST=Server name.) The test server is actually a virtual server. The web site on the test server is set up using Basic Authentication. Does anyone know why it is using the server name with a dollar sign tacked on to the end, in place of the user name?
|
|
|
|
|
why dont you create a new login for the instance for login and create a database user for this.
Create a login using
CREATE LOGIN [myuser]
WITH PASSWORD=N'password',
DEFAULT_DATABASE=[master],
CHECK_EXPIRATION=OFF,
CHECK_POLICY=OFF
After that create a User account in the database to login :
CREATE USER [AccUser] FOR LOGIN [myuser]
ALTER AUTHORIZATION ON SCHEMA::[db_owner] TO [AccUser]
Now login to the SQL server using
uid=AccUser;pwd=password
with integrated security =false.
I think you can login.
|
|
|
|
|
Because where I work we need to use integrated security with existing network group accounts. The user's permissions within the database depend on what group they are a member of.
|
|
|
|
|
Hello There;
I am trying to view my report files on CrystalReport viewer in ASP.NET programmatically by using the code blow;
Note that Reports are located on a file server.
CrystalReportSource reportsource = new CrystalReportSource();
CrystalDecisions.Web.Report report = new CrystalDecisions.Web.Report();
Guid reportid = new Guid(Request.QueryString["GUID"]);
string path = Server.MapPath("/Reports/") + dc.Reports.Where(k => k.OID == reportid).First().FileContent;
report.FileName = path;
reportsource.Report = report;
CrystalReportViewer1.ReportSource = reportsource;
It is loaded to the viewer perfectly. However, if I attempt to go to the next page or trying to set parameter via parameters panel or if it has any group tree or parameter, when I try to expand any node of the group tree, it says No valid report source is available. but if I do it via CrystaReportSource wizard there is no problem at all.
what do I miss here?
thanks for your help.
regards.
Note: I could not find any crystal report forum category to post my question, that is why I have posted here...
|
|
|
|
|
|
have you found the answer to this?, I'm having the same trouble and not being able to get it fixed.
|
|
|
|
|
Hi,
We are building an ASP.NET application and would like to follow the best practices. Some of the best practices are:
----------------------------------------------------------------------
Server side Code:
- Use catch blocks to trap & log low level errors too.
- Use Cache objects to populate dropdowns etc. where we won’t expect the changes in the underlying data/database.
- Incase of error logging framework, provide emailing alerts along with logging the errors.
----------------------------------------------------------------------
HTML code:
- Don’t write inline CSS.
- Place the JavaScript code (If needed by the page) at the end of the page unless the page needs it for load time actions.
----------------------------------------------------------------------
Now coming to the point, Would you please share these best practice points if you have a comprehensive list of them already?
Many Thanks,
Regards.
Anusha.
|
|
|
|
|
This way no one is going to post anything.. I think better to search in google.
|
|
|
|
|
Anusha.1980 wrote: Hi,
We are building an ASP.NET application and would like to follow the best practices. Some of the best practices are:
----------------------------------------------------------------------
Server side Code:
- Use catch blocks to trap & log low level errors too.
- Use Cache objects to populate dropdowns etc. where we won’t expect the changes in the underlying data/database.
- Incase of error logging framework, provide emailing alerts along with logging the errors.
----------------------------------------------------------------------
HTML code:
- Don’t write inline CSS.
- Place the JavaScript code (If needed by the page) at the end of the page unless the page needs it for load time actions.
----------------------------------------------------------------------
Now coming to the point, Would you please share these best practice points if you have a comprehensive list of them already?
Bloody hell. Please tell me you're not getting paid if any of this was a revelation for you ? I don't even agree with all of this, but it's pretty baseline stuff.
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.
|
|
|
|
|
|
Hi All,
I am working on a application in C#. There is a start menu folder and a short cut in that folder is being created and translated as per the language selected during installation. Now what I want that these start menu folder and short cut file should be removed. I am overriding the uninstall event but its not being fired.
Please suggest something.
Regards
|
|
|
|
|
How is this remotely related to ASP.NET ?
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.
|
|
|
|
|
Hi,
I developed a small website using express edition and MS SQL server 2005(sql server management studio express). Now iam planning to host the application.To publish website with express edition is possible?
What is difference between Proffesional and standard editions of visual studio?
To publish a website standard edition is enough?
And now coming to SQL server whether licensed key is required?
Thanks in advance
Regards,
Prathap
|
|
|
|
|
You can copy the files to server and it should work. You need a licensed version of SQL server on the server. .NET framework can be installed directly as it is free.
Best wishes,
Navaneeth
|
|
|
|
|
prathapcode wrote: What is difference between Proffesional and standard editions of visual studio
Lots of bells and whistles, but nothing that would stop you developing or publishing a website.
prathapcode wrote: And now coming to SQL server whether licensed key is required?
That's a whole different question. However, most webhosts provide a SQL Server database as part of their package, so you don't need to buy anything there, unless you are self hosting the site.
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.
|
|
|
|
|
Hi
in below code value of fontName is 'Lucida Console'
BaseFont baseFont = BaseFont.CreateFont(fontName.ToString(), Encoding.ASCII.EncodingName, false);
I'm getting error while executing above code written in asp.net written below:
'Lucida Console' with 'US-ASCII' is not recognized.
thanks
You get the best out of others when you give the best of yourself.
modified on Friday, November 6, 2009 9:36 AM
|
|
|
|
|
What is the steps of web-based payments processing system like e-shoping.
Actually I am asking to provide me some tips on security, standardizing or any relative issue.
|
|
|
|
|
You can find many by googling. First do that and choose which one to use and if've you problem in that we're here to help 
|
|
|
|
|
How can send mail other email address.?
Ankur Tyagi ji
|
|
|
|
|
Take the subject of your post and run it in google, you will get thousands of hits, many with example code.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Here is the routine I use:
public static void SendUserEmail(MembershipUser mu, string body, string subject, string from)
{
if (string.IsNullOrEmpty(from))
{
from = "NoReply";
}
try
{
MailMessage mail = new MailMessage();
mail.Body = body;
mail.IsBodyHtml = true;
mail.To.Add(new MailAddress(mu.Email));
mail.From = new MailAddress(from + strEmailAccountBase, from + strEmailAccountBase, Encoding.UTF8);
mail.Subject = subject;
mail.SubjectEncoding = Encoding.UTF8;
mail.Priority = MailPriority.Normal;
SmtpClient smtp = new SmtpClient();
smtp.Host = ConfigurationManager.ConnectionStrings["EmailProvider"].ConnectionString;
NetworkCredential nc = GetEmailCredentials();
if (nc != null)
{
smtp.Credentials = nc;
}
else
{
}
smtp.Send(mail);
}
catch (Exception ex)
{
throw new ApplicationException("Could not send email", ex);
}
}
Your web.config connection string entry should be along the lines of:
<add name="EmailProvider" connectionString="smtp.YOURMAILPROVIDER.COM"/>
GetEmailCredentials you will have to write yourself; if your host does not require credentials then just return null.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I am using a telerik tabstrip. After i edit or perform button click etc it doesn't refresh the tab and doesn't display the recent changes. So every time i make any change i have to refresh the browser and then go back to that tab and see the changes.
What would be the best way to refresh the tab automatically after any activity performed within the tab(add/edit/delete)so that it shows me latest change plus it should be pointing to the right tab after refresh.
Thank You
Andyyy
|
|
|
|