R
Ralf Müller
In a WindowsForms application it works just fine. Why not in ASP.NET?
The interop assembly used was in both cases auto-generated by Visual Studio
..NET from the same .dll
The code is exactly the same in WindowsForms and WebForms:
private void button1_Click(object sender, System.EventArgs e) {
ImyCOMObject obj = new myCOMObjectClass(); // ASP.NET freezes here -
WindowsForm works perfectly
ISearchResult res = obj.Search(tbSearch.Text);
int count = res.Count;
for(int i = 0; i < res.Count; i++) {
....
}
}
The interop assembly used was in both cases auto-generated by Visual Studio
..NET from the same .dll
The code is exactly the same in WindowsForms and WebForms:
private void button1_Click(object sender, System.EventArgs e) {
ImyCOMObject obj = new myCOMObjectClass(); // ASP.NET freezes here -
WindowsForm works perfectly
ISearchResult res = obj.Search(tbSearch.Text);
int count = res.Count;
for(int i = 0; i < res.Count; i++) {
....
}
}