|
Hi,
I am writting an ASP.NET application in VS 2008. I have some COM component written in VC++ 6.0 as a DLL. I Have add reference of COM DLL in my ASP.NET application. In my application I am calling methods from COM DLL which I want to debug but I am not able to debug my COM DLL. Can any one help me how to debug? I am using IE8 on my machine.
thanks in advance.
Yudhisthira
|
|
|
|
|
|
Hi
I created web project in 2005 and opened in 2008 .
now this error i am getting
Error 27 The type 'System.Web.Script.Services.ScriptServiceAttribute' exists in both
'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll'
and 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll'
How to solve this?
|
|
|
|
|
Hi,
take a look in your web.config. All referenced assemblies must be listed there. Remove the entry for the System.Web.Extensions.dll version 1.0.61025.0 and try again.
Let me know if this helps.
Regards
Sebastian
|
|
|
|
|
VS 2008 has built in support for ajax which was not present in VS 2005 that is why you are facing this error.
Try this
|
|
|
|
|
in your Project you have referenced an Assembly with this Version 1.0.61025.0 and you opened your Project VS 2008 and Automatically it added 3.5.0.0 now you need to use one. Remove the old one that targets 2.0 <b>1.0.61025.0</b> and leave the 3.5 one. remove it in the webconfig.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi all
I have on datalist in which i have placed a linkbutton with oncommand property set to ShowPopUP() function
In Code behind i have shown the popup e.g modelpopupextender.Show()
Now i have two problems
1. The popup panel contains one textbox. Everytime when i click on linkbutton a (,) is concatenated in textbox value. I dont know why
2. I have putted the both the datalist and modelpopup extender under update panel. when OKbutton of modelpopupextender still do the postback
Any Solution??
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Hi! I have the next problem: I have a master page which has a textbox and a Web Content Form which is built from my master page. In the Web Content Form I have a button and I when I press it, I want the text from the textbox to update. For example when I view in browser my Web content form when I press my button, the text from the textbox should look like "You've press a button". Can anyone help me? Thanks!
|
|
|
|
|
1) Double Click on ur button, u will get .cs file
2) after that write below code
TextBox1.Text = "U Have pressed a button";
I Hope it will work for u
Regards
Lalit Manik
|
|
|
|
|
|
Hi frnds,
I hv a code to get width and height of image in a file. Image is stored in folder and imagename in database.. I'm using asp.net 2.0 and sqlserver 2005.
Dim width,Height as integer
ImgPath = "~/Photos/" & ImgName
Dim fullSizeImg As System.Drawing.Image = System.Drawing.Image.FromFile(ImgPath)
width = fullSizeImg.Width
Height = fullSizeImg.Height
This works only in localhost. But after uploading to server it is not working. Is ther any other method to get the width and height of the image from server..?
|
|
|
|
|
The most common problem when something "works locally, but not on the server", is because the path that you are expecting your images to be in either doesn't exist on the server, or you don't have permissions to access it.
Check those first, then get back to us with more details about the error that you are getting.
|
|
|
|
|
Sir, Thank you for reply..
There is permission for folder and path is also exist.
|
|
|
|
|
Okay, so assuming they exist (and the file also exists), what is the actual error you are receiving?
|
|
|
|
|
Sir, This is the error i'm getting..
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
Line 42:
Line 43: Public Sub CheckWH()
Line 44: Dim fullSizeImg As System.Drawing.Image = System.Drawing.Image.FromFile(str)
Line 45:
Line 46:
Source File: D:\Hosting\5201676\html\Gallery.aspx.vb Line: 44
i think it is giving error for FromFile(str). Whether FromFile() is used only to get path from localhost ?
Plse reply..
|
|
|
|
|
I have a app that when ran locally will upload my file to the database but if I try remotely it can't find the file. I am using the fileupload control and streaming it to the database. Is there a permission setting I am missing? This is called from the button_click of a submit button
byte[] ReadFile(string sPath)
{
byte[] data = null;
FileInfo fInfo = new FileInfo(sPath);----THIS IS WHERE IT CANT FIND sPath
long numBytes = fInfo.Length;
FileStream fStream = new FileStream(sPath, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fStream);
data = br.ReadBytes((int)numBytes);
return data;
}
|
|
|
|
|
Check the value in the sPath if it actually exists on the server.
If sPath is the path that FileUpload control has provided, it will obviously not work. Since it is the path of the file on the client computer and this code runs on server.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Correct its the path of the client computer. So how do I fix it?
|
|
|
|
|
Well my solution was I created a folder for the upload control to upload to then my sp would go grab the file for the folder on the server and insert into the table. This worked.
|
|
|
|
|
Hi all,
I am using HTML image for calendar control in my application.As per the requirement i have to disable the calender control.In IE it is working fine but in Mozilla FireFox is not working.
Ex:-In code behind i disabled the control to avoid to open calender like the following.
ImgInceptionDate.Disabled = true;--->This line is working in IE
The same is not working in firefox-->Here i can able to open calender.
Can any one help on this???
thanks in advance,
Eswar.
|
|
|
|
|
I need some help regarding chat application..
I want the flow chart for work flow to build a chat program in asp.net.
plz help. I need to know how to implement the chatting like yahoo chat..
|
|
|
|
|
vinci007 wrote: I want the flow chart for work flow to build a chat program in asp.net.
plz help. I need to know how to implement the chatting like yahoo chat..
What kind of work flow you are looking for ?
Here is few sample :
ASP.NET Ajax Chat Application[^]
and
Simple Chat Application in ASP.NET[^]
Hope this will help you go ahead.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I think this has been asked here for at least 10 times... Did you search before asking ?
|
|
|
|
|
Abhishek Sur wrote: I think this has been asked here for at least 10K times... Did you search before asking ?
FTFY
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|