View Complete Post
I am doing some experiments with WCF on .Net 4.0. I have created a service in 4.0 and add a new empty web application to consume my Service. When i added a service reference from the IDE, i can see the web.config file is not updated with the Servcie end
points. How do i solve this issue?
My web.config in the client looks like this after adding the service reference.
Embed manifest and config file I want to embed the manifest and the application config file into the exe. Does anyone know the best way to do this? I see it used this way all the time.
Thanks in advance
I want to embed the manifest and the application config file into the exe. Does anyone know the best way to do this? I see it used this way all the time.
Thanks in advance
Please tell me the way to solved my problem to looking for a long time.
My System Info:
OS: Windows 7 - Ultimate - 64bit
VS: Visual Studio 2008 - Professional (and problem with my VS2010 installed)
I have a small project and build it to library .dll file with some function util.
From an other website (with diffirence solution). I added reference the .dll before to website.
In website, I declaration to using the function in library (dll file before). But I found error: Error 1 Type 'LibraryName' is not defined.
And in VS2010 the problem is same.
But, run website on an other computer, it work normally.
Thanks and Best regards.
Searching google online for 1 whole week and I still can't get this solved... please help!
I'm suppose to build a Plugin (will be called Plugin.dll after compiled) which resides in a main framework (Framework.exe after compiled), everything is written in C# except the C++ COM object (ComObject.dll) which is required by my plugin to function.
The hierarchy looks something like this:
Framework.exe --> Plugin.dll --> ComObject.dll
I was provided with the main framework, the ComObject.dll and a manifest file Framework.exe.manifest.
Currently I have two options of getting my program to work:
Option 1: In Command Prompt, type in 'regsvr32 ComObject.dll' to register the COM object, add the COM reference in my plugin source code, build away and run it.
Option 2: In the application properties of my framework source code, add in the manifest file to get it embedded into the Framework.exe. Either this or manually embed the manifest file using mt.exe, both works. This works even if I unregister it
later using 'regsvr32 /u ComObject.dll' in Command Prompt.
I may eventually experiment with routing to make the reference look like this...
But that's besides the point. Please keep in mind, the following example is very simple and could be accomplished in easier ways. Its more of a proof of concept, and I will be creating completely different JS files, from begining to end, depending on the Id passed in.
var Id = context.Request["Id"];
using (var sr = new StreamReader("/Forms/0001.js"))
var chingy = E
I am new to ASP.NET and may be biting off more than I can chew, but I figure if I jump in the deep end I may learn more.
Can somebody tell me why the Visual Studio intellisense is not working in a newly created class file inside the App_Code folder?
I presume that System.Web is not being referenced from the App_Code folder correctly for some reason, because as soon as I type "using System.Web", everything is fine and then stops when I want to add ".Security" (no dropdown). I think this has an influence on the fact that the inherited MembershipProvider in my code is not highlighted/referenced and I cannot use the "Implement Abstract Class" option.
If I create a new class file in the root folder of my website, everything works fine. I have even tried to delete and recreate the file in my App_Code and it still did not work. I also tried to copy the file from my App_Code folder to the root and it still did not work. My code is as follows:
Our program, Core.exe is using two different COM dll files for 32-bit and 64-bit OS.
Normally, the user will be required to register either one of the dll files using 'regsvr32' command in Command Prompt window.
However we decided to use Reg-Free COM using a manifest file Core.exe.manifest located alongside Core.exe.
The problem is, now we have two DLL files, 32bit.dll and 64bit.dll.. how do we configure the manifest file?
For example if there's only one dll file, my manifest file should look like:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
Since the 64bit.dll is using the same clsid, tlbid and all.. is it possible to specify two file names in the 'file name' field above? not sure how to handle this..
Since last night ive been getting this error on my website. Its happening on every page regardless of a database connection. Can anyone explain what this is and how I can fix it please?
hopefully someone has solution of this error.
i am adding reference on a .ocx file in my project.
When i tried to access the method of this file .
I get the following message "Path/File Access Error"
I tried running the following commands 'regsvr32 XYZ.ocx'.
but issue is same.
This seems like a common scenario but I can't seem to figure it out.
Here is my situation:
1. My development machine is a Windows 7 Ultimate 64-bit box with Visual Studio 2010 Professional.
2. I have a Visual Studio 2010 solution with a single managed C# project that depends on a 3rd party managed C++ assembly.
3. I have both a 32-bit and 64-bit version of the 3rd party managed C++ assembly (same file name).
We are running WSS 3.0 SP2. We have 1 single user that started having the following occur: When he goes into a document library in which he has contribute permissions,
selects a file, picks Check Out and Edit, he is getting a pop-up stating 'Object reference not set to an instance of an object". When he clicks on the OK button he gets another message stating that it may be a permission issue or the file may be locked
for editing by another user.
I have confirmed that nobody else has the file checked out for editing. Other users (including myself) can open the exact same files, check them out and edit them, then
check them back in.
I have searched the web for this error and have not found anything useful to tell me what to try on his machine.
I’m thinking it is a local PC issue since he is the only one experiencing the issue plus I have had him log into our Citrix client and he can successfully check out and edit files there.
He has done a reboot of his machine but this did not res